|
|
|
@ -19,9 +19,15 @@
|
|
|
|
|
{% for peer in groups['fastd'] %}
|
|
|
|
|
-A PREROUTING -i bb{{ hostvars[peer]['wireguard_bb_name'] }} -j MARK --set-xmark 0x1/0xffffffff
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% for peer in groups['nat64'] %}
|
|
|
|
|
-A PREROUTING -i bb{{ hostvars[peer]['wireguard_bb_name'] }} -j MARK --set-xmark 0x1/0xffffffff
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% for peer in groups['uplink'] | difference([inventory_hostname]) %}
|
|
|
|
|
-A PREROUTING -i bb{{ hostvars[peer]['wireguard_bb_name'] }} -j MARK --set-xmark 0x1/0xffffffff
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% for peer in wireguard_bb_peers %}
|
|
|
|
|
-A PREROUTING -i bb{{ peer.name }} -j MARK --set-xmark 0x1/0xffffffff
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% if 'nat64' in group_names %}
|
|
|
|
|
{% for peer in groups['uplink'] %}
|
|
|
|
|