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.
5: Select Layer 2 Tunneling Protocol (L2TP).
6: Click "IPSec Settings"
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.
8: Now click "PPP Settings".
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.
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"
11: Now your L2TP Ubuntu VPN profile has been created. Toggle the switch to connect to it.
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.
Free VPN Tutorials: What's More
- PPTP VPN on Ubuntu Linux
- Set up OpenVPN on Ubuntu Linux using the Network Manager
- Cisco AnyConnect Compatible OpenConnect VPN on Ubuntu Linux
- VPN for Other Linux Operating Systems
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.