mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:43:09 +02:00
firewall: do not process rules in reverse
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18015 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c0d7c71e53
commit
71394ccb5e
@ -280,7 +280,7 @@ fw_rule() {
|
||||
[ -n "$src" -a -n "$dest" ] && ZONE=zone_${src}_forward
|
||||
[ -n "$dest" ] && TARGET=zone_${dest}_$target
|
||||
add_rule() {
|
||||
$IPTABLES -I $ZONE 1 \
|
||||
$IPTABLES -A $ZONE \
|
||||
${proto:+-p $proto} \
|
||||
${icmp_type:+--icmp-type $icmp_type} \
|
||||
${src_ip:+-s $src_ip} \
|
||||
|
Loading…
Reference in New Issue
Block a user