Community discussions

MUM Europe 2020
 
ccoldfire
newbie
Topic Author
Posts: 27
Joined: Fri Nov 12, 2010 8:09 am

kick user out after the time is up automatically ..please help

Fri Jan 22, 2016 6:27 pm

hi every one
am very newbie to mikrotik but i managed to create a hotspot successfully and everything is working just fine with the usermanager and radius and creating profiles ,but my only problem is that i can't make the user be logged off automatically after his time is up.what should i do??

thanks in advance
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4051
Joined: Wed May 11, 2011 6:08 pm

Re: kick user out after the time is up automatically ..please help

Fri Jan 22, 2016 9:22 pm

Hmmm - usually RADIUS should be sending a session timeout with the number of seconds until the account expires.
Make sure the system clock is correct on the UserMan and on the Mikrotik.

When we used FreeRADIUS, if we specified an expiration time on an account, and a max session time, then the server would send a session-limit of X seconds, where X was the lesser of those two values. (so if the account expires at midnight, and the current time is 23:57, then the session-limit would be 180sec)

Look in the Hotspot Active tab, and lok for the "Session Time Left" column. There should be a value there counting down to zero. If not, then UserMan isn't sending the value. Perhaps the local user profile's values are overriding the RADIUS value...
When given a spoon,
you should not cling to your fork.
The soup will get cold.
 
Sribala44ji
just joined
Posts: 3
Joined: Fri Jan 22, 2016 9:30 pm

Re: kick user out after the time is up automatically ..please help

Fri Jan 22, 2016 9:35 pm

can't able connect gigabit Poe came with Basebox 2 in RB2011UiAS-RM Gigabit port but ok with 100/10port

When connected to gigabit port in RB2011UiAS-RM poe power indicator starts blinking starts


Need solution asap
 
ccoldfire
newbie
Topic Author
Posts: 27
Joined: Fri Nov 12, 2010 8:09 am

Re: kick user out after the time is up automatically ..please help

Fri Jan 22, 2016 9:44 pm

Hmmm - usually RADIUS should be sending a session timeout with the number of seconds until the account expires.
Make sure the system clock is correct on the UserMan and on the Mikrotik.

When we used FreeRADIUS, if we specified an expiration time on an account, and a max session time, then the server would send a session-limit of X seconds, where X was the lesser of those two values. (so if the account expires at midnight, and the current time is 23:57, then the session-limit would be 180sec)

Look in the Hotspot Active tab, and lok for the "Session Time Left" column. There should be a value there counting down to zero. If not, then UserMan isn't sending the value. Perhaps the local user profile's values are overriding the RADIUS value...
Thank you for replying .. it turned out to be a very simple problem ,am sorry i made you write all these lines .
I misunderstood "validity" in the user manager, i thought it is the one who should kick the user out,after more digging i discovered the limitations.
Thanks again,my problem was solved
 
Greg28
just joined
Posts: 1
Joined: Thu Jul 21, 2016 11:52 pm

Re: kick user out after the time is up automatically ..please help

Mon Jul 25, 2016 12:36 am

Hmmm - usually RADIUS should be sending a session timeout with the number of seconds until the account expires.
Make sure the system clock is correct on the UserMan and on the Mikrotik.

When we used FreeRADIUS, if we specified an expiration time on an account, and a max session time, then the server would send a session-limit of X seconds, where X was the lesser of those two values. (so if the account expires at midnight, and the current time is 23:57, then the session-limit would be 180sec)

Look in the Hotspot Active tab, and lok for the "Session Time Left" column. There should be a value there counting down to zero. If not, then UserMan isn't sending the value. Perhaps the local user profile's values are overriding the RADIUS value...
Thanks for your response, it helped me to solve my problem. Thanks again, many hours saved :)
My website with all information about online games - http://royaal-casino.com

Who is online

Users browsing this forum: No registered users and 5 guests