Crowdsec x pfsense fw

Install

See here.

Start/stop/restart

service crowdsec.sh start/stop/restart
service crowdsec_firewall.sh start/stop/restart

Whitelist

See here.

Create:

cscli allowlist create my_allowlist -d 'created from the docs'

Add:

cscli allowlist add my_allowlist 192.168.1.1 # one ip
cscli allowlist add my_allowlist 192.168.1.0/24 # cidr range

List:

cscli allowlist inspect my_allowlist