From 46677c9767a1695653854d68e385a6b56949d0b0 Mon Sep 17 00:00:00 2001 From: kishan Date: Fri, 17 Sep 2010 12:24:51 +0530 Subject: [PATCH] Bug 6175: clear rules when pub interface is remove --- patches/systemvm/root/clearUsageRules.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patches/systemvm/root/clearUsageRules.sh b/patches/systemvm/root/clearUsageRules.sh index 2517d42e2e0..1582612fd99 100755 --- a/patches/systemvm/root/clearUsageRules.sh +++ b/patches/systemvm/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