From f8969e5f4a69e69446c25d6746aeeb99c7a9a3eb Mon Sep 17 00:00:00 2001 From: lub Date: Thu, 22 Aug 2019 17:01:30 +0200 Subject: [PATCH] correct the iptables rule to use published_port as target --- expose_forwards.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expose_forwards.ps1 b/expose_forwards.ps1 index b35e1c2..5e176d8 100644 --- a/expose_forwards.ps1 +++ b/expose_forwards.ps1 @@ -157,7 +157,7 @@ foreach($yaml in (Get-ChildItem -Path $Stacks -Include '*.yml','*.yaml' -Recurse '--destination',$nat.ip '--dport',$nat.port '-j','DNAT' - '--to-destination','"{0}:{1}"' -f $ingress_address,$nat.port + '--to-destination','"{0}:{1}"' -f $ingress_address,$nat.published_port ) Add-IptablesRule -Chain $Chain -Rule $rule }