How To Install crowdsec-firewall-bouncer on Debian 12

Learn how to install crowdsec-firewall-bouncer on Debian 12 with this tutorial. crowdsec-firewall-bouncer is CrowdSec bouncer for firewalls

Introduction

In this tutorial we learn how to install crowdsec-firewall-bouncer on Debian 12.

What is crowdsec-firewall-bouncer

crowdsec-firewall-bouncer is:

This package uses the CrowdSec API to implement decisions at the firewall level via blocklists. It supports both nftables and iptables+ipset (IPv4 and IPv6).

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

Install crowdsec-firewall-bouncer Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install crowdsec-firewall-bouncer

Install crowdsec-firewall-bouncer Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install crowdsec-firewall-bouncer using apt by running the following command:

sudo apt -y install crowdsec-firewall-bouncer

Install crowdsec-firewall-bouncer 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 crowdsec-firewall-bouncer using aptitude by running the following command:

sudo aptitude -y install crowdsec-firewall-bouncer

How To Uninstall crowdsec-firewall-bouncer on Debian 12

To uninstall only the crowdsec-firewall-bouncer package we can use the following command:

sudo apt-get remove crowdsec-firewall-bouncer

Uninstall crowdsec-firewall-bouncer And Its Dependencies

To uninstall crowdsec-firewall-bouncer and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove crowdsec-firewall-bouncer

Remove crowdsec-firewall-bouncer Configurations and Data

To remove crowdsec-firewall-bouncer configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge crowdsec-firewall-bouncer

Remove crowdsec-firewall-bouncer configuration, data, and all of its dependencies

We can use the following command to remove crowdsec-firewall-bouncer configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge crowdsec-firewall-bouncer

Dependencies

crowdsec-firewall-bouncer have the following dependencies:

References

Summary

In this tutorial we learn how to install crowdsec-firewall-bouncer package on Debian 12 using different package management tools: apt, apt-get and aptitude.