You can whitelist an individual or range of IP address's by creating a file in the relevant locations
Linux
$> vim /etc/crowdsec/parsers/s02-enrich/mywhitelist.yaml
Once the file is open you can add the following contents please remove the # and edit those lines.
name: my/whitelists
description: "Custom whitelist"
whitelist:
reason: "custom whitelist"
ip:
# - "10.10.10.10"
cidr:
# - "10.10.10.10/24"
Once the file is saved you must reload the CrowdSec service so it can bring the file into the process pipeline:
$> systemctl reload crowdsec
Freebsd
$> vim /usr/local/etc/crowdsec/parsers/s02-enrich/mywhitelist.yaml
Once the file is open you can add the following contents please remove the # and edit those lines.
name: my/whitelists
description: "Custom whitelist"
whitelist:
reason: "custom whitelist"
ip:
# - "10.10.10.10"
cidr:
# - "10.10.10.10/24"
Once the file is saved you must reload the CrowdSec service so it can bring the file into the process pipeline:
$> systemctl reload crowdsec
Windows
You must run the following commands on a elevated powershell prompt.
$> notepad c:/programdata/crowdsec/config/parsers/s02-enrich/mywhitelist.yaml
Once the file is open you can add the following contents please remove the # and edit those lines.
name: my/whitelists
description: "Custom whitelist"
whitelist:
reason: "custom whitelist"
ip:
# - "10.10.10.10"
cidr:
# - "10.10.10.10/24"
Once the file is saved you must reload the CrowdSec service so it can bring the file into the process pipeline:
$> Restart-service crowdsec
Comments
0 comments
Article is closed for comments.