fail2ban: use formula instead of multipliers
All checks were successful
/ deploy (push) Successful in 30s
All checks were successful
/ deploy (push) Successful in 30s
This commit is contained in:
parent
1d717b862e
commit
f9a39222be
1 changed files with 2 additions and 3 deletions
|
|
@ -2,12 +2,11 @@
|
||||||
services.fail2ban = {
|
services.fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
maxretry = 5;
|
maxretry = 5;
|
||||||
bantime = "6h";
|
bantime = "24h";
|
||||||
bantime-increment = {
|
bantime-increment = {
|
||||||
enable = true;
|
enable = true;
|
||||||
formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
|
formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
|
||||||
multipliers = "1 2 4 8 16 32 64";
|
rndtime = "12h";
|
||||||
rndtime = "6h";
|
|
||||||
overalljails = true;
|
overalljails = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue