0

I am new to Stack Exchange. I am also new to Ubuntu.

I have problems connecting with VPN network.

I followed these instructions from these existing answers for this problem on Ask Ubuntu:

  1. https://www.youtube.com/watch?v=DkQefsZCfq0 (command file - https://drive.google.com/file/d/0B9vaBliUPd9tQXNpMWNQeUhHWTA/view)

  2. https://askubuntu.com/a/898086/733107

  3. https://askubuntu.com/a/920497/733107

But I still get"VPN connection failed because the VPN service failed to start".

Please help me in resolving this.

Venkat
  • 3

2 Answers2

1

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:

0

The network-manager-l2tp 1.2.8 package has a dependency on strongswan or libreswan. It's just because strongswan is listed before libreswan that strongswan gets installed by default.

A user wanting to install from scratch and use libreswan can issue the following:

sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update
sudo apt install libreswan
sudo apt install network-manager-l2tp network-manager-l2tp-gnome