using SQL, where is Session-Timeout updated?

Ivan Kalik tnt at kalik.net
Fri Sep 18 11:51:42 CEST 2009


>> You need sqlcounter (counter.conf) for that.
>
> Found. but no UPDATE query in it.

Oddly enough, counter doesn't update anything - it COUNTS. It counts how
much time has been used in current period (on previous logins) and deducts
that from the limit. You can choose the reset period (daily counter resets
every day, weekly every week etc.) and the limit. You set the limit by
placing attribute configured as check_name in radcheck table with the
value of max allowed time in seconds.

Example, for daily limit of 1 hour you would enter:

username     Max-Daily-Session     :=     3600

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list