nixos-config/hosts/x86_64-linux/beleth/fail2ban.nix

18 lines
336 B
Nix

{
config,
lib,
...
}: {
services.fail2ban = {
enable = true;
maxretry = 3;
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";
maxtime = "336h";
overalljails = true;
};
};
}