Adjust fail2ban settings
This commit is contained in:
parent
bbf75cccba
commit
352c0bf79b
1 changed files with 3 additions and 4 deletions
7
base.nix
7
base.nix
|
@ -86,12 +86,11 @@
|
|||
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
bantime = "1h";
|
||||
maxretry = 10;
|
||||
bantime = "10m";
|
||||
bantime-increment = {
|
||||
enable = true;
|
||||
factor = "2";
|
||||
formula = "ban.Time * (1 << (min(ban.Count, 6) * banFactor))";
|
||||
maxtime = "90d";
|
||||
maxtime = "1d";
|
||||
};
|
||||
jails = {
|
||||
DEFAULT.settings = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue