Enable L2TP over IPSec on Ubuntu

30 November 2018

If you're running the latest Ubuntu 18.04, then you don't need to add the PPA repository. If on lower version of Ubuntu, please add this PPA.

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

Install network manager l2tp

network-manager-l2tp-gnome is required if running gnome

$ sudo apt-get install network-manager-l2tp
$ sudo apt-get install network-manager-l2tp-gnome

Add your dialer

  1. Navigate to Settings > Network > VPN.
  2. Click the + button and Select Layer 2 Tunneling Protocol (L2TP) then click Create.
  3. Fill up Name, Gateway and Username fields.
  4. On the Password field, select your preference on how to supply the password.
  5. Configure IPSec settings as described. IPSec Settings

Disable xl2tpd

I have to disable xl2tpd on my machine.

sudo service xl2tpd stop
sudo systemctl disable xl2tpd