bundles/powerdns: add iptables config

This commit is contained in:
Franzi 2021-03-21 11:12:18 +01:00
parent 31ddea7649
commit 850d860d59
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -165,3 +165,17 @@ def hosts_entries_for_all_dns_servers(metadata):
'entries': entries,
},
}
@metadata_reactor.provides(
'iptables/port_rules',
)
def iptables(metadata):
return {
'iptables': {
'port_rules': {
'53': atomic(metadata.get('powerdns/restrict-to', set('*'))),
'53/udp': atomic(metadata.get('powerdns/restrict-to', set('*'))),
},
},
}