summaryrefslogtreecommitdiff
path: root/roles/configure_iptables/templates/iptables.rules
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2019-04-13 01:29:23 +0200
committerNiklas Yann Wettengel <niyawe@niyawe.de>2019-04-13 01:29:23 +0200
commit43ed9c0c883f2532c30b309dd9a6a8316199909b (patch)
tree4bff6aedaa8b72ab9a270ca7960ad1f247c4d526 /roles/configure_iptables/templates/iptables.rules
parent2befca5ea47dd361d0db44efb0a6d8ce3b011fd7 (diff)
nat64
Diffstat (limited to 'roles/configure_iptables/templates/iptables.rules')
-rw-r--r--roles/configure_iptables/templates/iptables.rules7
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/configure_iptables/templates/iptables.rules b/roles/configure_iptables/templates/iptables.rules
index f76fa56..3f0c6a1 100644
--- a/roles/configure_iptables/templates/iptables.rules
+++ b/roles/configure_iptables/templates/iptables.rules
@@ -23,6 +23,11 @@
-A PREROUTING -i bb{{ hostvars[peer]['wireguard_bb_name'] }} -j MARK --set-xmark 0x1/0xffffffff
{% endfor %}
{% endif %}
+{% if 'nat64' in group_names %}
+{% for peer in groups['uplink'] %}
+-A PREROUTING -i bb{{ hostvars[peer]['wireguard_bb_name'] }} -j MARK --set-xmark 0x1/0xffffffff
+{% endfor %}
+{% endif %}
COMMIT
*filter
:INPUT DROP [0:0]
@@ -34,8 +39,6 @@ COMMIT
# SSH-Server
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-# nginx
--A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
# iperf3
-A INPUT -p tcp -m tcp -s 10.222.0.0/16 --dport 5201 -j ACCEPT