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/install_babeld/templates/babeld.conf.j2 | |
parent | 2befca5ea47dd361d0db44efb0a6d8ce3b011fd7 (diff) |
nat64
Diffstat (limited to 'roles/install_babeld/templates/babeld.conf.j2')
-rw-r--r-- | roles/install_babeld/templates/babeld.conf.j2 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/install_babeld/templates/babeld.conf.j2 b/roles/install_babeld/templates/babeld.conf.j2 index 98b3acd..3ef7e53 100644 --- a/roles/install_babeld/templates/babeld.conf.j2 +++ b/roles/install_babeld/templates/babeld.conf.j2 @@ -5,7 +5,7 @@ ipv6-subtrees true # You must provide at least one interface for babeld to operate on. -{% if 'fastd' in group_names %} +{% if ('fastd' in group_names) or ('nat64' in group_names) %} {% for peer in groups['uplink'] %} interface bb{{ hostvars[peer]['wireguard_bb_name'] }} {% endfor %} @@ -14,6 +14,9 @@ interface bb{{ hostvars[peer]['wireguard_bb_name'] }} {% for peer in groups['fastd'] %} interface bb{{ hostvars[peer]['wireguard_bb_name'] }} {% endfor %} +{% for peer in groups['nat64'] %} +interface bb{{ hostvars[peer]['wireguard_bb_name'] }} +{% endfor %} {% for peer in groups['uplink'] | difference([inventory_hostname]) %} interface bb{{ hostvars[peer]['wireguard_bb_name'] }} {% endfor %} @@ -62,7 +65,7 @@ redistribute ip 64:ff9b::/96 allow redistribute ip fd62:44e1:da::/48 allow redistribute local deny -{% if 'fastd' in group_names and preferred_uplink is defined %} +{% if ('fastd' in group_names or 'nat64' in group_names) and preferred_uplink is defined %} {% for peer in groups['uplink'] %} {% if not hostvars[peer]['wireguard_bb_name'] == preferred_uplink %} in if bb{{ hostvars[peer]['wireguard_bb_name'] }} metric 64 |