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
- Return to June 2016
- Return to July 2016
- Return to August 2016
-
Return to September 2016
- Return to “Hotspotuser <jo***s@algardata.pt>”
- Return to “Eliot Ness <sc***7@googlemail.com>”
- Return to “Timothy White <ti***8@gmail.com>”
-
Return to “Edward Allen <yb***j@gmail.com>”
- 2016-06-01 (Wed, 01 Jun 2016 23:40:51 -0700) - Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-06-02 (Thu, 02 Jun 2016 19:20:48 +1000) - Re: [GRASE-Hotspot] Power Off and User Re-Login - Timothy White <ti***8@gmail.com>
- 2016-07-08 (Fri, 08 Jul 2016 08:08:15 -0700) - Re: [GRASE-Hotspot] Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-08-05 (Fri, 05 Aug 2016 16:08:15 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-08-08 (Mon, 08 Aug 2016 01:47:54 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-08-10 (Wed, 10 Aug 2016 11:16:43 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-08-11 (Thu, 11 Aug 2016 02:00:13 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-08-11 (Thu, 11 Aug 2016 16:56:42 +0000) - Re: [GRASE-Hotspot] Re: Power Off and User Re-Login - Edward Allen <yb***j@gmail.com>
- 2016-08-11 (Thu, 11 Aug 2016 02:00:13 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-08-16 (Tue, 16 Aug 2016 23:34:06 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-08-17 (Wed, 17 Aug 2016 03:01:35 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-08-25 (Thu, 25 Aug 2016 14:10:25 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-08-26 (Fri, 26 Aug 2016 02:28:20 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-08-28 (Sun, 28 Aug 2016 12:16:44 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-09-09 (Fri, 09 Sep 2016 06:11:38 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-09-10 (Sat, 10 Sep 2016 20:33:15 +1000) - Re: [GRASE-Hotspot] Re: Power Off and User Re-Login - Timothy White <ti***8@gmail.com>
- 2016-09-13 (Tue, 13 Sep 2016 01:42:44 -0700) - Re: [GRASE-Hotspot] Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-10 (Sat, 10 Sep 2016 20:33:15 +1000) - Re: [GRASE-Hotspot] Re: Power Off and User Re-Login - Timothy White <ti***8@gmail.com>
- 2016-09-13 (Tue, 13 Sep 2016 06:39:36 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-09-13 (Tue, 13 Sep 2016 06:45:00 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-13 (Tue, 13 Sep 2016 07:38:47 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-09-13 (Tue, 13 Sep 2016 07:44:28 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-13 (Tue, 13 Sep 2016 07:46:51 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-13 (Tue, 13 Sep 2016 07:44:28 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-15 (Thu, 15 Sep 2016 05:18:15 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-09-15 (Thu, 15 Sep 2016 06:39:04 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-15 (Thu, 15 Sep 2016 06:44:18 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-15 (Thu, 15 Sep 2016 06:45:58 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-15 (Thu, 15 Sep 2016 06:44:18 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-15 (Thu, 15 Sep 2016 06:47:00 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-15 (Thu, 15 Sep 2016 06:39:04 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-17 (Sat, 17 Sep 2016 07:30:01 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-09-20 (Tue, 20 Sep 2016 05:57:02 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-09-27 (Tue, 27 Sep 2016 09:55:32 -0700) - Re: Power Off and User Re-Login - Eliot Ness <sc***7@googlemail.com>
- 2016-09-20 (Tue, 20 Sep 2016 05:57:02 -0700) - Re: Power Off and User Re-Login - Hotspotuser <jo***s@algardata.pt>
- 2016-06-02 (Thu, 02 Jun 2016 19:20:48 +1000) - Re: [GRASE-Hotspot] Power Off and User Re-Login - Timothy White <ti***8@gmail.com>