From 6796a4a2c9d8b5db580d0b80e465f2621e7b1db7 Mon Sep 17 00:00:00 2001 From: Robert Langhammer Date: Sat, 4 Dec 2021 11:45:59 +0100 Subject: [PATCH] fff-fastd: Add batman hardif hop_penalty Openwrt v21.02.0 contains a new Batman Adv that now offers hop_penalty per hardif. We can use this to prefer one tunnel for outgoing traffic if there are several VPNs. Eg. fastd and vxlan. This Patch sets the hop_penalty for the fastd tunnel to 30. Signed-off-by: Robert Langhammer --- src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd b/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd index dc2e3459..c30d2187 100644 --- a/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd +++ b/src/packages/fff/fff-fastd/files/etc/uci-defaults/55_fff-fastd @@ -29,6 +29,7 @@ ln -s /tmp/fastd_fff_peers /etc/fastd/fff/peers echo "#!/bin/sh" > /etc/fastd/fff/up.sh echo "ip link set up dev fffVPN" >> /etc/fastd/fff/up.sh echo "batctl if add fffVPN" >> /etc/fastd/fff/up.sh +echo "batctl hardif fffVPN hop_penalty 30" >> /etc/fastd/fff/up.sh chmod +x /etc/fastd/fff/up.sh exit 0