fail2ban: use formula instead of multipliers
All checks were successful
/ deploy (push) Successful in 30s

This commit is contained in:
toufic ar 2026-01-29 17:52:56 +02:00
parent 1d717b862e
commit f9a39222be
Signed by: toufic ar
SSH key fingerprint: SHA256:/NaO5I1nG3gYKzrzSiTYIdRyaIYxDWfr1U+d+yfJ/4k

View file

@ -2,12 +2,11 @@
services.fail2ban = {
enable = true;
maxretry = 5;
bantime = "6h";
bantime = "24h";
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";
rndtime = "12h";
overalljails = true;
};
};