modules/fail2ban: global dynamic bantime

This commit is contained in:
Max Headroom 2022-05-17 10:40:35 +02:00
parent e28e0266a3
commit b012ca1964
2 changed files with 3 additions and 1 deletions

View file

@ -93,6 +93,5 @@ in
services.fail2ban.jails.postfix = '' services.fail2ban.jails.postfix = ''
enabled = true enabled = true
mode = aggressive mode = aggressive
bantime.increment = true
''; '';
} }

View file

@ -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;
};
}; };
} }