adonis/config/security/fail2ban.nix
toufic ar 1d717b862e
Some checks failed
/ deploy (push) Failing after 8s
add fail2ban config
2026-01-29 17:41:53 +02:00

14 lines
324 B
Nix

{
services.fail2ban = {
enable = true;
maxretry = 5;
bantime = "6h";
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";
rndtime = "6h";
overalljails = true;
};
};
}