projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update busybox+ipkg to latest ipkg (v0.99.162),
[openwrt.git]
/
openwrt
/
package
/
iptables
/
files
/
firewall.init
diff --git
a/openwrt/package/iptables/files/firewall.init
b/openwrt/package/iptables/files/firewall.init
index
3804d04
..
ad014cb
100755
(executable)
--- 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 -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
iptables -A INPUT -p icmp -j ACCEPT # allow ICMP
iptables -A INPUT -p gre -j ACCEPT # allow GRE
This page took
0.027073 seconds
and
4
git commands to generate.