aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-10 18:08:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-10 18:08:26 +0000
commita0071bba09600c1658027e077e66232d2ee32553 (patch)
treea7d80758d7930d87224a2ac3e263477c7f10a53e /package/firewall
parentf192e183280b5ac8f3666fb62cf27f557e750848 (diff)
downloadupstream-a0071bba09600c1658027e077e66232d2ee32553.tar.gz
upstream-a0071bba09600c1658027e077e66232d2ee32553.tar.bz2
upstream-a0071bba09600c1658027e077e66232d2ee32553.zip
firewall: do not process rules in reverse
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18015 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall')
-rwxr-xr-xpackage/firewall/files/uci_firewall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh
index 3aa1f69c46..64e052fcb2 100755
--- a/package/firewall/files/uci_firewall.sh
+++ b/package/firewall/files/uci_firewall.sh
@@ -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} \