How To Install ferm on CentOS 7

In this tutorial we learn how to install ferm on CentOS 7. ferm is For Easy Rule Making

Introduction

In this tutorial we learn how to install ferm on CentOS 7.

What is ferm

Ferm is a tool to maintain complex firewalls, without having the trouble to rewrite the complex rules over and over again. Ferm allows the entire firewall rule set to be stored in a separate file, and to be loaded with one command. The firewall configuration resembles structured programming-like language, which can contain levels and lists.

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

Install ferm on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install ferm

Install ferm on CentOS 7 Using dnf

If you don’t have dnf installed you can install dnf first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install ferm

How To Uninstall ferm on CentOS 7

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

sudo dnf remove ferm

ferm Package Contents on CentOS 7

/usr/lib/systemd/system/ferm.service
/usr/sbin/ferm
/usr/sbin/import-ferm
/usr/share/doc/ferm-2.2
/usr/share/doc/ferm-2.2/AUTHORS
/usr/share/doc/ferm-2.2/COPYING
/usr/share/doc/ferm-2.2/NEWS
/usr/share/doc/ferm-2.2/README
/usr/share/doc/ferm-2.2/TODO
/usr/share/doc/ferm-2.2/examples
/usr/share/doc/ferm-2.2/examples/antiddos.ferm
/usr/share/doc/ferm-2.2/examples/arptables.ferm
/usr/share/doc/ferm-2.2/examples/dmz_router.ferm
/usr/share/doc/ferm-2.2/examples/dsl_router.ferm
/usr/share/doc/ferm-2.2/examples/ebtables.ferm
/usr/share/doc/ferm-2.2/examples/fileserver.ferm
/usr/share/doc/ferm-2.2/examples/ipv6.ferm
/usr/share/doc/ferm-2.2/examples/mailserver.ferm
/usr/share/doc/ferm-2.2/examples/resolve.ferm
/usr/share/doc/ferm-2.2/examples/webserver.ferm
/usr/share/doc/ferm-2.2/examples/workstation.ferm
/usr/share/doc/ferm-2.2/ferm.html
/usr/share/doc/ferm-2.2/ferm.txt
/usr/share/man/man1/ferm.1.gz
/usr/share/man/man1/import-ferm.1.gz

References

Summary

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