about summary refs log tree commit diff
path: root/machines/srv1/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/srv1/configuration.nix')
-rw-r--r--machines/srv1/configuration.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix
index 79c1218..13f7f49 100644
--- a/machines/srv1/configuration.nix
+++ b/machines/srv1/configuration.nix
@@ -99,7 +99,13 @@ in
 
   services.openssh.enable = true;
   services.openssh.passwordAuthentication = false;
-  services.sshguard.enable = true;
+  services.sshguard = {
+    enable = true;
+    whitelist = [
+      "192.168.0.0/18"
+      "201:da2c:2873:5ee3:cc87:79ce:5a12:fff9"
+    ];
+  };
 
   services.nginx.enable = true;
   services.nginx.package = (pkgs.nginx.override { modules = [ ModSecurity-nginx ]; });