L2TP over IPSec cannot connect on MacOS 12.6
Posted: Sun Oct 09, 2022 1:04 pm
Hi!
Yesterday I decided to try attempting to install a VPN server on a fresh DigitalOcean instance and connect to LAN on my remote Win10 machine (I've been planning to do this for a while). I successfully installed the server on ubuntu, and a command-line client on my ubuntu laptop, and it connects fine. But when I try to connect to the server via L2TP on Mac I get a couple of minutes of "conecting", and then a message "a connection could not be established to the ppp server. try reconnecting. if the problem continues, verify your settings and contact your administrator." pops up.
What I did:
I ran "/usr/local/vpnserver start"
In "/usr/local/vpncmd" I enabled L2TP over IPSec (IPSecEnable)
Created a user "username" in DEFAULT virtual hub, and set UserPasswordSet
In the L2TP configuration on my mac I entered the global IP address of the server (without port) and the username in format username@DEFAULT
In Authentication Settings I typed the password and shared secret for IPSec
I just started to try to understand how network protocols work so I don't know, which logs do I need to look into to get more info about what's going on. The UI of L2TP on Mac does not have a "verbose" option. Any help or a hint about which logs do I need to look at will be appreciated.
P.S. When I enter the IP address with port and hit "connect" I instantly get a message "The L2TP-VPN server was unreachable. Verify the server address and try reconnecting. If the problem continues, contact your Administrator."
Yesterday I decided to try attempting to install a VPN server on a fresh DigitalOcean instance and connect to LAN on my remote Win10 machine (I've been planning to do this for a while). I successfully installed the server on ubuntu, and a command-line client on my ubuntu laptop, and it connects fine. But when I try to connect to the server via L2TP on Mac I get a couple of minutes of "conecting", and then a message "a connection could not be established to the ppp server. try reconnecting. if the problem continues, verify your settings and contact your administrator." pops up.
What I did:
I ran "/usr/local/vpnserver start"
In "/usr/local/vpncmd" I enabled L2TP over IPSec (IPSecEnable)
Created a user "username" in DEFAULT virtual hub, and set UserPasswordSet
In the L2TP configuration on my mac I entered the global IP address of the server (without port) and the username in format username@DEFAULT
In Authentication Settings I typed the password and shared secret for IPSec
I just started to try to understand how network protocols work so I don't know, which logs do I need to look into to get more info about what's going on. The UI of L2TP on Mac does not have a "verbose" option. Any help or a hint about which logs do I need to look at will be appreciated.
P.S. When I enter the IP address with port and hit "connect" I instantly get a message "The L2TP-VPN server was unreachable. Verify the server address and try reconnecting. If the problem continues, contact your Administrator."