Rick,
You'll want to use the rlm_sqlcounter module. You can set a Max-All-Session = 36000 to limit a user to 10 hours of total access for example. FreeRadius will calculate how much time was used and set the Session-Timeout attribute automatically.
Hope that helps, Keith Yoder
Rick Smith escreveu:
OK, I have several Mikrotik based hotspots out there. They auth users via RADIUS. I'm now running FreeRadius 1.0.0.
I right now can auth users on them via FreeRadius - works great - and I'm using MySQL which is even better.
Only problem is, right now they all get non-expiring sessions when they paid for half-hour increments :)
Mikrotik expects "Session-Timeout" back as a clue on when to kick the user to pay for more time.
How do I tell FreeRadius that "User x" bought 15 minutes on a hotspot, and tell Mikrotik to kick him when his time's up ?
I understand about putting the Session-Timeout value in the radcheck table - that works. Just need to figure out how to update that Session-Timeout value every time the user logs in and out ....
Thanks,
Rick
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

