machines/magenta: enable bantime-incremental module for fail2ban
This commit is contained in:
parent
38f6055b36
commit
3cea029f06
1 changed files with 8 additions and 1 deletions
|
@ -28,5 +28,12 @@ in
|
||||||
defaults.email = "dmitriy@pleshevski.ru";
|
defaults.email = "dmitriy@pleshevski.ru";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.fail2ban.enable = true;
|
services.fail2ban = {
|
||||||
|
enable = true;
|
||||||
|
bantime-increment = {
|
||||||
|
enable = true;
|
||||||
|
factor = "4";
|
||||||
|
maxtime = "48h";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue