summaryrefslogtreecommitdiff
path: root/openwrt/package/iptables
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-04-27 14:55:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-04-27 14:55:04 +0000
commit89693db3ba73e8a944e80640be574697f271914e (patch)
tree26cc0ebc4ba0edadbb26670c2c177dc1daf363c8 /openwrt/package/iptables
parenta1f826f941e54ea242e13cf418dddcde7cdaebd3 (diff)
downloadmtk-20170518-89693db3ba73e8a944e80640be574697f271914e.zip
mtk-20170518-89693db3ba73e8a944e80640be574697f271914e.tar.gz
mtk-20170518-89693db3ba73e8a944e80640be574697f271914e.tar.bz2
don't drop all incoming connections if wan_ifname is not set
SVN-Revision: 3709
Diffstat (limited to 'openwrt/package/iptables')
-rwxr-xr-xopenwrt/package/iptables/files/firewall.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/openwrt/package/iptables/files/firewall.init b/openwrt/package/iptables/files/firewall.init
index 3804d04..a7cde95 100755
--- a/openwrt/package/iptables/files/firewall.init
+++ b/openwrt/package/iptables/files/firewall.init
@@ -34,7 +34,7 @@ iptables -t nat -N postrouting_rule
iptables -A INPUT -j input_rule
# allow
- [ -z "$WAN" ] || iptables -A INPUT -i \! $WAN -j ACCEPT # allow from lan/wifi interfaces
+ iptables -A INPUT ${WAN:+-i \! $WAN} -j ACCEPT # allow from all interfaces except for wan
iptables -A INPUT -p icmp -j ACCEPT # allow ICMP
iptables -A INPUT -p gre -j ACCEPT # allow GRE