I assume you a using network-manager-l2tp and network-manager-l2tp-gnome version 1.2.8 packages from the following PPA:
For whatever reason, the IPsec connection is taking more than 10 seconds to establish, so is hitting a nm-l2tp's 10 second IPsec timeout.
Could you try deleting the temporary secrets files:
sudo rm -f /etc/ipsec.d/nm-l2tp-ipsec*.secrets
nm-l2tp 1.2.6 would leave those files behind, but 1.2.8 which is the latest and current version has a fix to delete what it generates. It looks like you might have reconfigured the connection multiple times with 1.2.6 and it left behind the secrets files. I'm not sure how much of an impact on reducing the timing it will have, but no harm in trying.
You could try using libreswan instead of strongswan which can be installed with the following command (which will also uninstall strongswan) :
sudo apt install libreswan
With libreswan, please delete any Phase 1 & 2 Algorithm settings you might have entered in the advanced section of the IPsec dialog box.
If you do get the IPsec connection up, and L2TP connection doesn't work, you may need to stop the system xl2tp service, see:
/var/log/syslog
). – Marc Vanhoomissen Sep 05 '17 at 09:51Could you please explain what IP address should I put for this command? sudo ike-scan 123.54.76.9
– Venkat Sep 06 '17 at 07:54https://github.com/nm-l2tp/network-manager-l2tp/wiki/Known-Issues#querying-vpn-server-for-supported-ipsec-ikev1-ciphers
– Douglas Kosovic Sep 07 '17 at 00:25