User Tools

Site Tools


crowdsec_setup

This is an old revision of the document!


Packages

apt-get install bash gettext whiptail curl wget

Install

curl -s https://api.github.com/repos/crowdsecurity/crowdsec/releases/latest | grep browser_download_url|    cut -d '"' -f 4  | wget -i -
tar xvzf crowdsec-release.tgz
cd crowdsec-v*
./wizard.sh -i

Basic packages you may wanna install/enable
https://hub.crowdsec.net/author/crowdsecurity/collections/sshd
https://hub.crowdsec.net/author/crowdsecurity/collections/iptables

Basic Bouncer you may wanna install
https://hub.crowdsec.net/author/crowdsecurity/bouncers/cs-netfilter-blocker

wget https://github.com/crowdsecurity/cs-netfilter-blocker/releases/download/v0.1.0/cs-netfilter-blocker.tgz
tar xzvf cs-netfilter-blocker.tgz
cd cs-netfilter-blocker-v*
./install.sh
systemctl status netfilter-blocker

Optional scenarios
https://hub.crowdsec.net/author/crowdsecurity/configurations/ban-defcon-drop_range
https://hub.crowdsec.net/author/crowdsecurity/configurations/ban-report-ssh_bf_report
Check Ban's

cscli ban list 
#or
cat /var/log/netfilter-blocker.log
crowdsec_setup.1605488197.txt.gz · Last modified: 2021/11/25 22:43 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki