mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 23:00:33 +01:00
18 lines
336 B
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;
|
|
};
|
|
};
|
|
}
|