aboutsummaryrefslogtreecommitdiffstats
path: root/package/firewall
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2008-09-28 17:06:39 +0000
committerJohn Crispin <blogic@openwrt.org>2008-09-28 17:06:39 +0000
commit1e14eeaa9ffb75f7a4663e4a0ff45d0a41003b53 (patch)
treead00fff759038520a1a4a37428d793122ef4053d /package/firewall
parent7f0d2f2042698b7dc803cd0f5c468600f5b3876a (diff)
downloadupstream-1e14eeaa9ffb75f7a4663e4a0ff45d0a41003b53.tar.gz
upstream-1e14eeaa9ffb75f7a4663e4a0ff45d0a41003b53.tar.bz2
upstream-1e14eeaa9ffb75f7a4663e4a0ff45d0a41003b53.zip
custom chains were never reached on DROP/REJECT policy, fixes #4004 #4029
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12767 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/firewall')
-rwxr-xr-xpackage/firewall/files/uci_firewall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh
index a09e7079c2..5798b7fc48 100755
--- a/package/firewall/files/uci_firewall.sh
+++ b/package/firewall/files/uci_firewall.sh
@@ -354,9 +354,9 @@ fw_custom_chains_zone() {
$IPTABLES -N input_${zone}
$IPTABLES -N forwarding_${zone}
$IPTABLES -N prerouting_${zone} -t nat
- $IPTABLES -A zone_${zone} -j input_${zone}
- $IPTABLES -A zone_${zone}_forward -j forwarding_${zone}
- $IPTABLES -A zone_${zone}_prerouting -t nat -j prerouting_${zone}
+ $IPTABLES -I zone_${zone} 1 -j input_${zone}
+ $IPTABLES -I zone_${zone}_forward 1 -j forwarding_${zone}
+ $IPTABLES -I zone_${zone}_prerouting 1 -t nat -j prerouting_${zone}
}
fw_init() {