Hourly qouta problem
aland at deployingradius.com
Thu Sep 17 22:44:33 CEST 2015
On Sep 17, 2015, at 4:32 PM, kasra kazempour <kasra.kk at gmail.com> wrote:
> I am using freeradius 3.0.8 and i configured sql and sqlcounter with sqlite.
> I have counters for max_daily_session and max_session and working probably.
> I have a scenario to qouta work with hours.
> For example: i want to qouta only work from 8:00 to 16:00 or or qouta
> disable after 16:00!
You can make the calls to the sqlcounter module conditional on the current time. But I wouldn't recommend that, because the change from non-quota times to quota times will confuse the module. It's intended to apply quotas to all user activity.
The simplest thing is to write the SQL queries yourself.
More information about the Freeradius-Users