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://207.154.207.93/?a=commitdiff_plain;h=f2769af01d1db0ee10473794132a4088ef47cebe;p=15.05%2Fopenwrt.git don't drop all incoming connections if wan_ifname is not set git-svn-id: svn://svn.openwrt.org/openwrt/trunk@3709 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/openwrt/package/iptables/files/firewall.init b/openwrt/package/iptables/files/firewall.init index 3804d044f8..a7cde95b5f 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