Hyper-v - Ubuntu 20.04 - Checkpoint VPN - NAT not working

Copper Contributor

Hi all,


I follow this guide https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network to setup a NAT


My commands should be

New-VMSwitch -SwitchName "NATSwitch" -SwitchType Internal
New-NetIPAddress -IPAddress -PrefixLength 24 -InterfaceIndex 74
New-NetNat -Name NATNetwork -InternalIPInterfaceAddressPrefix

Then in VM settings, I choose the "Virtual switch" = NATSwitch

Then in Ubuntu I configure the network as

IP =
Default gw:


But in my VM, the network is unconnected (even I start VPN or not)


What I am wrong? please help

2 Replies

Still not able to connect by using NAT but using the adapter Internet Connection Sharing feature can resolve it. This is just a workaround, I have to do it everytime I connect to VPN

Hi @lapth82 , could you explain your solution a bit more? I am trying to connect my ubuntu VM to the VPN, which the client software of the VPN is running on the host machine. Which adapter of the host machine should I configure with Internet Connection Sharing feature?