Skip to content

Commit

Permalink
Add mesh-vpn to BATMAN, as Gluon does not do it anymore
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
goligo authored Sep 12, 2022
1 parent 29d058c commit fd5f1c7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd5f1c7

Please sign in to comment.