Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

here is my problem. I start my computer on a Windows session. I launch VMWare Player and start an Ubuntu session. I would like that all packets, on Windows, which are destinated to the network are sent to the virtual Ubuntu. Then, Ubuntu will forward all these packets to the real network card to be sent through the network.

How can I do this please ? What should I configure on Windows/VMWare ?

Thank you.

share|improve this question
there's an interesting thought - using the hosted VM as the host's firewall – warren Mar 2 '10 at 14:24
up vote 2 down vote accepted

I think you would have to set up packet forwarding on the Ubuntu VM (with the VM set up using bridged networking) and set your Windows computer to use the Ubuntu VM as a gateway.

Googling Ubuntu packet forwarding or gateway should give links like this one or this one to help with the configuration.

Or you can download a specialized distro meant for doing firewalling and routing like shorewall for running in a VM, depending on what you're trying to do. Google for a linux router distribution and there should be a nice list of them available to try. Might make configuration a little easier (and requirements a little smaller on the VM).

share|improve this answer
Nail on the head. – mfinni Mar 2 '10 at 14:07
if you're interested in a non-Linux-based solution, you could also try m0n0wall - – warren Mar 2 '10 at 14:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.