Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    FreeRADIUS reset counter(s) with cron

    Scheduled Pinned Locked Moved Captive Portal
    1 Posts 1 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jarlel
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.