From 94e26a00f408614c6b2aa8e14aeb9e69ad53bb6e Mon Sep 17 00:00:00 2001 From: anthony Date: Mon, 9 Jul 2012 09:53:52 -0700 Subject: [PATCH] VPC : VMs may access this static nat ip --- patches/systemvm/debian/config/opt/cloud/bin/vpc_staticnat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \