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 = {
|
||||
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
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue