How To Install xl2tpd on Fedora 34

xl2tpd is Layer 2 Tunnelling Protocol Daemon (RFC 2661)

Introduction

In this tutorial we learn how to install xl2tpd on Fedora 34.

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 Openswan. 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install xl2tpd.

Install xl2tpd on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install xl2tpd

Install xl2tpd on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install xl2tpd

How To Uninstall xl2tpd on Fedora 34

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

sudo dnf remove xl2tpd

xl2tpd Package Contents on Fedora 34

/etc/ppp/chap-secrets.sample
/etc/ppp/options.xl2tpd
/etc/xl2tpd
/etc/xl2tpd/l2tp-secrets
/etc/xl2tpd/xl2tpd.conf
/run/xl2tpd
/run/xl2tpd/l2tp-control
/usr/bin/pfc
/usr/lib/.build-id
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/88450caff24dfaa31934e8ad0751c891e7c2a0
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/784afb0487d99fa0e9fad35bfeda3390b37647
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/80f5a14dcd700bf2b6fe6b85035d66dc198bf0
/usr/lib/systemd/system/xl2tpd.service
/usr/lib/tmpfiles.d/xl2tpd.conf
/usr/sbin/xl2tpd
/usr/sbin/xl2tpd-control
/usr/share/doc/xl2tpd
/usr/share/doc/xl2tpd/BUGS
/usr/share/doc/xl2tpd/CHANGES
/usr/share/doc/xl2tpd/CREDITS
/usr/share/doc/xl2tpd/README.md
/usr/share/doc/xl2tpd/README.patents
/usr/share/doc/xl2tpd/TODO
/usr/share/doc/xl2tpd/chapsecrets.sample
/usr/share/licenses/xl2tpd
/usr/share/licenses/xl2tpd/LICENSE
/usr/share/man/man1/pfc.1.gz
/usr/share/man/man5/l2tp-secrets.5.gz
/usr/share/man/man5/xl2tpd.conf.5.gz
/usr/share/man/man8/xl2tpd-control.8.gz
/usr/share/man/man8/xl2tpd.8.gz

References

Summary

In this tutorial we learn how to install xl2tpd on Fedora 34 using yum and dnf.