fff-babeld: Add rule to lookup in fff table for everything except wireguard

With this patch the router answers in traceroute over the fff table with
Freifunk IPs and not with the WAN IP. All other connections use the fff
table too.

We already have the rules with 5000 and 5001 so that wireguard does not use
the fff table anyway and connect the VPN only via the main table.

Signed-off-by: Christian Dresel <freifunk@dresel.systems>
Acked-by: Fabian Bläse <fabian@blaese.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Christian Dresel 2020-12-08 12:57:22 +01:00 committed by Adrian Schmutzler
parent 31df0a3779
commit e5da228cb1
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=fff-babeld
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_BUILD_DIR:=$(BUILD_DIR)/fff-babeld

View File

@ -37,6 +37,11 @@ uci batch <<EOF
set network.@rule6[2].in='mesh'
set network.@rule6[2].lookup='10'
set network.@rule6[2].priority='31'
add network rule6
set network.@rule6[3]=rule6
set network.@rule6[3].src='::/0'
set network.@rule6[3].lookup='10'
set network.@rule6[3].priority='32000'
EOF
uci commit network