mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-23 07:01:06 +02:00
[backfire] backport r25179
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@25180 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a6b6acacda
commit
bdcad9402e
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=firewall
|
PKG_NAME:=firewall
|
||||||
|
|
||||||
PKG_VERSION:=1
|
PKG_VERSION:=1
|
||||||
PKG_RELEASE:=20
|
PKG_RELEASE:=21
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
@ -388,10 +388,10 @@ fw_rule() {
|
|||||||
[ -n "$dest" ] && TARGET="zone_${dest}_${TARGET}"
|
[ -n "$dest" ] && TARGET="zone_${dest}_${TARGET}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local pos
|
|
||||||
eval 'pos=$((++FW__RULE_COUNT_'$ZONE'))'
|
|
||||||
|
|
||||||
add_rule() {
|
add_rule() {
|
||||||
|
local pos
|
||||||
|
eval 'pos=$((++FW__RULE_COUNT_'$ZONE'))'
|
||||||
|
|
||||||
$IPTABLES -t $TABLE -I $ZONE $pos \
|
$IPTABLES -t $TABLE -I $ZONE $pos \
|
||||||
$srcaddr $destaddr \
|
$srcaddr $destaddr \
|
||||||
${proto:+-p $proto} \
|
${proto:+-p $proto} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user