[PATCH v2] fff-babeld: Add rule to lookup in fff table for everything except wireguard

Christian Dresel freifunk at dresel.systems
Di Dez 8 12:57:22 CET 2020


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

We have the rule with 5000 and 5001 so that wireguard does not use the fff
table and build the VPN only over the main table.

Signed-off-by: Christian Dresel <freifunk at dresel.systems>

---

Changes in v2:
- set correct E-Mail address
---
 .../fff/fff-babeld/files/etc/uci-defaults/02-network-rules   | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/packages/fff/fff-babeld/files/etc/uci-defaults/02-network-rules b/src/packages/fff/fff-babeld/files/etc/uci-defaults/02-network-rules
index df78e16..589632b 100644
--- a/src/packages/fff/fff-babeld/files/etc/uci-defaults/02-network-rules
+++ b/src/packages/fff/fff-babeld/files/etc/uci-defaults/02-network-rules
@@ -37,6 +37,11 @@ uci batch <<EOF
   set network. at rule6[2].in='mesh'
   set network. at rule6[2].lookup='10'
   set network. at rule6[2].priority='31'
+  add network rule6
+  set network. at rule6[3]=rule6
+  set network. at rule6[3].src='::/0'
+  set network. at rule6[3].lookup='10'
+  set network. at rule6[3].priority='32000'
 EOF
 
 uci commit network
-- 
2.28.0



Mehr Informationen über die Mailingliste franken-dev