Networking – Does VPN on a virtual machine make the host connection VPN as well

networkingvirtualboxvpn

I am using VPN on a virtual machine to my organization's network. And I was just wondering whether this will make the host connection also under VPN.

My organization's network may be monitored for various reasons. So, will my host be in my organization's network as well?

The VM is with Oracle VirtualBox 5.x, Linux on windows host, and the network setting is NAT.

Best Answer

I was just wondering whether this will make the host connection also under VPN.

No, it will not. But let's take a moment to discuss different network types for VirtualBox and how it effects VM network structure.

If you configure your VM to use NAT to access the network then your traffic from your VM will be translated to your host's IP address using the VirtualBox driver before it get's to your first upstream network device (i.e. switch). This results in traffic from your VM being seen by your network as coming from your host's IP address.

If you configure your VM to use Bridged to access the network then your traffic from your VM goes from it through your host's psychical network adapter without being translated so your network sees the traffic as coming from the VM's IP address instead of the host's IP address.

So it is actually possible for you to run multiple VirtualBox VMs on your host each configured as Bridged and each connected to different VPN servers without your host being connected to either of them.

Related Question