From 9bce2a2c2d2a314101e6f2a1919b7de7e46bcf73 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 1 May 2026 23:40:20 +0200 Subject: Use egress destination domains in ingress instead of their names Signed-off-by: Mel --- modules/tunnel/definition.nix | 2 ++ modules/tunnel/ingress.nix | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/tunnel') diff --git a/modules/tunnel/definition.nix b/modules/tunnel/definition.nix index 82534bf..8e334e8 100644 --- a/modules/tunnel/definition.nix +++ b/modules/tunnel/definition.nix @@ -13,6 +13,7 @@ { port = 50501; egress = "taupe"; + destination = "finland"; info = { uuid = "328c90a0-20ae-4d4c-9e54-97e9ab41c053"; @@ -25,6 +26,7 @@ { port = 50502; egress = "taureau"; + destination = "usa"; info = { uuid = "826b8598-ed75-4782-9b7e-27e0e16e1141"; diff --git a/modules/tunnel/ingress.nix b/modules/tunnel/ingress.nix index f609f3d..a62e931 100644 --- a/modules/tunnel/ingress.nix +++ b/modules/tunnel/ingress.nix @@ -27,7 +27,7 @@ let egressName = "tunnel-egress0"; egressAddress = "10.123.255.1/16"; # /16 encompasses all possible subnet addresses - egressHost = name: "${name}.rnrd.eu"; + egressHost = destination: "${destination}.tunnel.rnrd.eu"; # e.g. "finland.tunnel.rnrd.eu" mtu = 1400; in @@ -161,7 +161,7 @@ in type = "vless"; flow = "xtls-rprx-vision"; - server = egressHost path.egress; + server = egressHost path.destination; server_port = 443; tag = outboundName path.egress; -- cgit 1.4.1