projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move out autotools touching stuff to a macro
[openwrt.git]
/
package
/
iptables
/
files
/
firewall.init
diff --git
a/package/iptables/files/firewall.init
b/package/iptables/files/firewall.init
index
1e39d05
..
4e8317d
100755
(executable)
--- a/
package/iptables/files/firewall.init
+++ b/
package/iptables/files/firewall.init
@@
-8,6
+8,7
@@
start() {
scan_interfaces
config_get WAN wan ifname
scan_interfaces
config_get WAN wan ifname
+ config_get WANDEV wan device
config_get LAN lan ifname
## CLEAR TABLES
config_get LAN lan ifname
## CLEAR TABLES
@@
-25,6
+26,7
@@
start() {
iptables -N LAN_ACCEPT
[ -z "$WAN" ] || iptables -A LAN_ACCEPT -i "$WAN" -j RETURN
iptables -N LAN_ACCEPT
[ -z "$WAN" ] || iptables -A LAN_ACCEPT -i "$WAN" -j RETURN
+ [ -z "$WANDEV" -o "$WANDEV" = "$WAN" ] || iptables -A LAN_ACCEPT -i "$WANDEV" -j RETURN
iptables -A LAN_ACCEPT -j ACCEPT
### INPUT
iptables -A LAN_ACCEPT -j ACCEPT
### INPUT
This page took
0.022515 seconds
and
4
git commands to generate.