2016-08-08 - Re: Power Off and User Re-Login

Header Data

From: Hotspotuser <jo***s@algardata.pt>
Message Hash: c468696edce756ef3cbbacecfc1f5c56fd930d8381a61a089adc3bb9c964cfb8
Message ID: <2ce299b4-f25e-4ea5-8957-9972fdc80d92@grasehotspot.org>
Reply To: <b908fa92-fc5b-49ca-ab14-c15e4bdfa24b@grasehotspot.org>
UTC Datetime: 2016-08-08 01:47:54 UTC
Raw Date: Mon, 08 Aug 2016 01:47:54 -0700

Raw message

Look at the chilli_query man page 
here: http://www.manualpages.de/FreeBSD/FreeBSD-ports-9.0-RELEASE/man1/chilli_query.1.html 

execute in PHP the command "chilli_query list | grep dnat" grab that output 
and parse it to have an array of mac address (you can use awk for that 
too). so that the command executed already provides you with only the mac 
address of the users in DNAT mode (connected to the wifi hotspot but 
without login).

Cross that list with a query to the radius.radactt table and where you find 
matchs between the MAC ADDRESSES you try to use the command "chilli_query 
authorize mac XX-XX-XX-XX-XX" syntax and if the user voucher is still 
valid, it will auto-reconnect and keep the session history (time/data 
limits/usage), otherwise freeradius refuses the connection and they are 
still logged out.

We made a custom script for this, integrated with our own solution, but 
those are the exact steps we did.



sábado, 6 de Agosto de 2016 às 00:08:15 UTC+1, Eliot Ness escreveu:
>
> A kind of help on that script will be awesome....
>
>
> On Thursday, June 2, 2016 at 9:40:51 AM UTC+3, Eliot Ness wrote:
>>
>> At least one Pi2 comes yesterday in my hands, and ....grase run again.
>> Detailed tutorial steps install on next days.
>>
>> As simple question : On power off or reboot, user have login again, 
>> except if admin store mac adr.
>>
>> Is there any way on grase to remember users after reboot ? So no need 
>> user to login again....
>>
>> Anyone?
>>
>

Thread