summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2008-09-28 17:06:39 +0000
committerJohn Crispin <john@openwrt.org>2008-09-28 17:06:39 +0000
commitb56d5cc36f33d8db37b8c541b895bf7532d541b4 (patch)
treebaed55083338e13e39652403aaa95fe57cd0d111
parentaaf31c36f1d85a3eaec5b1e7b52359bdd3e8f390 (diff)
downloadmtk-20170518-b56d5cc36f33d8db37b8c541b895bf7532d541b4.zip
mtk-20170518-b56d5cc36f33d8db37b8c541b895bf7532d541b4.tar.gz
mtk-20170518-b56d5cc36f33d8db37b8c541b895bf7532d541b4.tar.bz2
custom chains were never reached on DROP/REJECT policy, fixes #4004 #4029
SVN-Revision: 12767
-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 a09e707..5798b7f 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() {