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

I have a windows xp desktop with a linux centos vmware image running on it

Due to some issues I am having lately with vpnc on linux, I would like to know if I can route

vpn traffic from linux to windows.

So I will connect to the vpn from windows (with cisco's vpn client) and I would like to route

traffic, for a specific IP, on linux so that it uses windows's vpn tunnel

Is this posible?


share|improve this question
up vote 1 down vote accepted

You can route your Linux traffic through the Windows (host) VPN session if the Linux guest is setup with a NAT NIC through the hypervisor.

share|improve this answer
How can I verify this my friend? Thanks for the help – Thomas Jul 15 '11 at 11:59
I changed the vm's nic settings from bridged to nat and added an entry on the vm's routing table, so that it sends traffic for the host I want to access on the other side of the vpn, through the IP of the windows host, but no luck – Thomas Jul 15 '11 at 13:19
No need to change any routing tables on the VM once its virtual NIC is set for NAT. – user48838 Jul 15 '11 at 17:41
Excellent mate. Thanks. Worked like a charm. Started the vpn tunnel on Windows, changed the vm's nic to NAT and restarted the network and voilla. – Thomas Jul 16 '11 at 7:34
Glad it worked for you. – user48838 Jul 16 '11 at 10:56

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.