From f4b4dbb7a0e14b9505a68418db26230d6915f2a0 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 5 Mar 2021 00:43:49 +0100 Subject: [PATCH] freifunk: add yggdrasil port-forwarding --- hosts/containers/freifunk/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/containers/freifunk/default.nix b/hosts/containers/freifunk/default.nix index 6a6ce16c..e84bd58d 100644 --- a/hosts/containers/freifunk/default.nix +++ b/hosts/containers/freifunk/default.nix @@ -1,5 +1,5 @@ { secrets }: -{ config, pkgs, lib, modulesPath, ... }: +{ config, pkgs, lib, modulesPath, hostRegistry, ... }: let coreAddress = "172.20.72.40"; @@ -47,6 +47,13 @@ in { \! --source 10.200.0.0/15 -o ${meshInterface} -j SNAT --to 10.200.${ddmeshAddrPart} set -e ''; + + forwardPorts = [ { + # Yggdrasil + destination = "${hostRegistry.hosts.yggdrasil.ip4}:46823"; + proto = "tcp"; + sourcePort = 46823; + } ]; }; # Configure rt_table name networking.iproute2 = {