From 20064ae546cfc05b92d0c67f0537d72ac7e7092c Mon Sep 17 00:00:00 2001 From: Origami404 Date: Sun, 17 May 2026 17:29:09 +0800 Subject: [PATCH] =?UTF-8?q?host/oparic:=20add=20NAT=20DNAT=20rule=20for=20?= =?UTF-8?q?container=20port=2040000=E2=86=9280?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/oparic-local-dev/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/oparic-local-dev/configuration.nix b/hosts/oparic-local-dev/configuration.nix index 1631bea..1150bf7 100644 --- a/hosts/oparic-local-dev/configuration.nix +++ b/hosts/oparic-local-dev/configuration.nix @@ -123,6 +123,11 @@ enable = true; internalInterfaces = [ "ve-o4dev" ]; externalInterface = "ens18"; + forwardPorts = [{ + sourcePort = 40000; + destination = "10.233.1.2:80"; + proto = "tcp"; + }]; }; # NixOS container: o4dev