summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-02-02 10:07:28 +0000
committerMike Baker <mbm@openwrt.org>2006-02-02 10:07:28 +0000
commitefb789106090c1daedbf5e2d34a6db51a84eb792 (patch)
tree0fd0d97e2a0db830ab17757b5c02bc168975997b /openwrt/package/base-files/default/etc
parent3f956d1d50b27a7f0de79e3f473c883550da586a (diff)
downloadmtk-20170518-efb789106090c1daedbf5e2d34a6db51a84eb792.zip
mtk-20170518-efb789106090c1daedbf5e2d34a6db51a84eb792.tar.gz
mtk-20170518-efb789106090c1daedbf5e2d34a6db51a84eb792.tar.bz2
fixes files from [3112]
SVN-Revision: 3114
Diffstat (limited to 'openwrt/package/base-files/default/etc')
-rwxr-xr-xopenwrt/package/base-files/default/etc/init.d/S45firewall8
1 files changed, 3 insertions, 5 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S45firewall b/openwrt/package/base-files/default/etc/init.d/S45firewall
index 0110cfc..2942f31 100755
--- a/openwrt/package/base-files/default/etc/init.d/S45firewall
+++ b/openwrt/package/base-files/default/etc/init.d/S45firewall
@@ -81,11 +81,9 @@ iptables -t nat -N postrouting_rule
iptables -A FORWARD -j forwarding_rule
# allow
- # if there is bridge splitting this workaround works too
- for iface in $LAN; do
- iptables -A FORWARD -i $iface -o $iface -j ACCEPT
- [ -z "$WAN" ] || iptables -A FORWARD -i $iface -o $WAN -j ACCEPT
- done
+ iptables -A FORWARD -i br0 -o br0 -j ACCEPT
+ [ -z "$WAN" ] || iptables -A FORWARD -i $iface -o $WAN -j ACCEPT
+
# reject (what to do with anything not allowed earlier)
# uses the default -P DROP