reNixos/s0mev1rtn0de-nix/services/fail2ban.nix
s0me1newithhand7s 2939b08891 big staging update
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
2025-12-29 16:42:07 +03:00

14 lines
307 B
Nix

{...}: {
services = {
fail2ban = {
enable = true;
bantime-increment = {
enable = true;
factor = "10";
formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
overalljails = true;
maxtime = "500h";
};
};
};
}