diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2019-04-13 01:29:23 +0200 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2019-04-13 01:29:23 +0200 |
commit | 43ed9c0c883f2532c30b309dd9a6a8316199909b (patch) | |
tree | 4bff6aedaa8b72ab9a270ca7960ad1f247c4d526 /roles/configure_iptables/templates/iptables.rules | |
parent | 2befca5ea47dd361d0db44efb0a6d8ce3b011fd7 (diff) |
nat64
Diffstat (limited to 'roles/configure_iptables/templates/iptables.rules')
-rw-r--r-- | roles/configure_iptables/templates/iptables.rules | 7 |
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 |