Ubuntu L2TP VPN

Now with Ubuntu 17.04, since Ubuntu 16.04, I’ve had problems with connecting to a VPN that uses L2TP.  I found a fix through a series of steps, beginning with “Enabling L2TP over IPSec on Ubuntu 16.04” | Zaid Daba’een | Aug. 22, 2016, updated Mar. 29, 2017 at http://blog.z-proj.com/enabling-l2tp-over-ipsec-on-ubuntu-16-04/ .

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

Trying to then configure L2TP, I found that I was missing a component. Instructions were at “Connect to L2TP over IPsec” | July 2017 at https://askubuntu.com/questions/934350/connect-to-l2tp-over-ipsec


sudo apt install network-manager-l2tp-gnome
killall nm-applet
nm-applet &
disown

The “VPN Connection Failed”, so I needed some diagnostics. These were found at “How can I troubleshoot ‘VPN Connection Failed’?” | Jan. 22, 2016 at https://askubuntu.com/questions/16105/how-can-i-troubleshoot-vpn-connection-failed


journalctl -u NetworkManager.service

Based on those error messages, I found that the problem could be the ciphers. A similar error was found with “Unable to connect L2TP IPSec VPN from ubuntu 16.04 [duplicate]” | March 30, 2017 at https://askubuntu.com/questions/904217/unable-to-connect-l2tp-ipsec-vpn-from-ubuntu-16-04


$ sudo systemctl stop strongswan
$ sudo ike-scan .com

Ike-scan returned a result similar to that example, So, in the advanced section of the IPsec dialog box, I added:


Phase1 Algorithms : 3des-sha1-modp1024
Phase2 Algorithms : 3des-sha1

Unity Network Connections L2TP Advanced

Success!

Advertisements

#ipsec, #l2tp, #ubuntu