Adjust fail2ban settings

This commit is contained in:
Vili Sinervä 2025-01-21 00:11:20 +02:00
parent bbf75cccba
commit 352c0bf79b
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -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 = {