I need to connect to a L2TP IPsec VPN using Ubuntu 14.10. I previously used L2TP IPsec VPN Manager 1.0.9 from Werner Jaeger in Ubuntu 14.04, and it worked great, but that no longer appears to be supported in 14.10. I have xl2tpd installed. I no longer see the option to add a L2TP Ipsec VPN connection under the VPN Connections menu in Network Connections. Any help or guidance is appreciated.
-
2I went ahead and re-installed Ubuntu 14.04 after researching and trying for several days without success. I think I'll stick to the LTS versions for now.– Doug MaiJan 12, 2015 at 2:50
-
This worked for me (16.04): blog.z-proj.com/enabling-l2tp-over-ipsec-on-ubuntu-16-04– Muhamed HuseinbašićNov 15, 2016 at 9:30
2 Answers
The lt2p-ipsec-vpn package was deprecated along with OpenSwan. Ubuntu has replaced OpenSwan with StrongSwan, which is available in the main
, along with a corresponding network manager plugin in universe
.
apt-get install strongswan network-manager-strongswan
-
1l2tp-ipsec-vpn was deleted due to its dependency on openswan as well Jan 28, 2015 at 22:19
-
1@Pretzel did you ever succeed in getting IPSec/L2TP to work with pre-shared keys?– sbrattlaMay 1, 2016 at 20:26
-
9Could any of you show us how it's integrated with the network manager applet. I have installed these programs but don't see any additional options in nm. May 28, 2016 at 0:48
-
7Not sure if I'm missing something, but this solution does not make L2TP available in VPN connections.– SethJun 2, 2016 at 22:20
-
1Yes, currently it doesn't show up on the network manager. This is already known bug: bugs.launchpad.net/ubuntu/+source/network-manager-strongswan/… Fortunately, someone has applied some patches to solve this and made them available through this PPA: launchpad.net/~raharper/+archive/ubuntu/bugfixes– AkronixFeb 27, 2017 at 11:12
StrongSwan should work with xl2tpd
I know it's a best practice to paste the actual scripts but it's quite a bit. And honestly a link here would have saved me some trouble so hopefully someone finds this useful...
http://www.jasonernst.com/2016/06/21/l2tp-ipsec-vpn-on-ubuntu-16-04/ https://www.rapidvpn.com/setup-vpn-l2tp-ubuntu https://gist.github.com/psanford/42c550a1a6ad3cb70b13e4aaa94ddb1c
Maybe after I'm done I'll share the final script.
EDIT
A few implementation notes
- I had to remove the
lock
keyword from /etc/ppp/options.l2tpd.client - Username and password should be specified when
echo
into /var/run/xl2tpd/l2tp-control rightsubnet=0.0.0.0/0
was added to the connection in /etc/ipsec.conf even though mine was a site-to-site VPNip link
lists your devices. There should be apppN
in the list where N is a number from0
- For site-to-site I used the following to add a new route...
ip route add 192.168.192.0/24 dev ppp0