diff --git a/patches/systemvm/debian/config/opt/cloud/bin/vpc_staticnat.sh b/patches/systemvm/debian/config/opt/cloud/bin/vpc_staticnat.sh index d5411c8f976..cb825b17e3b 100755 --- a/patches/systemvm/debian/config/opt/cloud/bin/vpc_staticnat.sh +++ b/patches/systemvm/debian/config/opt/cloud/bin/vpc_staticnat.sh @@ -46,7 +46,7 @@ static_nat() { # shortcircuit the process if error and it is an append operation # continue if it is delete - (sudo iptables -t nat $op PREROUTING -i $ethDev -d $publicIp -j DNAT \ + (sudo iptables -t nat $op PREROUTING -d $publicIp -j DNAT \ --to-destination $instIp &>> $OUTFILE || [ "$op" == "-D" ]) && # add mark to force the package go out through the eth the public IP is on #(sudo iptables -t mangle $op PREROUTING -s $instIp -j MARK \