linux solutions for business, add l2tp vpn, disable ping

How to add L2TP VPN in Ubuntu flavours

When it comes to VPN connections unfortunately Linux Network Manager is limited. Now we are going to explain the process of adding an option with L2tp VPN connection, so you can connect to your company office remotely.

If you use Linux operating system in your working process, and you need to use a VPN connection, you might see that the options are quite limited for selection. By default Ubuntu 16.04 and 18.04 doesn’t come with with a Layer 2 Tunnelling Protocol (L2TP) preinstalled solution. They comes with PPTP option for VPN.

There are ways to add L2TP support for the Network Manager found on Ubuntu Unity and GNOME desktops, as well distros of Ubuntu Budgie, Kylin, Mate, Studio, Xubuntu, Lubuntu, Kubuntu and Linux Mint.

  • Variant I: Adding the option manually

Open up a terminal window on your Ubuntu desktop and let's make sure your machine is up to date as typing the commands:

sudo apt-get update
​sudo apt-get upgrade

When those two commands complete we would need to add a repository:

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

Now update apt and install:

sudo apt-get update
​sudo apt-get install network-manager-l2tp network-manager-l2tp-gnome

Once these command completes restart the operating system. Once you have logged again in open Network Manager icon and click Edit Connections, then Add New. The new drop-down menu you will see the option of L2TP vpn.

 

  • Variant II: Adding the option automatically

Open Ubuntu Software on your Ubuntu 16.04 or 18.04 Desktop. Before that you should be enabled main Canonical channel, universe and multiverse as well. This is in a case you want to install some other VPN options additionally to L2TP. In Ubuntu Software search for Utilities to configure Gnome or Gnome Control Center package. It should look at like this:

l2tp vpn iceq.eu

Then select your desired Add-ons, in our case L2TP VPN Client. After install process finish go to Network Manager icon on your Desktop and you will see the option of L2TP vpn. That’s all.