From bb5ae6d2f760b30c91a41d662558681233b2ca45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 26 Jul 2023 14:17:14 +0300 Subject: [PATCH] sshguard: whitelist all known public ips --- modules/base/sshguard/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/base/sshguard/default.nix b/modules/base/sshguard/default.nix index 6b5df28..19d7cd6 100644 --- a/modules/base/sshguard/default.nix +++ b/modules/base/sshguard/default.nix @@ -18,8 +18,7 @@ whitelist = [ "192.168.0.0/16" myData.tailscale_subnet.cidr - myData.hosts."vno1-oh2.servers.jakst".publicIP - ]; + ] ++ (lib.catAttrs "publicIP" (lib.attrValues myData.hosts)); }; }; }