CAPI
Whitelists from CAPI (Central API) community blocklist or third party blocklist
From version 1.5.0, you can define IPs or IP ranges to whitelist from the community blocklist or third-party blocklists. Set the whitelist file path in config.yaml (no default path is set).
api:
server:
capi_whitelists_path: <path_to_capi_whitelists_file>
Recommended file paths:
- Linux
/etc/crowdsec/capi-whitelists.yaml - Freebsd
/usr/local/etc/crowdsec/capi-whitelists.yaml - Windows
c:/programdata/crowdsec/config/capi-whitelists.yaml
These files DO NOT exist by default. You MUST create them manually and set the path above.
Example file content:
ips:
- 1.2.3.4
- 2.3.4.5
cidrs:
- 1.2.3.0/24
Reload CrowdSec
sudo systemctl reload crowdsec