How To Install fastd on CentOS 8

fastd is Fast and secure tunneling daemon

Introduction

In this tutorial we learn how to install fastd on CentOS 8.

What is fastd

fastd is a secure tunneling daemon with some unique features - Very small binary (about 100KB on OpenWRT in the default configuration, including all dependencies besides libc) - Exchangable crypto methods - Transport over UDP for simple usage behind NAT - Can run in 1 - There are no server and client roles defined by the protocol, this is just defined by the usage. - Only one instance of the daemon is needed on each host to create a full mesh If no full mesh is established, a routing protocol is necessary to enable hosts that are not connected directly to reach each other

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

Install fastd on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install fastd

Install fastd on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install fastd

How To Uninstall fastd on CentOS 8

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

sudo dnf remove fastd

fastd Package Contents on CentOS 8

/etc/fastd
/usr/bin/fastd
/usr/lib/.build-id
/usr/lib/.build-id/59
/usr/lib/.build-id/59/1070fa6de27dff6ea312dd8ac2355897d9f88a
/usr/lib/systemd/system/[email protected]
/usr/share/doc/fastd
/usr/share/doc/fastd/README.md
/usr/share/doc/fastd/crypto
/usr/share/doc/fastd/crypto/ciphers.txt
/usr/share/doc/fastd/crypto/ec25519.txt
/usr/share/doc/fastd/crypto/fhmqvc.txt
/usr/share/doc/fastd/crypto/macs.txt
/usr/share/doc/fastd/crypto/methods.txt
/usr/share/doc/fastd/devel
/usr/share/doc/fastd/devel/building.txt
/usr/share/doc/fastd/devel/protocol.txt
/usr/share/doc/fastd/index.txt
/usr/share/doc/fastd/manual
/usr/share/doc/fastd/manual/cmdline.txt
/usr/share/doc/fastd/manual/config.txt
/usr/share/doc/fastd/manual/methods.txt
/usr/share/doc/fastd/manual/mtu.txt
/usr/share/doc/fastd/releases
/usr/share/doc/fastd/releases/v15.txt
/usr/share/doc/fastd/releases/v16.txt
/usr/share/doc/fastd/releases/v17.txt
/usr/share/doc/fastd/releases/v18.txt
/usr/share/doc/fastd/releases/v19.txt
/usr/share/doc/fastd/releases/v20.txt
/usr/share/doc/fastd/releases/v21.txt
/usr/share/licenses/fastd
/usr/share/licenses/fastd/COPYRIGHT
/usr/share/man/man1/fastd.1.gz

References

Summary

In this tutorial we learn how to install fastd on CentOS 8 using yum and dnf.