ansible-ffrgb/roles/mesh_wg/templates/mesh_wg.conf.j2
Markus Hauschild 1f0b671545 mesh_wg: new role for VXLAN over WG meshing
This is still work in progress, as such it is only enabled on the test
gateway.
2020-11-23 19:44:52 +01:00

19 lines
496 B
Django/Jinja

# {{ ansible_managed }}
# vx-{{ site_code }}
auto vx-{{ site_code }}
iface vx-{{ site_code }}
vxlan-id 3120917
vxlan-learning no
vxlan-local-tunnelip6 fe80::{{ gateway_id }}
vxlan-physdev wg-ffrgb_tst
post-up batctl -m bat-{{ site_code }} if add vx-{{ site_code }}
# wg-{{ site_code }}
auto wg-{{ site_code }}
iface wg-{{ site_code }}
address fe80::{{ gateway_id }}/128
ipv6-addrgen no
link-type wireguard
pre-up wg setconf wg-{{ site_code }} /etc/wireguard/wg-{{ site_code }}.conf