How To Install conntrack-tools on CentOS 7

In this tutorial we learn how to install conntrack-tools on CentOS 7. conntrack-tools is Manipulate netfilter connection tracking table and run High

Introduction

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

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 connection tracking system. - conntrackd used to 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 7. 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 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install conntrack-tools using yum by running the following command:

sudo yum -y install conntrack-tools

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

sudo dnf -y install conntrack-tools

How To Uninstall conntrack-tools on CentOS 7

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

sudo dnf remove conntrack-tools

References

Summary

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