diff --git a/net/multiwan/Makefile b/net/multiwan/Makefile index 76c61d83b..bed8e6f63 100644 --- a/net/multiwan/Makefile +++ b/net/multiwan/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=multiwan -PKG_VERSION:=1.0.20 +PKG_VERSION:=1.0.21 PKG_RELEASE:=1 include $(INCLUDE_DIR)/package.mk diff --git a/net/multiwan/files/usr/bin/multiwan b/net/multiwan/files/usr/bin/multiwan index c2fb3ab26..75b2a2fc8 100755 --- a/net/multiwan/files/usr/bin/multiwan +++ b/net/multiwan/files/usr/bin/multiwan @@ -257,10 +257,10 @@ clear_rules() { local restore_single=$1 local group - iptables -t mangle -F PREROUTING - iptables -t mangle -F FORWARD - iptables -t mangle -F POSTROUTING - iptables -t mangle -F OUTPUT + iptables -t mangle -D PREROUTING -j MultiWan + iptables -t mangle -D FORWARD -j MultiWan + iptables -t mangle -D OUTPUT -j MultiWan + iptables -t mangle -D POSTROUTING -j MultiWan iptables -t mangle -F MultiWan iptables -t mangle -X MultiWan iptables -t mangle -F MultiWanRules @@ -285,6 +285,10 @@ clear_rules() { done if [ ! -z "$CHKFORQOS" ]; then + iptables -t mangle -F PREROUTING + iptables -t mangle -F FORWARD + iptables -t mangle -F OUTPUT + iptables -t mangle -F POSTROUTING iptables -t mangle -F MultiWanQoS iptables -t mangle -X MultiWanQoS