KB-9209020

Choose the right automatic reset period

Select a calendar or one-time reset policy and test boundary behavior against fresh authentication and accounting.

11 views

Pick the reset period that matches the service

Plans offers Never Reset (Prepaid / One-Time), Daily, Weekly (Monday), and Monthly (1st of Month). A calendar plan is not a rolling duration measured from when the identity signed up. Choose Never for a finite allowance that should remain depleted until an authorized manual reset, or choose a calendar period when the allowance should renew at the appropriate boundary.[1][4]

Make the renewal test observable

  1. Use a separate pilot plan in Plans. For a daily allowance, create lab-day-cycle, set a small positive Data Limit (MB), and choose Daily under Automatic Reset Period. Leave connection time unlimited if you only want to test data, and leave automatic disconnect off for this boundary test.[3][4]
  2. Assign the plan to one test identity, consume its allowance using controlled traffic, wait for accounting, and verify the identity is denied on a fresh attempt before the boundary. Record the accounting timestamp and plan display, and check the time basis used by the deployment rather than assuming it matches the browser clock.
  3. After the boundary, try a fresh authentication with the same identity. The referenced RADIUS policy checks the cycle baseline in its authentication path and uses database calendar functions; an idle plan display need not visibly reset at the instant the calendar changes.[2] Follow with another usage check to confirm new accounting is counted against the new baseline.

When the boundary result looks wrong

If renewal does not occur, reopen the plan and verify the actual saved period and the identity's assignment. Confirm a new request reached the correct RADIUS node and crossed the intended database calendar boundary. Do not expect a weekly plan to renew seven days after enrollment or a monthly plan to renew thirty days later. Consider other rejects separately; a refreshed allowance does not repair credentials or authorize another NAS.

Set test times that are easy to interpret and use the NAS and server timestamps when they disagree with the browser. Record when the renewal was observed, not just when you expected it. Do not change a shared plan's period or adjust the server clock to force a demonstration.

References

  1. RadiusStack Wiki: Usage Plans
  2. RadiusStack FreeRADIUS image: reply forwarding, limits, NAS check and TOTP
  3. RadiusStack Plans API: limits, usage and reset configuration
  4. RadiusStack Plans interface: fields and period options