From fd5f1c7e2345260db72105c16c6db8d57ce7b222 Mon Sep 17 00:00:00 2001 From: goligo Date: Mon, 12 Sep 2022 13:47:59 +0200 Subject: [PATCH] Add mesh-vpn to BATMAN, as Gluon does not do it anymore Gluon v2022.1 has been refactored in a way, that a mesh-vpn interface is no longer in the network configuration and no longer added to BATMAN automatically, so we now add it explicitly in our script. --- .../files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink b/ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink index 7190bd0a..6e4e2b4d 100755 --- a/ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink +++ b/ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink @@ -116,6 +116,9 @@ if [ "$(uci get wireguard.mesh_vpn.enabled)" == "true" ] || [ "$(uci get wiregua # Bring up VXLAN ip link add mesh-vpn type vxlan id "$(lua -e 'print(tonumber(require("gluon.util").domain_seed_bytes("gluon-mesh-vpn-vxlan", 3), 16))')" local $(interface_linklocal "$MESH_VPN_IFACE") remote $(uci get wireguard.peer_$PEER.link_address) dstport 8472 dev $MESH_VPN_IFACE ip link set up dev mesh-vpn + + # Add VXLAN inteface to BATMAN + batctl if add mesh-vpn sleep 5 # If we have a BATMAN_V env we need to correct the throughput value now