summaryrefslogtreecommitdiffstats
path: root/openwrt/package/iptables/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-04-27 14:55:04 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-04-27 14:55:04 +0000
commit82c65f87984c8ce099445a6342d95a3f5198a73c (patch)
treebcf83a3d109040da8e6ce8bb9c503a98df7b15de /openwrt/package/iptables/files
parent83446d19bc40eab97c368df0d1ef8da9b8e5a52f (diff)
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
Diffstat (limited to 'openwrt/package/iptables/files')
-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 3804d044f..a7cde95b5 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