From 42db2923764359d0b3838a3cf6403a371510bee6 Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 25 Jun 2023 11:09:18 -0400 Subject: [PATCH] security: increase f2b sec --- modules/security.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/security.nix b/modules/security.nix index 1f40cf8..41ab20d 100644 --- a/modules/security.nix +++ b/modules/security.nix @@ -49,13 +49,17 @@ }; services.fail2ban = { enable = true; - maxretry = 3; - bantime = "10m"; ignoreIP = [ "192.168.0.0/16" "172.16.0.0/12" "10.0.0.0/8" "5.161.181.184" ]; + extraSettings = { + findtime = 100000; + bantime = 100000; + maxretry = 1; + mode = "aggressive"; + }; }; }