commit 0e6b24b6ce526939a4d72c8468712d6045f55916
parent 0b10b873c38b614440ab9dabe102b05ea4858a50
Author: MTRNord <mtrnord1@gmail.com>
Date: Wed, 4 Oct 2023 15:46:23 +0200
Fix firewall
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix
@@ -273,6 +273,8 @@
];
allowedUDPPorts = [
5060 # SIP
+ 51820
+ 51821
config.services.tailscale.port
];
diff --git a/nixos/worker-2/configuration.nix b/nixos/worker-2/configuration.nix
@@ -240,6 +240,10 @@
9962
9100
];
+ allowedUDPPorts = [
+ 51820
+ 51821
+ ];
extraCommands =
builtins.concatStringsSep "\n" (builtins.map (ip: "iptables -A INPUT -s ${ip} -j DROP") blockedV4) + "\n"