summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2024-04-10 07:13:41 -0400
committerKjetil Orbekk <kj@orbekk.com>2024-04-10 07:13:41 -0400
commit598b098d51c2df9c1252a5255f3d723a6e28bc0d (patch)
tree4b179fd7e80d7deae85a4b205e2eb2c0bec7224d
parente2fa8c2bf2037ba5319628d496075bd826c43e78 (diff)
Update routes for HE subnet
-rw-r--r--modules/router.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/router.nix b/modules/router.nix
index c2c7719..35274eb 100644
--- a/modules/router.nix
+++ b/modules/router.nix
@@ -147,7 +147,8 @@ let
wantedBy = [ "multi-user.target" ];
path = [ pkgs.iproute ];
script = ''
- ip -6 rule add fwmark ${toString heMark} table he || true
+ ip -6 rule add fwmark ${toString heMark} table main priority 19000 suppress_prefixlength 0 || true
+ ip -6 rule add fwmark ${toString heMark} table he priority 20000 || true
# ip -6 route replace default dev he0 table he
# ip -6 route replace default dev he0 metric 1
@@ -249,7 +250,7 @@ let
${toString mullvadPort}, 25565
}
define SERVER_LAN_PORTS = {
- tftp, ssh,
+ tftp,
1080, # socks
139, 445, 137, 138, wsdapi, ws-discovery, # samba
}