Hello Guys, I am simulating the problem on what if the AP goes down (due to various reasons). I observed that user is not properly disconnected and result is stale session. When the AP is up and when the previous user tries to log in he/she gets login failed message because "Simultaneous-Use" is in effect while previous session is still ticking. How can prevent and fix this? Saludos Cordiales, Sergio Diaz Infraestructura TI 01(55) 5265.0145 (044) 55.28.99.95.71 sdiazf@logitel.com.mx www.logitel.com.mx
On May 25, 2015, at 8:22 PM, Sergio Diaz <sdiazf@logitel.com.mx> wrote:
I am simulating the problem on what if the AP goes down (due to various reasons). I observed that user is not properly disconnected and result is stale session. When the AP is up and when the previous user tries to log in he/she gets login failed message because "Simultaneous-Use" is in effect while previous session is still ticking.
How can prevent and fix this?
Get the AP to send accounting packets with Acct-Status-Type = Accounting-On. That tells the server that the AP has rebooted, and the server will clear the old sessions from the DB. Otherwise, FreeRADIUS has no idea that the AP rebooted, and can only assume that the sessions are still active. Alan DeKok.
I have a FreeRADIUS Version 2.1.12 with mysql db I have APs from open-mesh with coova chilli. Sometimes when a user lost the connection to the AP from many reasons, the session in radacct table no have nothing in acctstoptime and the user can't login because i have enable a simultaneous-use=1 . is there a way to fix that? Radius can clean the stale session? Can i use other atributes like idle-timeout or session-timeout? Saludos Cordiales, Sergio Diaz Infraestructura TI 01(55) 5265.0145 (044) 55.28.99.95.71 sdiazf@logitel.com.mx www.logitel.com.mx -----Mensaje original----- De: Freeradius-Users [mailto:freeradius-users-bounces+sdiazf=logitel.com.mx@lists.freeradius.org] En nombre de Alan DeKok Enviado el: martes, 26 de mayo de 2015 07:21 a. m. Para: FreeRadius users mailing list Asunto: Re: stale session On May 25, 2015, at 8:22 PM, Sergio Diaz <sdiazf@logitel.com.mx> wrote:
I am simulating the problem on what if the AP goes down (due to various reasons). I observed that user is not properly disconnected and result is stale session. When the AP is up and when the previous user tries to log in he/she gets login failed message because "Simultaneous-Use" is in effect while previous session is still ticking.
How can prevent and fix this?
Get the AP to send accounting packets with Acct-Status-Type = Accounting-On. That tells the server that the AP has rebooted, and the server will clear the old sessions from the DB. Otherwise, FreeRADIUS has no idea that the AP rebooted, and can only assume that the sessions are still active. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On May 27, 2015, at 1:33 PM, Sergio Diaz <sdiazf@logitel.com.mx> wrote:
Sometimes when a user lost the connection to the AP from many reasons, the session in radacct table no have nothing in acctstoptime and the user can't login because i have enable a simultaneous-use=1 .
is there a way to fix that?
Yes. See "radzap".
Radius can clean the stale session? Can i use other atributes like idle-timeout or session-timeout?
If the NAS supports them. Alan DeKok.
How can i manually clear the old sessions from the DB. Saludos Cordiales, Sergio Diaz Infraestructura TI 01(55) 5265.0145 (044) 55.28.99.95.71 sdiazf@logitel.com.mx www.logitel.com.mx -----Mensaje original----- De: Freeradius-Users [mailto:freeradius-users-bounces+sdiazf=logitel.com.mx@lists.freeradius.org] En nombre de Alan DeKok Enviado el: martes, 26 de mayo de 2015 07:21 a. m. Para: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Asunto: Re: stale session On May 25, 2015, at 8:22 PM, Sergio Diaz <sdiazf@logitel.com.mx> wrote:
I am simulating the problem on what if the AP goes down (due to various reasons). I observed that user is not properly disconnected and result is stale session. When the AP is up and when the previous user tries to log in he/she gets login failed message because "Simultaneous-Use" is in effect while previous session is still ticking.
How can prevent and fix this?
Get the AP to send accounting packets with Acct-Status-Type = Accounting-On. That tells the server that the AP has rebooted, and the server will clear the old sessions from the DB. Otherwise, FreeRADIUS has no idea that the AP rebooted, and can only assume that the sessions are still active. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
If i delete all session of the user in radacct table, the problem persist . I'll need delete the old sessions in other table? Saludos Cordiales, Sergio Diaz Infraestructura TI 01(55) 5265.0145 (044) 55.28.99.95.71 sdiazf@logitel.com.mx www.logitel.com.mx -----Mensaje original----- De: Freeradius-Users [mailto:freeradius-users-bounces+sdiazf=logitel.com.mx@lists.freeradius.org] En nombre de Alan DeKok Enviado el: miércoles, 2 de septiembre de 2015 11:03 a. m. Para: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Asunto: Re: stale session On Sep 2, 2015, at 11:59 AM, Sergio Diaz <sdiazf@logitel.com.mx> wrote:
How can i manually clear the old sessions from the DB.
Use DB commands to edit entries in the DB? Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Sep 2, 2015, at 12:34 PM, Sergio Diaz <sdiazf@logitel.com.mx> wrote:
If i delete all session of the user in radacct table, the problem persist .
What problem? You haven't said.
I'll need delete the old sessions in other table?
I have no idea what "other" table you're using. It's your database. You should know how it works. Alan DeKok.
My problem is: when the AP goes down or the user lost connection (due to various reasons). I observed that user is not properly disconnected and result is stale session. When the AP is up and when the previous user tries to log in he/she gets login failed message because "Simultaneous-Use=1" is in effect while previous session is still ticking. I did try deleting all session of the user in radacct table, but the problem persist. The only solution is change the Simultaneous-Use to = 2, there be another solution. Saludos Cordiales, Sergio Diaz Infraestructura TI 01(55) 5265.0145 (044) 55.28.99.95.71 sdiazf@logitel.com.mx www.logitel.com.mx -----Mensaje original----- De: Freeradius-Users [mailto:freeradius-users-bounces+sdiazf=logitel.com.mx@lists.freeradius.org] En nombre de Alan DeKok Enviado el: miércoles, 2 de septiembre de 2015 11:56 a. m. Para: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Asunto: Re: stale session On Sep 2, 2015, at 12:34 PM, Sergio Diaz <sdiazf@logitel.com.mx> wrote:
If i delete all session of the user in radacct table, the problem persist .
What problem? You haven't said.
I'll need delete the old sessions in other table?
I have no idea what "other" table you're using. It's your database. You should know how it works. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Sep 2, 2015, at 1:47 PM, Sergio Diaz <sdiazf@logitel.com.mx> wrote:
My problem is: when the AP goes down or the user lost connection (due to various reasons). I observed that user is not properly disconnected and result is stale session. When the AP is up and when the previous user tries to log in he/she gets login failed message because "Simultaneous-Use=1" is in effect while previous session is still ticking.
Then your access point is broken. Throw it in the garbage, and buy one that works. Alan DeKok.
participants (3)
-
Alan DeKok -
Sergio Diaz -
Timmy