crowdsec

Ajout d'un agent sans api

apt install curl -y
curl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | bash
apt install crowdsec -y
cp /lib/systemd/system/crowdsec.service /etc/systemd/system/crowdsec.service
sed -i 's/config.yaml$/config.yaml -no-api/' /etc/systemd/system/crowdsec.service
systemctl daemon-reload
systemctl restart crowdsec
cscli lapi register -u https://crowdsec.domaine.com