From 4d550fbfcb1cb0d3c0837f7a3a5437bc0ff95cc8 Mon Sep 17 00:00:00 2001 From: Tristan Druyen Date: Sun, 17 Nov 2024 21:40:33 +0100 Subject: [PATCH] refactor: Simplify allowedTCPPorts configuration - Replace allowedTCPPortRanges with allowedTCPPorts for SSH --- os-mods/common/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/os-mods/common/default.nix b/os-mods/common/default.nix index 84850e3..effc26a 100644 --- a/os-mods/common/default.nix +++ b/os-mods/common/default.nix @@ -208,11 +208,9 @@ in networking.firewall = { extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns''; - allowedTCPPortRanges = [ - { - from = 22; - to = 22; - } # ssh + allowedTCPPorts = [ + 22 + # 54817 ]; };