How to get a VM to use a VPN connection on the Host.

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Skela
Posts: 22
Joined: 22. Aug 2012, 07:51

How to get a VM to use a VPN connection on the Host.

Post by Skela »

I've been trying to get my Ubuntu or my Android VMs to access a VPN I have running on the host without any luck.
The VPN works and everything checks out on the host, but if I try to connect to sites I know are restricted in the country I'm in, inside the VM,
the connection fails, indicating that the VPN is not used in the VM.

I've spent quite a lot of time trying to get this to work, including trying to use the Host-only adapter without any luck. Anyone know how to get this to work? Or is it not even possible?
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: How to get a VM to use a VPN connection on the Host.

Post by BillG »

VPN connections usually can't be shared. If you want the guest to use a VPN connection set up the VPN client in the guest OS.
Bill
Post Reply