Networking – Windows host with SSTP VPN, VirtualBox guest cannot access VPN resources

networkingvirtualboxvpn

So my problem is relatively simple. I have a host OS (Vista) that connects to a Windows 2008-based SSTP VPN. I have a virtualized guest OS, Windows XP, that I need to access resources over the VPN.

When a new VPN configuration is created in Windows, Windows sets it up as another connection in the Network & Sharing Center. However, VirtualBox config is unable to see this connection when choosing a connection to bridge to.

My local network is 192.168.1.x
My remote (over VPN) network is 192.168.10.x

The problem is that the guest takes its DHCP / IP's from my local network (not remote VPN), so the IP address assigned to it is usually 192.168.1.x. Virtualbox is not properly seeing the VPN.

Any ideas on how to make it work properly? Both the physical adapter and the "virtual" adapter (VPN) have the VirtualBox Bridged Networking Driver enabled and checked.

Thanks in advance.

Update: Using "NAT" instead of "Bridged" on the VirtualBox configuration worked — but only partially. Now it connects and accesses resources, but new problem arises. The virtual instance itself is given an IP address of 10.0.2.x — we don't have any servers in this range. What's up with that? What do I need to do to get it in the 192.168.10.x range?

Or rather, I want to access that machine from other machines on the network. How?

Best Answer

Switch the virtual machine's network interface from bridged to NAT and it should work fine.

Related Question