From 0f3f69f095c84f6a6ecfe3316cce469ff0561565 Mon Sep 17 00:00:00 2001 From: anthony Date: Fri, 6 Jul 2012 16:11:05 -0700 Subject: [PATCH] VPC : do not set mark for static nat --- patches/systemvm/debian/config/opt/cloud/bin/vpc_staticnat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f25dfd8b477..d5411c8f976 100755 --- a/patches/systemvm/debian/config/opt/cloud/bin/vpc_staticnat.sh +++ b/patches/systemvm/debian/config/opt/cloud/bin/vpc_staticnat.sh @@ -49,8 +49,8 @@ static_nat() { (sudo iptables -t nat $op PREROUTING -i $ethDev -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 \ - --set-mark $tableNo &> $OUTFILE || [ "$op" == "-D" ]) && + #(sudo iptables -t mangle $op PREROUTING -s $instIp -j MARK \ + # --set-mark $tableNo &> $OUTFILE || [ "$op" == "-D" ]) && (sudo iptables -t nat $op2 POSTROUTING -o $ethDev -s $instIp -j SNAT \ --to-source $publicIp &>> $OUTFILE ) result=$?