FAQ Forum

Welcome to FAQ Forum . 歡 迎 來 到 常 見 問 題 論 壇

This community is for professionals and enthusiasts of our products and services.   Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.


How to Setup an L2TP/IPsec VPN Client on Linux?

1 Answer
Best Answer

To add an L2TP/IPsec option to the NetworkManager, you need to install the NetworkManager-l2tp VPN plugin which supports NetworkManager 1.8 and later. It provides support for L2TP and L2TP/IPsec.

To install the L2TP module on Ubuntu and Ubuntu-based Linux distributions, use the following steps.

1) $ sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
2) $ sudo apt-get update
3) $ sudo apt-get install network-manager-l2tp  network-manager-l2tp-gnome

On RHEL/CentOS and Fedora Linux, use the following dnf command to install L2TP module.

1) # dnf install xl2tpd
2) # dnf install NetworkManager-l2tp
3) # dnf install NetworkManager-l2tp-gnome
1) # yum install xl2tpd
2) # yum install NetworkManager-l2tp
3) # yum install NetworkManager-l2tp-gnome

Once the package installation is complete, click on your Network Manager icon, then go to Network Settings.

Please input the proper user information for Cowbee SDN VPN service.

4) Next, add a new VPN connection by clicking on the (+) sign.

5) Then select Layer 2 Tunneling Protocol (L2TP) option from the pop-up window.

6) Next, enter the VPN connection details (gateway IP address or hostname, username and password) you received from Cowbee (cs.cowbee@cowbee.net), in the following window.

7) Next, click IPsec Settings to enter the pre-shared key for the connection. Then enable IPsec tunnel to L2TP host, enter (or copy and paste the) the Pre-shared key and click Ok.  (You are required to obtain the appropriate subscription for the L2TP Keys)

8) After that, click Add. Now your new VPN connection should be added.

9) Next, turn on the VPN connection to start using it. If the connection details are correct, the connection should be established successfully.