From: Jo-Philipp Wich Date: Thu, 27 Jan 2011 22:20:31 +0000 (+0000) Subject: [backfire] backport r25179 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=af4ad97325c6c69c8bb331ee8090ec7f85a37cfa;p=openwrt%2Fsvn-archive%2Farchive.git [backfire] backport r25179 SVN-Revision: 25180 --- diff --git a/package/firewall/Makefile b/package/firewall/Makefile index dc61f7c758..8b80377d4a 100644 --- a/package/firewall/Makefile +++ b/package/firewall/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=firewall PKG_VERSION:=1 -PKG_RELEASE:=20 +PKG_RELEASE:=21 include $(INCLUDE_DIR)/package.mk diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh index be6620d191..b8e9f829bd 100755 --- a/package/firewall/files/uci_firewall.sh +++ b/package/firewall/files/uci_firewall.sh @@ -388,10 +388,10 @@ fw_rule() { [ -n "$dest" ] && TARGET="zone_${dest}_${TARGET}" fi - local pos - eval 'pos=$((++FW__RULE_COUNT_'$ZONE'))' - add_rule() { + local pos + eval 'pos=$((++FW__RULE_COUNT_'$ZONE'))' + $IPTABLES -t $TABLE -I $ZONE $pos \ $srcaddr $destaddr \ ${proto:+-p $proto} \