Skip to content

Commit 5af6fbe

Browse files
author
Naredula Janardhana Reddy
committed
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
1 parent 623e7d9 commit 5af6fbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎patches/systemvm/debian/config/root/ipassoc.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ add_snat() {
214214
local ipNoMask=$(echo $1 | awk -F'/' '{print $1}')
215215
logger -t cloud "$(basename $0):Added SourceNAT $pubIp on interface $ethDev"
216216
sudo iptables -t nat -D POSTROUTING -j SNAT -o $ethDev --to-source $ipNoMask ;
217-
sudo iptables -t nat -I POSTROUTING -j SNAT -o $ethDev --to-source $ipNoMask ;
217+
sudo iptables -t nat -A POSTROUTING -j SNAT -o $ethDev --to-source $ipNoMask ;
218218
return $?
219219
}
220220
remove_snat() {

0 commit comments

Comments
 (0)