From: Felix Fietkau Date: Thu, 27 Apr 2006 14:55:04 +0000 (+0000) Subject: don't drop all incoming connections if wan_ifname is not set X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=81abf691e4e73cd7a4a76ce788f1c08044273e2a;p=openwrt%2Fsvn-archive%2Farchive.git don't drop all incoming connections if wan_ifname is not set SVN-Revision: 3709 --- diff --git a/openwrt/package/iptables/files/firewall.init b/openwrt/package/iptables/files/firewall.init index 8095e19f09..d1b9d79dbc 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 - iptables -A INPUT -i \! $WAN -j ACCEPT # allow from lan/wifi interfaces + iptables -A INPUT -i ${WAN:+-i \! $WAN} -j ACCEPT # allow from lan/wifi interfaces iptables -A INPUT -p icmp -j ACCEPT # allow ICMP iptables -A INPUT -p gre -j ACCEPT # allow GRE