mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-04 04:54:18 +00:00
don't drop all incoming connections if wan_ifname is not set
SVN-Revision: 3709
This commit is contained in:
parent
a1f826f941
commit
89693db3ba
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user