Hotspot and Freeradius 2.01 Radius Server not responding

I am testing freeradius 2.01 with hotspot for prepaid. Assigned 30min ticket (attribute :Max-All-Session :=1800), this works, user is terminated after 30 min usage.

The problem is;
After expiry of usage time I received “Radius Server is not responding” in Mikrotik hotspot login page

Test with natradping and radiusd -X debug ,msg received was correct.
Reply-Message = “Your maximum never usage time has been reached”

So it was not radius-time out, radius did response.

Any insight/help appreciated.

Freeradius takes a long time to reply when it has to do some counts, so you probably have exceeded the timeout default of your ROS; increase the radius timeout default in /radius.
Also I modified module rlm_sqlcounter, to have a better message sent back to the user.
Please I need also a help from you: what program do you use to make tickets, maybe phpmyprepaid?
I know that to disconnect a user that has reached its maximum time I shoul use RADCLIENT with some attributes; ok it works fine if I manually start it, but how to automatically lunch it with freeradius? In other words: how freeradius detects a user that has to be disconnected and disconnect him?
Many thanks
Alessandro

Wonderfull,
thanks Alessandro, it works.

Yes, I’m “playing” with phpmyprepaid.

phpmyprepaid insert this 2 attribute in radcheck table

Max-All-Session := 1800 ( that is in sec = 30min)
Expiration := 01 Aug 2008 00:00:00

not really sure what you meant by

I know that to disconnect a user that has reached its maximum time I shoul use RADCLIENT with some attributes; ok it works fine if I manually start it, but how to automatically lunch it with freeradius? In other words: how freeradius detects a user that has to be disconnected and disconnect him?

Mikrotik hotspot did disconnect the user after usage time exhausted, i.e the login page came back .