Page 1 of 1

Softether secureNAT not working

Posted: Sun Mar 27, 2022 2:47 am
by kawaGUCCi
I have set up softether vpn on a cloud VM and I am able to connect my client machine to it. I want to use secureNAT and I am getting an IP from the inbuilt dhcp server of SE. When I do ```sudo dhclient vpnadapter``` on the client machine, it seems that the vpn server is not redirecting requests to the internet and I am getting address unreachable error on my browser.

Few observations
--------
If I do dhclient and ping 192.168.30.1 (gateway IP of vpnclient), I am getting Destination Host Unreachable echoes.

If I do ```ip link set vpnadapter down``` (routing normally) then ping 192.168.30.1 I am getting a valid response.

The Nattable on the vpnserver is Empty, and I believe it shouldnt be so.

Any help would be greatly appreciated

Re: Softether secureNAT not working

Posted: Sun Mar 27, 2022 8:29 am
by solo
Assuming that IP forwarding is already enabled, you need to add a static route to the VPN server via your old default gateway and delete the old default route after the dhclient command.