refactor: Simplify allowedTCPPorts configuration
- Replace allowedTCPPortRanges with allowedTCPPorts for SSH
This commit is contained in:
parent
73310e1017
commit
4d550fbfcb
1 changed files with 3 additions and 5 deletions
|
@ -208,11 +208,9 @@ in
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns'';
|
extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns'';
|
||||||
allowedTCPPortRanges = [
|
allowedTCPPorts = [
|
||||||
{
|
22
|
||||||
from = 22;
|
# 54817
|
||||||
to = 22;
|
|
||||||
} # ssh
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue