nixos-config/hosts/x86_64-linux/beleth/fail2ban.nix
2024-07-17 13:01:09 +02:00

15 lines
328 B
Nix

{config, lib, ...}:
{
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;
};
};
}