enable whitelist for ipv4 ranges

This commit is contained in:
♥ Minnie ♥ 2024-11-28 22:23:04 +08:00
parent cd7f0eb21d
commit 205f85271b
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -95,6 +95,24 @@ in {
];
};
environment.etc = {
"/crowdsec/parsers/s02-enrich/whitelist.yaml" = {
text = ''
name: "sajenim/whitelist"
description: "Whitelist events from my ipv4 addresses"
whitelist:
reason: "my ipv4 ranges"
ip:
- "127.0.0.1"
cidr:
- "192.168.0.0/16"
- "10.0.0.0/8"
- "172.16.0.0/12"
'';
mode = "0755";
};
};
environment.persistence."/persist" = {
directories = [
{