Page 1 of 1

How to divert internal http traffic to Guest VM?

Posted: June 4th, 2013, 6:08 pm
by hdavy2002
Hello folks,

I have been playing around with KVM, I went about the KVM tutorial and managed to set up KVM and have a VM up and working. I bridged it to my WAN interface and I am able to access the VM from outside. I am running a firewall soft in my VM.

I would like to divert all outgoing internet traffic via the firewall. I used the GUI (virt-manager) to add another network card. It shows up on my firewall GUI.

I am lost in the next steps. I am using Ubuntu 12.04 LTS.

Thanks for your help in advance.

Cheers

Re: How to divert internal http traffic to Guest VM?

Posted: June 4th, 2013, 10:42 pm
by Ian
Hi there and welcome to the forums :thumbup:

I'm afraid I've not a clue how to do that, sorry :oops:

Maybe someone far more clever than me can step up to the plate :cool:

Ian.

Re: How to divert internal http traffic to Guest VM?

Posted: June 10th, 2013, 1:53 am
by ricksebak
I'm sure that iptables can do what you want here, but I'm not quite sure I understand specifically what you are trying to do. And I don't guarantee that I could give you a rule that would work even if I knew. But if you aren't sure where to even start with this, Google iptables.

Otherwise, can you post more specifically what you are trying to do, and what machines on your LAN should be redirected? Should it be all the machines or just one? The more detail you can provide the better.