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
|
@ -10,8 +10,8 @@ server:
|
|||
|
||||
num-threads: ${threads}
|
||||
|
||||
% if node.has_bundle('iptables') and not node.has_bundle('vmhost'):
|
||||
# Use iptables to manage access to this service
|
||||
% if node.has_bundle('nftables') and not node.has_bundle('vmhost'):
|
||||
# Use nftables to manage access to this service
|
||||
interface: 0.0.0.0
|
||||
interface: ::0
|
||||
access-control: 0.0.0.0/0 allow
|
||||
|
|
|
@ -56,11 +56,11 @@ def cpu_cores_to_config_values(metadata):
|
|||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'iptables/port_rules',
|
||||
'firewall/port_rules',
|
||||
)
|
||||
def iptables(metadata):
|
||||
def firewall(metadata):
|
||||
return {
|
||||
'iptables': {
|
||||
'firewall': {
|
||||
'port_rules': {
|
||||
'53': atomic(metadata.get('unbound/restrict-to', set())),
|
||||
'53/udp': atomic(metadata.get('unbound/restrict-to', set())),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue