
CrowdSec Firewall Bouncer role¶
Deploy CrowdSec Firewall Bouncer.
Usage¶
Configure the role.
# https://docs.crowdsec.net/u/bouncers/firewall/
crowdsec_firewall_bouncer_enabled: true # default: false
crowdsec_firewall_bouncer_mode: nftables # default: iptables
crowdsec_firewall_bouncer_api_url: https://sec.example.com/ # default: http://{{ crowdsec_hostname }}:8080/
crowdsec_firewall_bouncer_key: # default: "{{ vault_crowdsec_firewall_bouncer_key }}
And include it in your playbook.
Docs¶
Show CrowdSec Firewall Bouncer status¶
The bouncer services runs on the host.
Show log files.
Show ip table entry.
Show content of whitelist configuration¶
Based on crowdsec_whitelist_ip_addresses the following file is generated:
Install bouncer manually¶
Add apt signing key.
curl -fsSL https://packagecloud.io/crowdsec/crowdsec/gpgkey | gpg --dearmor > /etc/apt/keyrings/crowdsec_crowdsec-archive-keyring.gpg
Show release code name and add apt source.
The content of the list:
deb [signed-by=/etc/apt/keyrings/crowdsec_crowdsec-archive-keyring.gpg] https://packagecloud.io/crowdsec/crowdsec/ubuntu $CODENAME main
deb-src [signed-by=/etc/apt/keyrings/crowdsec_crowdsec-archive-keyring.gpg] https://packagecloud.io/crowdsec/crowdsec/ubuntu $CODENAME main
Install the firewall bouncer: