projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace lots of manual install commands with INSTALL_* variables
[openwrt.git]
/
package
/
iptables
/
files
/
firewall.init
diff --git
a/package/iptables/files/firewall.init
b/package/iptables/files/firewall.init
index
4e8317d
..
6f1ba8b
100755
(executable)
--- a/
package/iptables/files/firewall.init
+++ b/
package/iptables/files/firewall.init
@@
-87,7
+87,7
@@
start() {
iptables -A FORWARD -j forwarding_rule
# allow
iptables -A FORWARD -j forwarding_rule
# allow
- iptables -A FORWARD -i
br0 -o br0
-j ACCEPT
+ iptables -A FORWARD -i
$LAN -o $LAN
-j ACCEPT
[ -z "$WAN" ] || iptables -A FORWARD -i $LAN -o $WAN -j ACCEPT
# reject (what to do with anything not allowed earlier)
[ -z "$WAN" ] || iptables -A FORWARD -i $LAN -o $WAN -j ACCEPT
# reject (what to do with anything not allowed earlier)
@@
-101,6
+101,7
@@
start() {
## USER RULES
[ -f /etc/firewall.user ] && . /etc/firewall.user
[ -n "$WAN" -a -e /etc/config/firewall ] && {
## USER RULES
[ -f /etc/firewall.user ] && . /etc/firewall.user
[ -n "$WAN" -a -e /etc/config/firewall ] && {
+ export WAN
awk -f /usr/lib/common.awk -f /usr/lib/firewall.awk /etc/config/firewall | ash
}
}
awk -f /usr/lib/common.awk -f /usr/lib/firewall.awk /etc/config/firewall | ash
}
}
This page took
0.024465 seconds
and
4
git commands to generate.