How To Install conntrack-tools on Rocky Linux 8

In this tutorial we learn how to install conntrack-tools on Rocky Linux 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 Rocky Linux 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 Rocky Linux 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 Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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 Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Rocky Linux 8

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

sudo dnf remove conntrack-tools

conntrack-tools Package Contents on Rocky Linux 8

/etc/conntrackd
/etc/conntrackd/conntrackd.conf
/usr/lib/.build-id
/usr/lib/.build-id/17
/usr/lib/.build-id/17/2ec8edaff670af77d8e20bac2db9877a23964e
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/9eb610a82a03001a9c0bf13102ad7372a7330b
/usr/lib/.build-id/31
/usr/lib/.build-id/31/dc13b17c044afe6e527ccfae9cf07604ce340b
/usr/lib/.build-id/37
/usr/lib/.build-id/37/0d8d21917d8ddcef1d59452894755a3cd6c54b
/usr/lib/.build-id/62
/usr/lib/.build-id/62/20dcd5096d417c77360f35790846883b75e0b5
/usr/lib/.build-id/90
/usr/lib/.build-id/90/0b5b22673483bb516b94f6e9a5573513e64bc7
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/89f3a7cbf2c4d7ebfdc0d0ed722bd50a291388
/usr/lib/.build-id/be
/usr/lib/.build-id/be/0c35149a16de230c6b0d375c4359877d361813
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/064a09949127c3385a507b865d9e1f45fde17d
/usr/lib/.build-id/e9/bc292e8d3bcd70ee2d4f593c315e7ab85749e4
/usr/lib/.build-id/e9/e8df92f867678a2cdd9b7da769ecd831bbb911
/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 Rocky Linux 8 using yum and dnf.