Adding whitelists as parsers seem to work on 1st glance, but they are not taken into account:
Code Select
my/homelan-whitelist 🏠 enabled,local /usr/local/etc/crowdsec/parsers/s02-enrich/my-homelan-whitelist.yaml
my/whitelist 🏠 enabled,local /usr/local/etc/crowdsec/parsers/s02-enrich/public-whitelist.yaml
and I still got my local desktop PC banned:Code Select
root@opn:~ # cscli alerts list -i 192.168.11.69 -a
╭────────┬───────────────────────────────────────────────┬──────────────────────────────────────┬─────────┬────┬───────────┬─────────────────────────────────────────╮
│ ID │ value │ reason │ country │ as │ decisions │ created_at │
├────────┼───────────────────────────────────────────────┼──────────────────────────────────────┼─────────┼────┼───────────┼─────────────────────────────────────────┤
│ 312440 │ lists:otx-webscanners (1035 Ips) │ update : +1035/-0 IPs │ │ │ ban:1035 │ 2025-08-19 06:19:49 +0000 UTC │
│
│ 311787 │ Ip:192.168.11.69 │ firewallservices/pf-scan-multi_ports │ │ │ ban:1 │ 2025-08-18 09:37:24.421109652 +0000 UTC │
The only working solution was:Code Select
cscli allowlists create my_allowlist -d "Trusted Home LAN"
cscli allowlists add my_allowlist 192.168.11.0/24 -d "Home LAN"
root@opn:/usr/local/etc/crowdsec/conf.d # cscli allowlist inspect my_allowlist
──────────────────────────────────────────────
Allowlist: my_allowlist
──────────────────────────────────────────────
Name my_allowlist
Description Trusted Home LAN
Created at 2025-08-19T07:43:22.504Z
Updated at 2025-08-19T07:43:29.430Z
Managed by Console no
──────────────────────────────────────────────
─────────────────────────────────────────────────────────────
Value Comment Expiration Created at
─────────────────────────────────────────────────────────────
192.168.11.0/24 Home LAN never 2025-08-19T07:43:29Z
─────────────────────────────────────────────────────────────
root@opn:/usr/local/etc/crowdsec/conf.d #