From 38f10ee48b8d381e0a265bc3e453bc0fb72c3052 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 28 Oct 2023 03:22:37 -0500 Subject: [PATCH] refactor(luna): make fail2ban only monitor default ssh port --- hosts/luna/modules/services/fail2ban.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/luna/modules/services/fail2ban.nix b/hosts/luna/modules/services/fail2ban.nix index a6179a0..b53d1a5 100644 --- a/hosts/luna/modules/services/fail2ban.nix +++ b/hosts/luna/modules/services/fail2ban.nix @@ -2,6 +2,9 @@ { services.fail2ban = { enable = true; - maxretry = 5; + maxretry = 10; + jails.DEFAULT.settings = { + port = "2200"; + }; }; }