HostMachine is Windows 7 64, running VirtualBox. I want HostMachine to use my normal internet connection, rather than the VPN. (I don't mind if it has a VPN adapter, I'd just want it to be lower priority than my true adapter.) It would be "OK" if HostMachine had weird scenarios that would use the VPN, but speed is way slower.

ClientMachine is Windows 7 64. I want ClientMachine to only be able to use the VPN. Under no circumstances, even if the VPN is disconnected or the adapter is even deleted, do I want ClientMachine using my normal internet connection. (Other than sending VPN'ed traffic to VPNServerMachine.)

VPNServerMachine is linux, running OpenVPN.

I think I'm right up to the last step in getting this work.

HostMachine has my real network adapter as a higher priority over the virtual OpenVPN TAP adapter. I'm able to connect its OpenVPN to VPNServerMachine. Web browsing uses my ISP. The VPN is up and running, because I can ping VPNServerMachine from HostMachine.

In HostMachine VirtualBox, I set up a NAT Network, name NATNet, CIDR ClientMachine has an IP of It's acting identical to HostMachine. Web browsing uses my ISP. It can also use the VPN for those IPs -- I can ping VPNServerMachine from HostMachine, without HostMachine running any OpenVPN software.

So, how do I tell HostMachine's VirtualBox to ONLY under any circumstances use the OpenVPN TAP adapter for NatNet? Or, similarly, how do I tell HostMachine's VirtualBox to NEVER under any circumstances use the actual adapter?

In case someone hasn't looked at this before, no, using bridge mode doesn't work. It bypasses the VPN software running on the host, and there are numerous posts saying that will never work.

  • 1
    Your Virtual Machine must have a NIC configured - You are using a NAT connection which intercepts your VirtualBox Host packets and decides if they are destined for the Host or the Guest. Considering your question and level of paranoia, I think you need to reflect on what kind of connection your VM-Client has to your VM-Host. I would recommend you consider a host-only network connection.
    – dotvotdot
    Nov 22 '15 at 0:17

Your Virtual Machine (or any other machine) cannot use a VPN without a Real (and for VM Virtual) network interface card (NIC). Therefore, you cannot use a VPN without a NIC of some kind, properly configured in the VM OS, with IPv-X (4 or 6) as the transport protocol for the VPN. That NIC, whatever it is, is subject to the OS and VPN software you choose to use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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