How To Install ferm on Debian 11

In this tutorial we learn how to install ferm on Debian 11. ferm is maintain and setup complicated firewall rules

Introduction

In this tutorial we learn how to install ferm on Debian 11.

What is ferm

ferm is:

ferm is a frontend for iptables. It reads the rules from a structured configuration file and calls iptables(8) to insert them into the running kernel.

ferm’s goal is to make firewall rules easy to write and easy to read. It tries to reduce the tedious task of writing down rules, thus enabling the firewall administrator to spend more time on developing good rules than the proper implementation of the rule.

To achieve this, ferm uses a simple but powerful configuration language, which allows variables, functions, arrays, blocks. It also allows you to include other files, allowing you to create libraries of commonly used structures and functions.

ferm, pronounced “firm”, stands for “For Easy Rule Making”.

There are three methods to install ferm on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ferm Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ferm using apt-get by running the following command:

sudo apt-get -y install ferm

Install ferm Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ferm

Install ferm Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install ferm

How To Uninstall ferm on Debian 11

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

sudo apt-get remove ferm

Uninstall ferm And Its Dependencies

To uninstall ferm and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove ferm

Remove ferm Configurations and Data

To remove ferm configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge ferm

Remove ferm configuration, data, and all of its dependencies

We can use the following command to remove ferm configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ferm

Dependencies

ferm have the following dependencies:

References

Summary

In this tutorial we learn how to install ferm package on Debian 11 using different package management tools: apt, apt-get and aptitude.