From 6707048fd58f17aa2d10c9e83c4378b159d77fbf Mon Sep 17 00:00:00 2001 From: Abhinandan Prateek Date: Mon, 16 May 2011 13:49:24 +0530 Subject: [PATCH] bug 9869: if several port forwarding rules are deleted in quick succession it makes the router iptables inconsistent status 9869: resolved fixed --- patches/systemvm/debian/config/root/firewall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/systemvm/debian/config/root/firewall.sh b/patches/systemvm/debian/config/root/firewall.sh index f84f0a61b37..84cbab75d5f 100755 --- a/patches/systemvm/debian/config/root/firewall.sh +++ b/patches/systemvm/debian/config/root/firewall.sh @@ -57,7 +57,7 @@ tcp_or_udp_entry() { instance ip=$instIp proto=$proto port=$port dport=$dport op=$op" #if adding, this might be a duplicate, so delete the old one first - [ "$op" == "-A" ] && tcp_or_udp_entry $instIp $dport0 $publicIp $port "-D" $proto + [ "$op" == "-A" ] && tcp_or_udp_entry $instIp $dport0 $publicIp $port "-D" $proto $cidrs # the delete operation may have errored out but the only possible reason is # that the rules didn't exist in the first place local dev=$(ip_to_dev $publicIp)