rework firewall setup
This commit is contained in:
parent
be62c1270f
commit
cd48cf495d
30 changed files with 145 additions and 122 deletions
|
@ -33,8 +33,8 @@ def firewall(metadata):
|
|||
ips.add(share_target)
|
||||
|
||||
rules = {}
|
||||
for port in ('111', '2049', '1110', '4045', '35295'): # TODO find out if we need more ports
|
||||
for proto in ('', '/udp'):
|
||||
for port in ('111', '2049', '1110', '4045', '35295'):
|
||||
for proto in ('/tcp', '/udp'):
|
||||
rules[port + proto] = atomic(ips)
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue