How To Install xl2tpd on CentOS 7

In this tutorial we learn how to install xl2tpd on CentOS 7. xl2tpd is Layer 2 Tunnelling Protocol Daemon (RFC 2661)

Introduction

In this tutorial we learn how to install xl2tpd on CentOS 7.

What is xl2tpd

xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661). L2TP allows you to tunnel PPP over UDP. Some ISPs use L2TP to tunnel user sessions from dial-in servers (modem banks, ADSL DSLAMs) to back-end PPP servers. Another important application is Virtual Private Networks where the IPsec protocol is used to secure the L2TP connection (L2TP/IPsec, RFC 3193). The L2TP/IPsec protocol is mainly used by Windows and Mac OS X clients. On Linux, xl2tpd can be used in combination with IPsec implementations such as Libreswan. Example configuration files for such a setup are included in this RPM. xl2tpd works by opening a pseudo-tty for communicating with pppd. It runs completely in userspace. xl2tpd supports IPsec SA Reference tracking to enable overlapping internak NAT’ed IP’s by different clients (eg all clients connecting from their linksys internal IP 192.168.1.101) as well as multiple clients behind the same NAT router. xl2tpd supports the pppol2tp kernel mode operations on 2.6.23 or higher, or via a patch in contrib for 2.4.x kernels. Xl2tpd is based on the 0.69 L2TP by Jeff McAdams [email protected] It was de-facto maintained by Jacco de Leeuw [email protected] in 2002 and 2003.

We can use yum or dnf to install xl2tpd on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install xl2tpd.

Install xl2tpd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install xl2tpd using yum by running the following command:

sudo yum -y install xl2tpd

Install xl2tpd on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install xl2tpd using dnf by running the following command:

sudo dnf -y install xl2tpd

How To Uninstall xl2tpd on CentOS 7

To uninstall only the xl2tpd package we can use the following command:

sudo dnf remove xl2tpd

References

Summary

In this tutorial we learn how to install xl2tpd on CentOS 7 using yum and dnf.