adonis/config/security/fail2ban.nix
toufic ar f9a39222be
All checks were successful
/ deploy (push) Successful in 30s
fail2ban: use formula instead of multipliers
2026-01-29 17:52:56 +02:00

13 lines
286 B
Nix

{
services.fail2ban = {
enable = true;
maxretry = 5;
bantime = "24h";
bantime-increment = {
enable = true;
formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
rndtime = "12h";
overalljails = true;
};
};
}