VM Gateway
Posted: Mon May 04, 2009 5:39 pm
As this is the forum to talk about implementing new functions, I'm a bit stuck on both the design AND implementation. I have been writing ethernet drivers that can be tested in QEMU, VMware VS2, and VirtualBox-OSE. I now want to make a gateway for the host OS so that when the user of the host tries to access the internet it has to pass through the VM first. This would allow me to use the VM (with a custom OS) to filter packets for easy testing.
My current setups use a ethernet bridge (br0 for VirtualBox) or a tap/tun (tun0) device (in QEMU). I can't figure out how to connect the host to "one side' and have the "other side" connected to the real gateway (router). Any ideas?
My current setups use a ethernet bridge (br0 for VirtualBox) or a tap/tun (tun0) device (in QEMU). I can't figure out how to connect the host to "one side' and have the "other side" connected to the real gateway (router). Any ideas?