Follow these steps below to setup a L2TP VPN client:
- Install network-manager-l2tp:
- sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
- sudo apt-get update
- sudo apt-get install network-manager-l2tp
- If using gnome, install the gnome plugin (if using another desktop environment, see if there’s a plugin for its network manager):
- sudo apt-get install network-manager-l2tp-gnome
- Navigate to Settings > Network > Click the
+button > Select “Layer 2 Tunneling Protocol (L2TP)” - Name the new VPN connection something
- Put the host name or address in the Gateway field.
- Put username in the Username field.
- Click the icon in the Password field and select your preference for how to supply the password.
- Click IPSec Settings…
- Click the box for “Enable IPsec tunnel to L2TP host”
- Enter the shared secret into the Pre-shared key field.
- Leave the Gateway ID field empty.
- Expand the Advanced options area
- Enter “3des-sha1-modp1024” into the Phase 1 Algorithms box.
- Enter “3des-sha1” into the Phase 2 Algorithms box.
- Leave the box checked for “Enforce UDP encapsulation”.
- Click OK.
- Click Save.
- Open a terminal and enter the following commands to permanently disable the
xl2tpdservice:- sudo service xl2tpd stop
- sudo systemctl disable xl2tpd
- Open Network Settings and try to turn the VPN on.
Reference:
- http://blog.z-proj.com/enabling-l2tp-over-ipsec-on-ubuntu-16-04
- /https://askubuntu.com/questions/789421/l2tp-ipsec-psk-vpn-client-on-xubuntu-16-04