Add repository for installing network-manager-l2tp
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt-get update Install network-manager-l2tp
sudo apt-get install network-manager-l2tp
sudo apt-get install network-manager-l2tp-gnomeConfigure the network
- Go to Settings > Network.
- Press the + to add a VPN
- Select “Layer 2 Tunneling Protocol”
- Add Gateway, and username and password (optional).
- Click “IPsec Settings…”
- “Enable IPsec tunnel to L2TP host”
- Add your preshared key.
- Set Phase1 Algorithms to “3des-sha1-modp1024”
- Set Phase2 Algorithms to “3des-sha1”
- “Enforce UDP capsulation” are activated.
- Everything else should be unticked.
- Apply the settings
Turn off the xl2tpd service
sudo systemctl stop xl2tpdand prevent it from starting again on reboot
sudo systemctl disable xl2tpd.You should now be able to connect to the VPN.