From b012ca1964ebab620d36f19b56d7a191cf80f5b0 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 17 May 2022 10:40:35 +0200 Subject: [PATCH] modules/fail2ban: global dynamic bantime --- hosts/VEGAS/services/mail/postfix.nix | 1 - modules/fail2ban/default.nix | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hosts/VEGAS/services/mail/postfix.nix b/hosts/VEGAS/services/mail/postfix.nix index 8d8bf3f..72b749e 100644 --- a/hosts/VEGAS/services/mail/postfix.nix +++ b/hosts/VEGAS/services/mail/postfix.nix @@ -93,6 +93,5 @@ in services.fail2ban.jails.postfix = '' enabled = true mode = aggressive - bantime.increment = true ''; } diff --git a/modules/fail2ban/default.nix b/modules/fail2ban/default.nix index 54d9b01..03f995f 100644 --- a/modules/fail2ban/default.nix +++ b/modules/fail2ban/default.nix @@ -12,5 +12,8 @@ "10.0.0.0/8" hosts.${config.networking.hostName}.interfaces.primary.addr ]; + bantime-increment = { + enable = true; + }; }; }