summary refs log tree commit diff
path: root/modules/tunnel
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-05-01 23:40:20 +0200
committerMel <mel@rnrd.eu>2026-05-01 23:40:20 +0200
commit9bce2a2c2d2a314101e6f2a1919b7de7e46bcf73 (patch)
treece04bed2b3429286b2945f591c4b6751249858b7 /modules/tunnel
parentbe79e9e92b092fc50620084d6532e6de535e6329 (diff)
downloadnetwork-9bce2a2c2d2a314101e6f2a1919b7de7e46bcf73.tar.zst
network-9bce2a2c2d2a314101e6f2a1919b7de7e46bcf73.zip
Use egress destination domains in ingress instead of their names
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules/tunnel')
-rw-r--r--modules/tunnel/definition.nix2
-rw-r--r--modules/tunnel/ingress.nix4
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;