diff --git a/bundles/netdata/metadata.py b/bundles/netdata/metadata.py index 01549e8..cd12370 100644 --- a/bundles/netdata/metadata.py +++ b/bundles/netdata/metadata.py @@ -23,10 +23,10 @@ def iptables(metadata): if len(interfaces): for iface in sorted(interfaces): - iptables.append(f'iptables -A INPUT -i {iface} -p tcp --dport 19999 -j ACCEPT') + iptables.append(f'iptables_both -A INPUT -i {iface} -p tcp --dport 19999 -j ACCEPT') else: - iptables.append('iptables -A INPUT -p tcp --dport 19999 -j ACCEPT') + iptables.append('iptables_both -A INPUT -p tcp --dport 19999 -j ACCEPT') return { 'iptables': { diff --git a/bundles/nginx/metadata.py b/bundles/nginx/metadata.py index 0185113..c711368 100644 --- a/bundles/nginx/metadata.py +++ b/bundles/nginx/metadata.py @@ -140,12 +140,12 @@ def iptables(metadata): if len(interfaces): for iface in sorted(interfaces): - iptables.append(f'iptables -A INPUT -i {iface} -p tcp --dport 80 -j ACCEPT') - iptables.append(f'iptables -A INPUT -i {iface} -p tcp --dport 443 -j ACCEPT') + iptables.append(f'iptables_both -A INPUT -i {iface} -p tcp --dport 80 -j ACCEPT') + iptables.append(f'iptables_both -A INPUT -i {iface} -p tcp --dport 443 -j ACCEPT') else: - iptables.append('iptables -A INPUT -p tcp --dport 80 -j ACCEPT') - iptables.append('iptables -A INPUT -p tcp --dport 443 -j ACCEPT') + iptables.append('iptables_both -A INPUT -p tcp --dport 80 -j ACCEPT') + iptables.append('iptables_both -A INPUT -p tcp --dport 443 -j ACCEPT') return { 'iptables': { diff --git a/bundles/unbound/metadata.py b/bundles/unbound/metadata.py index bea614d..f2fed5c 100644 --- a/bundles/unbound/metadata.py +++ b/bundles/unbound/metadata.py @@ -40,8 +40,8 @@ def iptables(metadata): iptables = [] for iface in sorted(interfaces): - iptables.append(f'iptables -A INPUT -i {iface} -p tcp --dport 53 -j ACCEPT') - iptables.append(f'iptables -A INPUT -i {iface} -p udp --dport 53 -j ACCEPT') + iptables.append(f'iptables_both -A INPUT -i {iface} -p tcp --dport 53 -j ACCEPT') + iptables.append(f'iptables_both -A INPUT -i {iface} -p udp --dport 53 -j ACCEPT') return { 'iptables': {