X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/93701b2bec2b99d8113d8a6d9b97153e87a7e5aa..45c7419a4f7a4436c27ffd62b1a05724c4ce6357:/openwrt/package/iptables/files/firewall.init diff --git a/openwrt/package/iptables/files/firewall.init b/openwrt/package/iptables/files/firewall.init index 3804d044f..ad014cbaa 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