From ba826bd508d45444e08ecf021c0535ef3931cf07 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Sat, 15 Jun 2024 03:14:35 -0400 Subject: sshguard whitelist to prevent lockout --- hostnix/elmo/configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hostnix/elmo/configuration.nix') diff --git a/hostnix/elmo/configuration.nix b/hostnix/elmo/configuration.nix index 1ee4a16..d143dae 100644 --- a/hostnix/elmo/configuration.nix +++ b/hostnix/elmo/configuration.nix @@ -50,7 +50,11 @@ services.fstrim.enable = true; services.openssh.enable = true; - services.sshguard.enable = true; + + services.sshguard = { + enable = true; + whitelist = [ "192.168.0.0/24" ]; + }; services.locate = { enable = true; -- cgit v1.3.1