modify nodes and bundles for new nftables syntax
This commit is contained in:
parent
ecb67d012b
commit
d569b00960
30 changed files with 172 additions and 126 deletions
|
@ -50,11 +50,11 @@ if node.has_bundle('telegraf'):
|
|||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'iptables/port_rules',
|
||||
'firewall/port_rules',
|
||||
)
|
||||
def iptables(metadata):
|
||||
def firewall(metadata):
|
||||
return {
|
||||
'iptables': {
|
||||
'firewall': {
|
||||
'port_rules': {
|
||||
str(metadata.get('transmission/config/peer-port')): atomic({'*'}),
|
||||
str(metadata.get('transmission/config/peer-port')) + '/udp': atomic({'*'}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue