Crowdsec Installation und Handling

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Installation

Curl installieren

  • apt install curl

Eintragen der Repositories und Update

Installation von Crowdsec

  • apt install crowdsec -y

Installation einiger Bouncers

  • apt install crowdsec-firewall-bouncer-iptables crowdsec-nginx-bouncer -y

Aktivieren von Sqlite WAL

  • echo "db_config:
 use_wal: true" > /etc/crowdsec/config.yaml.local
  • systemctl restart crowdsec.service

Installation der Bash Completion

  • cscli completion bash >> ~/.bashrc
  • source ~/.bashrc

Test it out by typing

  • cscli <TAB x 2>