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 <rlanghammer@web.de>
This commit is contained in:
parent
37c7332555
commit
6796a4a2c9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue