How to divert internal http traffic to Guest VM?

Post Reply
hdavy2002
Member
Member
Posts: 1
Joined: June 4th, 2013, 4:24 pm

How to divert internal http traffic to Guest VM?

Post 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
User avatar
Ian
Moderator
Posts: 752
Joined: January 1st, 2011, 7:00 am

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

Post 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.
ricksebak
Member
Member
Posts: 33
Joined: February 10th, 2013, 9:34 pm

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

Post 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.
Post Reply