From f9a39222bea2a5c89d4b364fdee9114405611ba5 Mon Sep 17 00:00:00 2001 From: toufic ar Date: Thu, 29 Jan 2026 17:52:56 +0200 Subject: [PATCH] fail2ban: use formula instead of multipliers --- config/security/fail2ban.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/security/fail2ban.nix b/config/security/fail2ban.nix index 1c6b9d6..0670df5 100644 --- a/config/security/fail2ban.nix +++ b/config/security/fail2ban.nix @@ -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; }; };