Install CrowdSec
For those that prefer hands-on approach, you can as well manually install crowdsec.
Install our repositories#
Installing our repositories allows you to access the latest packages of crowdsec and bouncers.
info
We are using packagecloud.io service.
While curl | sudo bash can be convenient for some, alternative installation methods are available.
- Debian/Ubuntu
- EL/Fedora/Centos7
- EL/Fedora/Centos8
- Amzn Linux 2
- FreeBSD
- OpenWRT
- Docker
- Kubernetes
curl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | sudo bashcurl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.rpm.sh | sudo bashcurl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.rpm.sh | sudo bashcurl -s https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.rpm.sh | sudo bashhelm repo add crowdsec https://crowdsecurity.github.io/helm-charts && helm repo updateInstall crowdsec#
- Debian/Ubuntu
- EL/Fedora/Centos8
- EL/Fedora/Centos7
- Amzn Linux 2
- FreeBSD
- OpenWRT
- Docker
- Kubernetes
apt install crowdsecyum install crowdsecdnf install crowdsecyum install crowdsecpkg install crowdsecdnf install crowdsecdocker pull crowdsecurity/crowdsechelm install crowdsec crowdsec/crowdsec -f crowdsec-values.yaml -n crowdsec --create-namespaceYou now have crowdsec running ! You can move forward and install a bouncer, or take a tour of the software beforehand !
caution
Keep in mind that CrowdSec is only in charge of the "detection", and won't block anything on its own. You need to deploy a bouncer to "apply" decisions.
Install a bouncer#
- Debian/Ubuntu
- EL/Fedora/Centos8
- EL/Fedora/Centos7
- Amzn Linux 2
- FreeBSD
- OpenWRT
apt install crowdsec-firewall-bouncer-iptablesyum install crowdsec-firewall-bouncer-iptablesdnf install crowdsec-firewall-bouncer-iptablesyum install crowdsec-firewall-bouncer-iptablespkg install crowdsec-firewall-bouncerpkg install crowdsec-firewall-bouncer-iptablesinfo
While we're suggesting the most common firewall bouncer, check our hub for more bouncers. Find a bouncer directly for your application (nginx, php, wordpress) or your providers (cloudflare, AWS/GCP/...)