I am using Ubuntu server 20.04. I switched network settings, changed Netplan to NetworkManager. This is required for L2TP/IPsec vpn connection using NetworkManager. Further, after setting a static ip through NetworkManager, the ability to connect via ssh via PuTTY disappeared. When I try to connect via PuTTY I get the error "Network error: Connection timed out". How to fix the error? Checking ssh and iptables status enter image description here enter image description here
You need to setup a split tunnel VPN so that traffic to the remote network goes over the VPN tunnel and everything else doesn't.
As you are using PuTTY, I'll assume you know how to use X11 forwarding with a X11 server, so are able to run the X11
nm-connection-editor
GUI remotely.In
nm-connection-editor
for the VPN connection, click on the IPv4 tab and then enable the "Use this connection only for resources on its network" checkbox.