From 64ee9d06bb897bcb6c225fb9d4ef3b8c62ee853a Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 14 Jan 2022 19:22:11 +0100 Subject: [PATCH] yggdrasil: listen, add port forwarding on upstream4+upstream1 --- config/net/upstream.nix | 12 ++++++++++++ nix/nixos-module/container/yggdrasil.nix | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/config/net/upstream.nix b/config/net/upstream.nix index de9fd39..ae4ba94 100644 --- a/config/net/upstream.nix +++ b/config/net/upstream.nix @@ -85,6 +85,12 @@ in reflect = true; sourcePort = 30000; } + { + destination = config.site.net.core.hosts4.yggdrasil; + proto = "tcp"; + reflect = true; + sourcePort = 1; + } ]; interfaces = { core = { @@ -369,6 +375,12 @@ in reflect = true; sourcePort = 45000; } + { + destination = config.site.net.core.hosts4.yggdrasil; + proto = "tcp"; + reflect = true; + sourcePort = 1; + } ]; interfaces = { core = { diff --git a/nix/nixos-module/container/yggdrasil.nix b/nix/nixos-module/container/yggdrasil.nix index 80c83c6..576de97 100644 --- a/nix/nixos-module/container/yggdrasil.nix +++ b/nix/nixos-module/container/yggdrasil.nix @@ -44,6 +44,10 @@ in lib.mkIf cfg.enable { # poland "tls://[2001:41d0:601:1100::cf2]:11129" ]; + Listen = [ + "tcp://0.0.0.0:1" + "tcp://[::]:1" + ]; NodeInfo = { # This information is visible to the network. name = "y.c3d2.de";