refactor: Simplify allowedTCPPorts configuration

- Replace allowedTCPPortRanges with allowedTCPPorts for SSH
This commit is contained in:
Tristan D. 2024-11-17 21:40:33 +01:00
parent 73310e1017
commit 4d550fbfcb
Signed by: tristan
SSH key fingerprint: SHA256:9oFM1J63hYWJjCnLG6C0fxBS15rwNcWwdQNMOHYKJ/4

View file

@ -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
];
};