2020-11-23 19:44:52 +01:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
# vx-{{ site_code }}
|
|
|
|
auto vx-{{ site_code }}
|
|
|
|
iface vx-{{ site_code }}
|
2021-09-27 18:14:18 +02:00
|
|
|
mtu 1350
|
2021-07-23 16:32:46 +02:00
|
|
|
vxlan-physdev wg-{{ site_code }}
|
2020-11-25 18:28:22 +01:00
|
|
|
pre-up ip -6 link add vx-{{ site_code }} type vxlan id {{ vx_wg_vni }} local fe80::{{ gateway_id }} dev wg-{{ site_code }} noudpcsum dstport 8472
|
|
|
|
up ip link set vx-{{ site_code }} up
|
2021-09-27 18:14:18 +02:00
|
|
|
post-up batctl meshif bat-{{ site_code }} if add vx-{{ site_code }}
|
2020-11-25 18:28:22 +01:00
|
|
|
down ip link set vx-{{ site_code }} down
|
|
|
|
post-down ip -6 link del vx-{{ site_code }}
|
2020-11-23 19:44:52 +01:00
|
|
|
|
|
|
|
# wg-{{ site_code }}
|
|
|
|
auto wg-{{ site_code }}
|
|
|
|
iface wg-{{ site_code }}
|
|
|
|
address fe80::{{ gateway_id }}/128
|
|
|
|
ipv6-addrgen no
|
2021-07-23 16:32:46 +02:00
|
|
|
pre-up ip link add dev wg-{{ site_code }} type wireguard
|
2020-11-23 19:44:52 +01:00
|
|
|
pre-up wg setconf wg-{{ site_code }} /etc/wireguard/wg-{{ site_code }}.conf
|
2021-07-23 16:32:46 +02:00
|
|
|
post-up ip link set wg-{{ site_code }} mtu 1420
|