From cdd358e2cb7c4271b318d90f0afc7cbbb5af71bf Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 26 Aug 2022 00:01:10 +0200 Subject: [PATCH] leon: add backwards route for port forwarding --- hosts/leon/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/leon/default.nix b/hosts/leon/default.nix index ec3669bc..0af50a6f 100644 --- a/hosts/leon/default.nix +++ b/hosts/leon/default.nix @@ -58,6 +58,12 @@ in Destination = "172.20.0.0/14"; Gateway = config.c3d2.hosts.serv-gw.ip4; }; + } { + # for port forwardings + routeConfig = { + Destination = "${zentralwerk.lib.config.site.hosts.upstream4.interfaces.up4-pppoe.upstream.staticIpv4Address}/32"; + Gateway = config.c3d2.hosts.serv-gw.ip4; + }; } ]; };