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 = {
|
services.fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bantime = "1h";
|
maxretry = 10;
|
||||||
|
bantime = "10m";
|
||||||
bantime-increment = {
|
bantime-increment = {
|
||||||
enable = true;
|
enable = true;
|
||||||
factor = "2";
|
maxtime = "1d";
|
||||||
formula = "ban.Time * (1 << (min(ban.Count, 6) * banFactor))";
|
|
||||||
maxtime = "90d";
|
|
||||||
};
|
};
|
||||||
jails = {
|
jails = {
|
||||||
DEFAULT.settings = {
|
DEFAULT.settings = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue