From ed0f9f69423166eed17d55ba026246b21f7eac09 Mon Sep 17 00:00:00 2001 From: Naredula Janardhana Reddy Date: Wed, 15 Feb 2012 11:31:47 +0530 Subject: [PATCH] Bug 13375: Summary of changes: - Fix the order of source nat ip's : Static Nat IP's will be on top of Router source nat IP's. means Static NAT ip will take higher preference when compare to router ip while picking ip for source nat. Reviewed-by: Abhi --- patches/systemvm/debian/config/root/ipassoc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/systemvm/debian/config/root/ipassoc.sh b/patches/systemvm/debian/config/root/ipassoc.sh index 63505e3a14e..6d6013e1ba5 100644 --- a/patches/systemvm/debian/config/root/ipassoc.sh +++ b/patches/systemvm/debian/config/root/ipassoc.sh @@ -214,7 +214,7 @@ add_snat() { local ipNoMask=$(echo $1 | awk -F'/' '{print $1}') logger -t cloud "$(basename $0):Added SourceNAT $pubIp on interface $ethDev" sudo iptables -t nat -D POSTROUTING -j SNAT -o $ethDev --to-source $ipNoMask ; - sudo iptables -t nat -I POSTROUTING -j SNAT -o $ethDev --to-source $ipNoMask ; + sudo iptables -t nat -A POSTROUTING -j SNAT -o $ethDev --to-source $ipNoMask ; return $? } remove_snat() {