diff options
| -rw-r--r-- | sys/auth/openssh.nix | 9 | ||||
| -rw-r--r-- | sys/net/fail2ban.nix | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/auth/openssh.nix b/sys/auth/openssh.nix index 161fe6f..248ccc7 100644 --- a/sys/auth/openssh.nix +++ b/sys/auth/openssh.nix @@ -26,8 +26,8 @@ in type = with types; nullOr (submodule { options = { - address = mkOption { - type = str; + addresses = mkOption { + type = listOf str; }; interface = mkOption { @@ -103,9 +103,8 @@ in PasswordAuthentication = withOath; # Necesario para oath, no reemplaza a oath }; - listenAddresses = mkIf (cfg.restrictListen != null) (singleton { - addr = cfg.restrictListen.address; - }); + listenAddresses = mkIf (cfg.restrictListen != null) + (map (addr: { inherit addr; }) cfg.restrictListen.addresses); }; users.users = { diff --git a/sys/net/fail2ban.nix b/sys/net/fail2ban.nix index 459fd4e..be79de5 100644 --- a/sys/net/fail2ban.nix +++ b/sys/net/fail2ban.nix @@ -24,7 +24,9 @@ in #TODO: No quemar ignoreIP = [ "10.34.0.0/16" + "fd34:2::/64" "37.205.12.147" + "2a03:3b40:fe:3ec::1" ]; }; }; |
