correct the iptables rule to use published_port as target

master
lub 5 years ago
parent 9873aec3d0
commit f8969e5f4a

@ -157,7 +157,7 @@ foreach($yaml in (Get-ChildItem -Path $Stacks -Include '*.yml','*.yaml' -Recurse
'--destination',$nat.ip '--destination',$nat.ip
'--dport',$nat.port '--dport',$nat.port
'-j','DNAT' '-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 Add-IptablesRule -Chain $Chain -Rule $rule
} }

Loading…
Cancel
Save