modules/fail2ban: global dynamic bantime
This commit is contained in:
parent
e28e0266a3
commit
b012ca1964
2 changed files with 3 additions and 1 deletions
|
@ -93,6 +93,5 @@ in
|
||||||
services.fail2ban.jails.postfix = ''
|
services.fail2ban.jails.postfix = ''
|
||||||
enabled = true
|
enabled = true
|
||||||
mode = aggressive
|
mode = aggressive
|
||||||
bantime.increment = true
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,5 +12,8 @@
|
||||||
"10.0.0.0/8"
|
"10.0.0.0/8"
|
||||||
hosts.${config.networking.hostName}.interfaces.primary.addr
|
hosts.${config.networking.hostName}.interfaces.primary.addr
|
||||||
];
|
];
|
||||||
|
bantime-increment = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue