From 299a8fc43537c2edb898ce93d25d359c88d3ee12 Mon Sep 17 00:00:00 2001 From: blake Date: Wed, 8 Oct 2025 16:41:38 -0500 Subject: [PATCH] 100 current 2025-10-08 16:24:55 25.05.20251006.20c4598 6.12.50 * --- modules/system/vpns.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/system/vpns.nix b/modules/system/vpns.nix index 2400bf0..9ed5cc8 100644 --- a/modules/system/vpns.nix +++ b/modules/system/vpns.nix @@ -47,10 +47,17 @@ in endpoint = "149.88.22.129:51820"; persistentKeepalive = 25; } ]; - #postSetup = '' - # # Remove default route that wg might add - # ip route del default dev wg-mullvad 2>/dev/null || true - #''; + postUp = '' + ip rule add fwmark 0xca6c table 51820 + ip route add default dev wg_mex table 51820 + ip route add 10.10.0.0/24 dev enp89s0 table 51820 + ''; + + postDown = '' + ip rule delete fwmark 0xca6c table 51820 + ip route flush table 51820 + + ''; }; };