From 9135553a459ccb4b70ab84128b1996ce5c8963d7 Mon Sep 17 00:00:00 2001 From: kishan Date: Fri, 17 Sep 2010 12:24:37 +0530 Subject: [PATCH] Bug 6175: clear rules when pub interface is remove --- tools/systemvm/debian/config/root/clearUsageRules.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/systemvm/debian/config/root/clearUsageRules.sh b/tools/systemvm/debian/config/root/clearUsageRules.sh index 2517d42e2e0..1582612fd99 100755 --- a/tools/systemvm/debian/config/root/clearUsageRules.sh +++ b/tools/systemvm/debian/config/root/clearUsageRules.sh @@ -16,6 +16,8 @@ then # remove rules iptables -D NETWORK_STATS -i eth0 -o $i > /dev/null; iptables -D NETWORK_STATS -i $i -o eth0 > /dev/null; + iptables -D NETWORK_STATS -o $pubIf ! -i eth0 -p tcp > /dev/null; + iptables -D NETWORK_STATS -i $pubIf ! -o eth0 -p tcp > /dev/null; fi done rm /root/removedVifs