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