FreeRADIUS reset counter(s) with cron
-
Hi,
I have traffic quota limiting enabled as per:
https://doc.pfsense.org/index.php/Using_Captive_Portal_with_FreeRADIUS
I have enabled to cronjob to delete the used-octets files in:
/var/log/radacct/datacounter/monthly/
/var/log/radacct/datacounter/daily/
/var/log/radacct/datacounter/weekly/
/var/log/radacct/datacounter/forever/The problem is that the used-octets files are re-generated after deletion with the same traffic amount in them.
I have deleted them manually, but at the next auth (every minute) they are regenerated with the current traffic amount, so
the user quotas doesn't work.Any solution to this? The values has to be stored somewhere else since they are re-written into the same files for the different users.
Any tips would be appreciated :-)
Running version 2.2 (cannot update, so need to fix this in the running version).
Thanks.