How To Install conntrack-tools on CentOS 8

conntrack-tools is Manipulate netfilter connection tracking table and run High Availability

Introduction

In this tutorial we learn how to install conntrack-tools on CentOS 8.

What is conntrack-tools

With conntrack-tools you can setup a High Availability cluster and synchronize conntrack state between multiple firewalls. The conntrack-tools package contains two programs - conntrack tracking system. - conntrackd deploy highly available GNU/Linux firewalls and collect statistics of the firewall use. conntrack is used to search, list, inspect and maintain the netfilter connection tracking subsystem of the Linux kernel. Using conntrack, you can dump a list of all (or a filtered selection of) currently tracked connections, delete connections from the state table, and even add new ones. In addition, you can also monitor connection tracking events, e.g. show an event message (one line) per newly established connection.

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

Install conntrack-tools 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 conntrack-tools using dnf by running the following command:

sudo dnf -y install conntrack-tools

Install conntrack-tools 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 conntrack-tools using yum by running the following command:

sudo yum -y install conntrack-tools

How To Uninstall conntrack-tools on CentOS 8

To uninstall only the conntrack-tools package we can use the following command:

sudo dnf remove conntrack-tools

conntrack-tools Package Contents on CentOS 8

/etc/conntrackd
/etc/conntrackd/conntrackd.conf
/usr/lib/.build-id
/usr/lib/.build-id/15
/usr/lib/.build-id/15/6ddbf64ea03b5ca7d4865105dc14be94a06844
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/eed8a3cea1b745b1f1cf60e57b490c43c02ec3
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/5b537fba30497f7c9ea1efe2b1951e3aadf5e1
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/28436a9a0e83f03385e7ed75903185b9482118
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/da4ec8f41e83aa3c838028258ecaecb8e71e60
/usr/lib/.build-id/51
/usr/lib/.build-id/51/c1b45dd23d6441c0ea1508e7316af064db2009
/usr/lib/.build-id/55
/usr/lib/.build-id/55/36eff9001ba11635b85bfc4e896919e7fc8404
/usr/lib/.build-id/60
/usr/lib/.build-id/60/9b9c07676d16bf1280fb6747c6b29c2a3ac113
/usr/lib/.build-id/95
/usr/lib/.build-id/95/230e185b4890a095b8ce48eb96cad4f1188e05
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/00534333b066db976a824b4b8ece5c222864e1
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/0cab090fdac6dbce99f0adefa82aa7ac661ced
/usr/lib/systemd/system/conntrackd.service
/usr/lib64/conntrack-tools
/usr/lib64/conntrack-tools/ct_helper_amanda.so
/usr/lib64/conntrack-tools/ct_helper_dhcpv6.so
/usr/lib64/conntrack-tools/ct_helper_ftp.so
/usr/lib64/conntrack-tools/ct_helper_rpc.so
/usr/lib64/conntrack-tools/ct_helper_sane.so
/usr/lib64/conntrack-tools/ct_helper_ssdp.so
/usr/lib64/conntrack-tools/ct_helper_tftp.so
/usr/lib64/conntrack-tools/ct_helper_tns.so
/usr/sbin/conntrack
/usr/sbin/conntrackd
/usr/sbin/nfct
/usr/share/doc/conntrack-tools
/usr/share/doc/conntrack-tools/AUTHORS
/usr/share/doc/conntrack-tools/TODO
/usr/share/doc/conntrack-tools/doc
/usr/share/doc/conntrack-tools/doc/cli
/usr/share/doc/conntrack-tools/doc/cli/test.sh
/usr/share/doc/conntrack-tools/doc/helper
/usr/share/doc/conntrack-tools/doc/helper/conntrackd.conf
/usr/share/doc/conntrack-tools/doc/manual
/usr/share/doc/conntrack-tools/doc/manual/Makefile
/usr/share/doc/conntrack-tools/doc/manual/config.xsl
/usr/share/doc/conntrack-tools/doc/manual/conntrack-tools.tmpl
/usr/share/doc/conntrack-tools/doc/manual/docbook.css
/usr/share/doc/conntrack-tools/doc/stats
/usr/share/doc/conntrack-tools/doc/stats/conntrackd.conf
/usr/share/doc/conntrack-tools/doc/sync
/usr/share/doc/conntrack-tools/doc/sync/alarm
/usr/share/doc/conntrack-tools/doc/sync/alarm/README
/usr/share/doc/conntrack-tools/doc/sync/alarm/conntrackd.conf
/usr/share/doc/conntrack-tools/doc/sync/ftfw
/usr/share/doc/conntrack-tools/doc/sync/ftfw/README
/usr/share/doc/conntrack-tools/doc/sync/ftfw/conntrackd.conf
/usr/share/doc/conntrack-tools/doc/sync/keepalived.conf
/usr/share/doc/conntrack-tools/doc/sync/notrack
/usr/share/doc/conntrack-tools/doc/sync/notrack/README
/usr/share/doc/conntrack-tools/doc/sync/notrack/conntrackd.conf
/usr/share/doc/conntrack-tools/doc/sync/primary-backup.sh
/usr/share/licenses/conntrack-tools
/usr/share/licenses/conntrack-tools/COPYING
/usr/share/man/man5/conntrackd.conf.5.gz
/usr/share/man/man8/conntrack.8.gz
/usr/share/man/man8/conntrackd.8.gz
/usr/share/man/man8/nfct.8.gz

References

Summary

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