applications/luci-splash: Minor Fixes
This commit is contained in:
parent
2755a46c4d
commit
2414448845
1 changed files with 6 additions and 2 deletions
|
@ -8,10 +8,14 @@ iface_add() {
|
||||||
[ -n "$zone" ] || return 0
|
[ -n "$zone" ] || return 0
|
||||||
|
|
||||||
config_get gw "$cfg" gateway
|
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 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() {
|
blacklist_add() {
|
||||||
|
|
Loading…
Reference in a new issue