From 5b0fc08739df493f2c03326c76001310ddee4e06 Mon Sep 17 00:00:00 2001 From: RootHost-Stormwind Date: Wed, 30 Jul 2025 11:57:38 +0200 Subject: [PATCH] fix network settings for incusbr0 and add nat for home assistant to varian --- networking.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/networking.nix b/networking.nix index 9c37a90..b3bed55 100644 --- a/networking.nix +++ b/networking.nix @@ -11,6 +11,7 @@ table ip nat { chain PREROUTING { type nat hook prerouting priority dstnat; policy accept; + iifname "enp4s0" tcp dport 8123 dnat to 10.46.32.153:8123 iifname "enp4s0" tcp dport 80 dnat to 10.46.32.2:80 iifname "enp4s0" tcp dport 443 dnat to 10.46.32.2:443 iifname "enp4s0" tcp dport 20 dnat to 10.46.32.2:20 @@ -57,7 +58,7 @@ }; incusbr1 = { ipv4.addresses = [ - { address = "10.46.32.1"; prefixLength = 24; } + { address = "10.46.33.1"; prefixLength = 24; } ]; }; }; @@ -67,6 +68,13 @@ internalInterfaces = [ "incusbr0" "incusbr1" ]; externalInterface = "enp4s0"; forwardPorts = [ + # Web-UI for home-assistant + { + sourcePort = 8123; + proto = "tcp"; + destination = "10.46.32.153:8123"; + } + # Web-UI for nas { sourcePort = 80; proto = "tcp";