* Added initial version of RPC info API
[project/luci.git] / contrib / package / ffluci-splash / src / luci_splash.init
index a7bb4ab..bce432e 100644 (file)
@@ -20,7 +20,7 @@ iface_add() {
        eval "$(ipcalc.sh $ipaddr $netmask)"
        
        iptables -t nat -A luci_splash -i "$iface" -s "$IP/$PREFIX" -j luci_splash_portal
-       iptables -t nat -A luci_splash_portal -i "$iface" -s "$IP/$PREFIX" -d "$ipaddr" -p tcp --dport 80 -j RETURN  
+       iptables -t nat -A luci_splash_portal -i "$iface" -s "$IP/$PREFIX" -d "$ipaddr" -p tcp -m multiport --dports 22,80,443 -j RETURN
 }
 
 blacklist_add() {
@@ -64,9 +64,6 @@ start() {
        ### Start the splash httpd
        httpd -c /etc/luci_splash_httpd.conf -p 8082 -h /usr/lib/luci-splash/htdocs
        
-       ### Sync leases
-       /usr/lib/luci-splash/sync.lua
-       
        ### Hook in the chain
        iptables -t nat -A prerouting_rule -j luci_splash
 }