Installato e provato... funziona, con le opportune modifiche spiegate nel README.html che fa un link a
https://forum.openwrt.org/viewtopic.php?id=20282, anche con kamikaze 8.09... semplice da installare e configurare. Naturalmente reindirizza alla pagina che pu? richiedere l'autenticazione. Insieme viene installato "ndsctl" che:
root@nabuk:/etc/nodogsplash# /usr/bin/ndsctl -h
Usage: ndsctl [options] command [arguments]
options:
-s <path> Path to the socket
-h Print usage
commands:
status View the status of nodogsplash
clients Display machine-readable client list
stop Stop the running nodogsplash
auth ip Authenticate user with specified ip
deauth mac|ip Deauthenticate user with specified mac or ip
block mac Block the given MAC address
unblock mac Unblock the given MAC address
allow mac Allow the given MAC address
unallow mac Unallow the given MAC address
trust mac Trust the given MAC address
untrust mac Untrust the given MAC address
loglevel n Set logging level to n
password pass Set gateway password
username name Set gateway username
root@nabuk:/etc/nodogsplash#
e quindi con un "/usr/bin/ndsctl status..."
root@nabuk:/etc/nodogsplash# /usr/bin/ndsctl status
==================
NoDogSplash Status
====
Version: 0.9_beta9.9
Uptime: 0d 0h 13m 24s
Gateway Name: Pagina di autenticazione
Managed interface: br-lan
Managed IP range: 0.0.0.0/0
Server listening: 192.168.70.131:2050
Splashpage: /etc/nodogsplash/htdocs/splash.html
Gateway password: nodog
Gateway username: guest
Traffic control: no
Total download: 643 kByte; avg: 6.40344 kbit/s
Total upload: 184 kByte; avg: 1.83623 kbit/s
====
Client authentications this session: 2
Current clients: 2
Client 0
IP: 192.168.70.148 MAC: 00:40:XX:XX:XX:XX
Added: Sat Apr 17 15:34:13 2010
Active: Sat Apr 17 15:47:05 2010
Active duration: 0d 0h 12m 52s
Added duration: 0d 0h 12m 52s
Token: fc694488
State: Authenticated
Download: 535 kByte; avg: 5.55123 kbit/s
Upload: 125 kByte; avg: 1.30429 kbit/s
Client 1
IP: 192.168.70.221 MAC: 00:1C:BF:XX:XX:XX
Added: Sat Apr 17 15:35:14 2010
Active: Sat Apr 17 15:47:05 2010
Active duration: 0d 0h 11m 51s
Added duration: 0d 0h 11m 51s
Token: 05dd9fc1
State: Authenticated
Download: 59 kByte; avg: 0.664754 kbit/s
Upload: 29 kByte; avg: 0.328023 kbit/s
====
Blocked MAC addresses: none
Allowed MAC addresses: N/A
Trusted MAC addresses: none
========
root@nabuk:/etc/nodogsplash#
Come vedete da anche il tempo "attivo" del client...
Non c'?, mi sembra, il modo di impostare un tempo di scadenza ma con questi dati non diventa complicato fare uno script di controllo e "buttar fuori un ip/mac" che ha superato il tempo a disposizione... naturalmente con tutti i limiti di sicurezza che comporta