From 2994c00459979ec6cbc0638563c68a0e6363ce1b Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 1 Nov 2022 01:40:37 +0100 Subject: [PATCH] upstream4: use staticIpv4Address in ospf.stubNets4 --- config/net/upstream.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config/net/upstream.nix b/config/net/upstream.nix index 0a64d1b..b31d825 100644 --- a/config/net/upstream.nix +++ b/config/net/upstream.nix @@ -28,7 +28,7 @@ in role = "container"; }; - upstream4 = { + upstream4 = rec { forwardPorts = [ { # http destination = "172.20.73.45"; @@ -329,7 +329,12 @@ in }; }; }; - ospf.upstreamInstance = 8; + ospf = { + upstreamInstance = 8; + stubNets4 = [ + "${interfaces.up4-pppoe.upstream.staticIpv4Address}/32" + ]; + }; role = "container"; };