It's a modified version of rlm_counter.
New features:
1) Per realm or per nas-identifier different counters with possibility of set reply and check item values.
Logical behavior is (per realm counter example)
- if the user "has" a realm and this realm is present in the configuration file, then it returns check and reply values in the config file.
- else -> normal behavior of freeradius.
2) Avoid the gdbm database reset after a freeradius restart using the configuration file.
Pay attention please: rlm_counter needs the "daily" directive in the authorize and accounting sections!
In the repository there is a file named counter that contains an example for a configuration file. Use this in mods-available/counter and create a symbolic link in mods-enabled/
Thanks,
MM