Set up L2TP VPN on Ubuntu Linux

This tutorial explains how to set up L2TP VPN on Ubuntu Linux. Follow step-by-step to set up a Linux Ubuntu VPN client using the L2TP protocol.

  • We used the FastestVPN for this tutorial. While you can use any VPN service which offers the L2TP protocol.

1: Open terminal and switch to the root mode by typing in sudo bash

2: Then update your Ubuntu Linux by entering apt-get update

3: Now you need to install the L2TP VPN plugin. For this, enter these commands one by one.

  • ¬†apt-get install xl2tpd
  • apt-get install network-manager-l2tp network-manager-l2tp-gnome
  • systemctl restart NetworkManager.service

4: Now open your network settings and click on the + sign next to the VPN.

ubuntu l2tp

5: Select Layer 2 Tunneling Protocol (L2TP).

linux l2tp

6: Click "IPSec Settings"

ubuntu ipsec

7: Select "Pre-shared Key" in the type field. Then enter the L2TP/IPSec pre-shared key as provided by your VPN service provider in the "Pre-shared Key" field. Click "OK" to close the window.

ubuntu vpn client

8: Now click "PPP Settings".

ubuntu l2tp client

9: Uncheck "PAP", "MSCHAP", and "EAP" and then click "OK" to close the window.

Note: These settings may vary for different VPN service providers. We have created this tutorial while using the FastestVPN.

linux vpn client

10: Now enter the following information:

  • Name: Any name for your VPN such as "L2TP"
  • Gateway: Enter the L2TP VPN server address provided by your VPN service provider
  • User name: Enter the username as provided by your VPN service provider
  • Password: Enter the password as provided by your VPN service provider
  • Then click on "Add"

l2tp ubuntu

11: Now your L2TP Ubuntu VPN profile has been created. Toggle the switch to connect to it.

l2tp linux

Your L2TP VPN on Linux Ubuntu has been connected now. Later, you can use the network icon to connect and disconnect VPN on Ubuntu Linux.

ubuntu l2tp network manager

Free VPN Tutorials: What's More

By following the steps given above, you can easily set up a Linux Ubuntu L2TP VPN client. Besides, if you're looking for additional support or you have any questions related to setting up the L2TP VPN on Ubuntu or other Linux operating systems, you may Contact us for your questions, queries, feedback, or suggestions.

Add a comment


Please enter your comment!
Please enter your name here

Related posts