Page 1 of 1

Persuading VMs to use a VPN

Posted: 2. Aug 2012, 17:00
by DrHyde
I use a VPN to connect my Mac to my employer's network, and run our standard developer environment in Virtualbox. I need to use Bridged networking, and everything works apart from when I configure the network interface that the VM should use, I only get options for en0 (ethernet) and en1 (airport), and if I choose either of those the VM bypasses the VPN.

Provided that I start Virtualbox after bringing the VPN up, the tun0 interface should also show up in that list, which would make it Do The Right Thing. But it doesn't. Please implement this in the next release, I can't imagine that it would be difficult.

Re: Persuading VMs to use a VPN

Posted: 3. Aug 2012, 06:42
by BillG
VPN connections are point to point connections. They are an emulation of a cable connection between host and guest. They cannot be shared or routed.

If you want to connect to your employer's network from the vm, use bridged networking and create the VPN connection from the guest.