sorted ports
This commit is contained in:
parent
e8f878884d
commit
43aadda73f
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ def firewall(metadata):
|
||||||
return {
|
return {
|
||||||
'nftables': {
|
'nftables': {
|
||||||
'input': {
|
'input': {
|
||||||
f"tcp dport {{ {', '.join(ports)} }} accept",
|
f"tcp dport {{ {', '.join(sorted(ports))} }} accept",
|
||||||
f"udp dport {{ {', '.join(ports)} }} accept",
|
f"udp dport {{ {', '.join(sorted(ports))} }} accept",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue