From c74e903b32f63941df2d467a1ccd7c2cbb41f63c Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Wed, 2 Jul 2025 18:43:53 +0000 Subject: [PATCH] wireguard: Add a custom routing tables 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 ce2ee1f81..581a36a69 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)