commit | 2b0723b20a5a6ccf493efdd5656b40c3c60ae0ad | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Tue Jun 06 23:47:00 2023 +0200 |
committer | Skyler Grey <skyler3665@gmail.com> | Tue Jun 06 23:47:00 2023 +0200 |
tree | b9937da6ba3e1d41eac5636b66303b52b568de7a | |
parent | 5b2c03820436e9330bb4684c0af85fe72be8675d [diff] |
Add stricter fail2ban bantimes
diff --git a/modules/fail2ban.nix b/modules/fail2ban.nix index 2a22159..5368094 100644 --- a/modules/fail2ban.nix +++ b/modules/fail2ban.nix
@@ -29,6 +29,13 @@ }; banaction-allports = "iptables-allports"; banaction = config.services.fail2ban.banaction-allports; + bantime = "24h"; + bantime-increment = { + enable = true; + rndtime = "1h"; + overalljails = true; + factor = "24"; + }; }; environment.etc = { "fail2ban/filter.d/mailu-auth-fail.conf".text = ''