From 457c79518d9bc882b9178b37dbb92ff5b2d14161 Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Tue, 24 Jun 2025 22:37:17 -0700 Subject: [PATCH] wireguard: add a custom routing table for peers commit 43867c1e070fc96420a666b0bb21182eff16787b Author: Michael Tremer Date: Sun Apr 27 18:30:59 2025 +0200 wireguard: Add a custom routing table for peers This is a dirty hack to make connections to VPN providers actually work. We mark all WG packets after encryption and use a secondary routing table to look up any routes to the peers. That way, we can replace the default route in the main routing table without having to care about the special routes there. Signed-off-by: Michael Tremer Signed-off-by: Vincent Li --- lfs/iproute2 | 1 + 1 file changed, 1 insertion(+) diff --git a/lfs/iproute2 b/lfs/iproute2 index 5d66de568..792a7670e 100644 --- a/lfs/iproute2 +++ b/lfs/iproute2 @@ -78,6 +78,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) # Add table for static routing echo "200 static" >> /etc/iproute2/rt_tables + echo "201 wg" >> /etc/iproute2/rt_tables @rm -rf $(DIR_APP) @$(POSTBUILD)