custom chains were never reached on DROP/REJECT policy, fixes #4004 #4029
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 28 Sep 2008 17:06:39 +0000 (17:06 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 28 Sep 2008 17:06:39 +0000 (17:06 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12767 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/firewall/files/uci_firewall.sh

index a09e707..5798b7f 100755 (executable)
@@ -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() {
This page took 0.031088 seconds and 4 git commands to generate.