Generally nowadays most Linux distributions along with existing desktop environments They usually provide the user with a simple way to manage the internet connection networks through a network manager or administrator.
Many these are usually pretty straightforwards, since they only show you the available connections (LAN and Wi-Fi), many others allow you to make a type of connection with more advanced functions (add a proxy, use a VPN.etc).
Today we are going to talk about an excellent Plugin for network administrator called Network Manager L2TP.
This is a plugin for the Gnome network manager (NetworkManager) this plugin is a powerful VPN plugin for network management.
Provides support for Layer 2 Tunneling Protocol connections. This is UA plug-in for NetworkManager 1.8 and later that provides support for L2TP and L2TP / IPsec connections (that is, L2TP over IPsec).
Uses a protocol for virtual private networks that was designed by an IETF working group as the heir apparent to the PPTP and L2F protocols, created to correct the shortcomings of these protocols and establish itself as an IETF approved standard.
L2TP uses PPP to provide dial-up access that can be tunneled over the Internet to a specified point. L2TP defines its own tunneling protocol, based on L2F. The L2TP transport is defined for a wide variety of data packet types, including X.25, Frame Relay, and ATM.
How to install L2TP Network Manager on Ubuntu 14.05 LTS and Ubuntu 16.06 LTS?
In order to install this L2TP / Ipsec network manager in Ubuntu 14.04 LTS and Ubuntu 16.04 LTS versions, you must add this repository to your system.
First we are going to proceed to open a terminal with Ctrl + Alt + T and execute the following commands in it
We will add the repository with the following command:
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
Now We proceed to update the list of packages and repositories with:
sudo apt-get update
Y finally We proceed to install the network administrator in the system with the following command:
sudo apt install network-manager-l2tp network-manager-l2tp-gnome
How to install L2TP Network Manager on Ubuntu 18.04 LTS?
For those who are Ubuntu 18.04 LTS users and want to install this application on their system, they must open a terminal on their system with Ctrl + Alt + T and in it they must execute the following commands.
The application can be found within the official Ubuntu repositories so the installation can be done directly from your Ubuntu Software center or if you prefer from the terminal you can type:
sudo apt install network-manager-gnome-l2tp
In case of having problems and it appears that the application is not found, must enable the Ubuntu repository "universe", for this, just type the following command:
sudo add-apt-repository universe
We update the list of repositories and packages with:
sudo apt update
And we retype the command to install the application on the system:
sudo apt install network-manager-gnome-l2tp [/ sourcecode]
And ready with this they will be able to use this add-on to make their VPN connection in the system.
When going to the NetworkManager options> add VPN, the L2TP and PPTP options should appear.
At the moment the only problem they can run into is that NetworkManager-l2tp starts its own xl2tpd instance and if the system xl2tpd service is running, its own xl2tpd instance won't be able to use UDP port 1701, so it will use a random high port.
When stopping the xl2tpd system service you must free UDP port 1701, the xl2tpd service can be stopped with the following:
sudo systemctl stop xl2tpd
If stopping the xl2tpd service fixes the VPN connection problem, you can disable the xl2tpd service from starting at boot time with:
sudo systemctl disable xl2tpd