services.fail2ban: add ignoreIP

This commit is contained in:
陈浩南 2023-11-21 20:52:46 +08:00
parent 04d411d16f
commit 24727ea5f0

View File

@ -10,6 +10,10 @@ inputs:
inherit (inputs.lib) mkIf;
in mkIf fail2ban.enable
{
services.fail2ban.enable = true;
services.fail2ban =
{
enable = true;
ignoreIP = [ "127.0.0.0/8" "192.168.0.0/16" "vps6.chn.moe" ];
};
};
}