projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2755a46
)
applications/luci-splash: Minor Fixes
author
Steven Barth
<
[email protected]
>
Tue, 5 Aug 2008 13:23:40 +0000
(13:23 +0000)
committer
Steven Barth
<
[email protected]
>
Tue, 5 Aug 2008 13:23:40 +0000
(13:23 +0000)
applications/luci-splash/root/etc/init.d/luci_splash
patch
|
blob
|
history
diff --git
a/applications/luci-splash/root/etc/init.d/luci_splash
b/applications/luci-splash/root/etc/init.d/luci_splash
index 7541f9935b5efdc4f466f1f4fa1548ade441e34b..02fdd8b6a58cd080e6571a8c616230f9e05de414 100755
(executable)
--- a/
applications/luci-splash/root/etc/init.d/luci_splash
+++ b/
applications/luci-splash/root/etc/init.d/luci_splash
@@
-8,10
+8,14
@@
iface_add() {
[ -n "$zone" ] || return 0
config_get gw "$cfg" gateway
- [ -n "$
zone
" ] || return 0
+ [ -n "$
gw
" ] || return 0
iptables -t nat -A zone_$zone_prerouting -j luci_splash_portal
- iptables -t nat -A luci_splash_portal -d "$gw" -p tcp -m multiport --dports 22,80,443 -j RETURN
+
+ for i in $gw
+ do
+ iptables -t nat -A luci_splash_portal -d "$i" -p tcp -m multiport --dports 22,80,443 -j RETURN
+ done
}
blacklist_add() {