I’m using a hotspot configuration with freeradius authentication. All hotspot users are disconnected with 10 minutes. There is a Session Time Left on Active connection of all users with 10 minutes as default value.
How do I change this to 1 hour or more? I have no found fields to change this.
You can check “/ip hotspot user profile”. Look for a session-timeout setting.
If it isn’t there, maybe it is a RADIUS challenge. What is FreeRADIUS returning to your router? Maybe if you watched that, you could figure it out. Enable verbose logging with this:
Fix if I wrong, but session-timeout is different from session-time-left…
My session-timeout value is 5 minutes and this session-time-left is 10 minutes. I just want to change this session-time-left.
Add the debug to the radius logging and do a login, then post that part of the log.
I do not use Session-Timeout. I use WISPr-Session-Terminate-Time to logout customers after their purchased time expires. It will show session time left on the status page. Is that the session time left you are talking about?
But without seeing that RADIUS Access-Accept section of your log, I am blind. My crystal ball is still in the shop waiting for parts.
I really found the problem and you are correct.
FreeRadius send the Session-Timeout and Mikrotik recognize that as Session-Time-Left.
I just remove the Session-Timeout Parameter and ‘pimba’. Working. No more disconnections.
The problem now will be ghost connections, but I think that Idle-Timeout for 5 minutes will disconnect ghost users.
WISPr-Session-Terminate-Time is a date/time expiration rather than a specific length. I sell pay-per-day wifi, so when the customer purchases 2 days, I set the WISPr-Session-Terminate-Time to today’s date + 2 days. They can login and stay logged in until then. After that, they must purchase more days.
It is in the format yyyy-mm-ddThh:mm:ss. Like today at noon is 2013-07-26T12:00:00. Two days of time purchased would expire on 2013-07-28T12:00:00.