summaryrefslogtreecommitdiff
path: root/config/router.nix
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2021-03-11 08:39:30 -0500
committerKjetil Orbekk <kj@orbekk.com>2021-03-11 08:39:57 -0500
commit6483d5e380a57bbde2e629735b4461b64fab3cfc (patch)
tree255013bf578fd3ee6db4e5262b95ac8f865f1b8d /config/router.nix
parentcc5b84497b14558493cbf9a9269819153daddbf8 (diff)
fix mullvad config
Diffstat (limited to 'config/router.nix')
-rw-r--r--config/router.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/router.nix b/config/router.nix
index 87bda38..c91fe71 100644
--- a/config/router.nix
+++ b/config/router.nix
@@ -209,7 +209,9 @@ in
ip -6 route flush cache
ip -6 route replace default dev he0 src 2001:470:8e2e:20::d table he
ip -6 route flush cache
+ '';
+ networking.wireguard.interfaces.mullvad.postSetup = ''
ip route flush cache
ip rule add fwmark ${toString mullvadMark} table mullvad
ip route replace default dev mullvad table mullvad