From 24727ea5f0bbcf89275e0db1b96469e428d4bd73 Mon Sep 17 00:00:00 2001 From: chn Date: Tue, 21 Nov 2023 20:52:46 +0800 Subject: [PATCH] services.fail2ban: add ignoreIP --- modules/services/fail2ban.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/services/fail2ban.nix b/modules/services/fail2ban.nix index 66350bd3..e04ae9fa 100644 --- a/modules/services/fail2ban.nix +++ b/modules/services/fail2ban.nix @@ -10,6 +10,10 @@ inputs: inherit (inputs.lib) mkIf; in mkIf fail2ban.enable { - services.fail2ban.enable = true; + services.fail2ban = + { + enable = true; + ignoreIP = [ "127.0.0.0/8" "192.168.0.0/16" "vps6.chn.moe" ]; + }; }; }