I have the following configuration:
- Windows 10 Host
- Hyper-V running on host
- Windows 10 Guest
- AnyConnect VPN optionally running on host
Desired Behavior:
- The guest OS to have internet connectivity whether or not the host connected to the VPN
- The guest OS to have access to VPN resources when the host is connected to the VPN
As described here (and similarly on other blogs etc.) I ran the following commands on the host:
New-VMSwitch -SwitchName "WindowsNAT" -SwitchType Internal
New-NetIPAddress -IPAddress 192.168.50.1 -PrefixLength 24 -InterfaceAlias "vEthernet (WindowsNAT)"
New-NetNAT -Name "WindowsNAT" -InternalIPInterfaceAddressPrefix 192.168.50.0/24
Then I:
- Change the guest to use WindowsNAT
- Change the guest TCP settings to:
- Static IP: 192.168.50.3
- Netmask: 255.255.255.0
- Gateway: 192.168.50.1
- DNS Primary: 8.8.8.8
- DNS Secondary: 4.2.2.1
Actual Behavior:
- Internet connectivity on the guest when the host is not connected to the VPN.
- No internet connectivity on the guest when the host is connected to VPN
- No VPN connectivity on the guest when the host is connected to VPN
Additional Information:
- The VPN is full tunnel
- The behavior I want works out of the box with VirtualBox
Any advice on how I can make this work? Does my sysadmin need to set up split-tunnel? If so, how can virtualbox accomplish the same behavior using full tunnel?