mesh_wg: adjust MTU to min values rather than max
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Markus 2020-12-02 23:39:15 +01:00
parent ebe2eac3a7
commit 19faa44f0c

View File

@ -8,7 +8,7 @@ iface vx-{{ site_code }}
#vxlan-physdev wg-ffrgb_tst #vxlan-physdev wg-ffrgb_tst
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 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 up ip link set vx-{{ site_code }} up
post-up ip link set vx-{{ site_code }} mtu 1532 post-up ip link set vx-{{ site_code }} mtu 1350
post-up batctl -m bat-{{ site_code }} if add vx-{{ site_code }} post-up batctl -m bat-{{ site_code }} if add vx-{{ site_code }}
down ip link set vx-{{ site_code }} down down ip link set vx-{{ site_code }} down
post-down ip -6 link del vx-{{ site_code }} post-down ip -6 link del vx-{{ site_code }}
@ -19,5 +19,5 @@ iface wg-{{ site_code }}
address fe80::{{ gateway_id }}/128 address fe80::{{ gateway_id }}/128
ipv6-addrgen no ipv6-addrgen no
link-type wireguard link-type wireguard
mtu 1610 mtu 1420
pre-up wg setconf wg-{{ site_code }} /etc/wireguard/wg-{{ site_code }}.conf pre-up wg setconf wg-{{ site_code }} /etc/wireguard/wg-{{ site_code }}.conf