summaryrefslogtreecommitdiff
path: root/package/firewall
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2008-08-27 19:16:54 +0000
committerJohn Crispin <john@openwrt.org>2008-08-27 19:16:54 +0000
commit7f6ee846b7fc1e3124b3cf50f90413b9b7adfc86 (patch)
tree5ceff768dddff6fb1579b40378158dc74e479478 /package/firewall
parent20216aa44dc0bb2f15fff3702f95bb5eafbdf9d8 (diff)
downloadmtk-20170518-7f6ee846b7fc1e3124b3cf50f90413b9b7adfc86.zip
mtk-20170518-7f6ee846b7fc1e3124b3cf50f90413b9b7adfc86.tar.gz
mtk-20170518-7f6ee846b7fc1e3124b3cf50f90413b9b7adfc86.tar.bz2
make uci firewall backwards compatible to the old firewall.user
SVN-Revision: 12408
Diffstat (limited to 'package/firewall')
-rwxr-xr-xpackage/firewall/files/uci_firewall.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/package/firewall/files/uci_firewall.sh b/package/firewall/files/uci_firewall.sh
index b7bdcd6..0ce878b 100755
--- a/package/firewall/files/uci_firewall.sh
+++ b/package/firewall/files/uci_firewall.sh
@@ -303,14 +303,21 @@ fw_addif() {
fw_custom_chains() {
$IPTABLES -N input_rule
$IPTABLES -N output_rule
- $IPTABLES -N forward_rule
+ $IPTABLES -N forwarding_rule
$IPTABLES -N prerouting_rule -t nat
$IPTABLES -N postrouting_rule -t nat
+ $IPTABLES -N input_wan
+ $IPTABLES -N forwarding_wan
+ $IPTABLES -N prerouting_wan -t nat
+
$IPTABLES -A INPUT -j input_rule
$IPTABLES -A OUTPUT -j output_rule
- $IPTABLES -A FORWARD -j forward_rule
+ $IPTABLES -A FORWARD -j forwarding_rule
$IPTABLES -A PREROUTING -t nat -j prerouting_rule
$IPTABLES -A POSTROUTING -t nat -j postrouting_rule
+ $IPTABLES -A zone_wan -j input_wan
+ $IPTABLES -A zone_wan_forward -j forwarding_wan
+ $IPTABLES -A zone_wan_prerouting -t nat -j prerouting_wan
}
fw_init() {