aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2008-08-27 19:16:54 +0000
committerJohn Crispin <blogic@openwrt.org>2008-08-27 19:16:54 +0000
commit81f3bf9bcc6766e4e3d468f4e4d624df2461e5cc (patch)
treedcfce5e738a43c38efa4bd8c7dba5e1f420da0a0 /package
parente5dc30a7f7ba5b88402c0025ca7d836b9bd54382 (diff)
downloadupstream-81f3bf9bcc6766e4e3d468f4e4d624df2461e5cc.tar.gz
upstream-81f3bf9bcc6766e4e3d468f4e4d624df2461e5cc.tar.bz2
upstream-81f3bf9bcc6766e4e3d468f4e4d624df2461e5cc.zip
make uci firewall backwards compatible to the old firewall.user
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12408 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-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 b7bdcd6e73..0ce878b7f7 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() {