diff options
| -rw-r--r-- | modules/tunnel/definition.nix | 2 | ||||
| -rw-r--r-- | modules/tunnel/ingress.nix | 4 |
2 files changed, 4 insertions, 2 deletions
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; |
