nixos-config/hosts/x86_64-linux/beleth/fail2ban.nix

18 lines
336 B
Nix
Raw Normal View History

2024-07-17 13:01:09 +02:00
{
2024-07-18 19:17:30 +02:00
config,
lib,
...
}: {
2024-07-17 13:01:09 +02:00
services.fail2ban = {
enable = true;
maxretry = 3;
bantime-increment = {
enable = true;
formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
# multipliers = "1 2 4 8 16 32 64";
maxtime = "336h";
overalljails = true;
};
};
}