https://www.crowdsec.net/

Install

curl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | sudo bash
Install CrowdSec Repository.''

sudo apt install crowdsec
Install CrowdSec. This only installs the detection part (it's an IDS).

sudo apt install crowdsec-firewall-bouncer-iptables
Install the Bouncer. This installs the prevention part (it's now an IPS)

Basis

cscli hub list
Show CrowdSec collections, parsers, scenarios.

cscli alerts list
Show CrowdSec actions.

cscli decisions list
Show CrowdSec actions.

cscli collections install crowdsecurity/apache2
Install a new collection. Collections are available here: https://hub.crowdsec.net/browse/

/usr/share/crowdsec/wizard.sh -c
Enable other collections.