Setup L2TP VPN client on ubuntu 16.04

Follow these steps below to setup a L2TP VPN client:

  1. 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
  2. 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
  3. Navigate to Settings > Network > Click the + button > Select “Layer 2 Tunneling Protocol (L2TP)”
  4. Name the new VPN connection something
  5. Put the host name or address in the Gateway field.
  6. Put username in the Username field.
  7. Click the icon in the Password field and select your preference for how to supply the password.
  8. Click IPSec Settings…
  9. Click the box for “Enable IPsec tunnel to L2TP host”
  10. Enter the shared secret into the Pre-shared key field.
  11. Leave the Gateway ID field empty.
  12. Expand the Advanced options area
  13. Enter “3des-sha1-modp1024” into the Phase 1 Algorithms box.
  14. Enter “3des-sha1” into the Phase 2 Algorithms box.
  15. Leave the box checked for “Enforce UDP encapsulation”.
  16. Click OK.
  17. Click Save.
  18. Open a terminal and enter the following commands to permanently disable the xl2tpdservice:
    • sudo service xl2tpd stop
    • sudo systemctl disable xl2tpd
  19. Open Network Settings and try to turn the VPN on.

Reference:

 

Leave a comment