From abc2a0579cdb1a0fe6a00a8bbdeea7af7a0cc771 Mon Sep 17 00:00:00 2001 From: blake Date: Wed, 8 Oct 2025 16:48:26 -0500 Subject: [PATCH] 101 current 2025-10-08 16:41:36 25.05.20251006.20c4598 6.12.50 * --- flake.nix | 2 +- modules/system/vpns.nix | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 42dd779..47ae886 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ # flake for blakes nixos config # define new devices in outputs -# generation: 100 current 2025-10-08 16:24:55 25.05.20251006.20c4598 6.12.50 * +# generation: 101 current 2025-10-08 16:41:36 25.05.20251006.20c4598 6.12.50 * { description = "blakes nix config"; inputs = { diff --git a/modules/system/vpns.nix b/modules/system/vpns.nix index 9ed5cc8..d85e119 100644 --- a/modules/system/vpns.nix +++ b/modules/system/vpns.nix @@ -37,6 +37,7 @@ in networking.wg-quick.interfaces = lib.mkIf cfg.wg_mex { wg_mex = { # client settings + table = 51820; privateKeyFile = config.sops.secrets."wg_mex_key".path; address = [ "10.74.252.231/32" "fc00:bbbb:bbbb:bb01::b:fce6/128" ]; dns = [ "10.64.0.1" ]; @@ -47,17 +48,17 @@ in endpoint = "149.88.22.129:51820"; persistentKeepalive = 25; } ]; - 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 - - ''; +# 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 +# +# ''; }; };