Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 Mac running Lion that is connected to an OpenVPN server I have a Windows XP VM (running on parallels, but I don't think this is important) I want to be able to route traffic from the XP VM via the host Mac's OpenVPN connection so that I can log on to a domain.

The remote network is ( Open VPN is configured to supply address in the range and sets up the routing to using the gateway My local network is

NOTE: I do not want to install OpenVPN into the XP virtual machine as I would have to use a passwordless key in order for OpenVPN to connect before logon.

Anyone got any ideas?

share|improve this question

So I figured this out (for my needs at least) and it was a lot simpler than I first thought.

Initially I over thought the problem and tried to use bridged networking, making my host the gateway and then attempting to route the traffic to the tun0 adapter - waste of time.

In the device menu in parallels just set the network to 'shared'. In the XP (or whatever) VM manually set the DNS to the address of your domain controller (so in my case Connect to OpenVPN on the Host, I use Tunnelblick to manage this on OS X. OpenVPN should add the correct routes for you.

There is no reason this should not work for VirtualBox or VMWare on Linux or Windows host too.

That is it.

share|improve this answer

This is not an answer, but I see no way to comment of PM withakay. I think what I am missing here is only what my domain controller would be. I know my way around my mac, and I set up the VPN server so I know some details of it, but I cannot figure out what I should plug into the Windows DNS settings for it to magically go through the VPN (in my case, a simple PPTP VPN via the OS, Mac OS Mavericks). Thanks for any help! (Before deleting my non-answer.)

Here is my own question on this:

Or I think I know how to give the VPN server's IP address as the DNS server for the VM, which does go through the VPN (there is no such address when there is no connection), but I worry that the VM simply resolve the public DNS into a public IP and connect without going through the VPN?!

share|improve this answer

I'm on Mac OS X, using Parallels 9, and I got this to work by simply selecting "Devices > Network 1 > Shared Network". Nothing else seemed to be required.

Mac OS X is version 10.9.2.

Parallels Desktop 9 (Build 9.0.24229, according "File > About Parallels Desktop").

share|improve this answer
  1. Configure virtual machine
  2. Change network source to shared network
  3. if that still does not work, disable ipv6 in guest machine.
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .