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 }