Traffic Quota reset period (Caravan park use)
-
Im wanting to setup a captive portal for a Caravan park.
Each 'site/user' can login using their site number and a password
If the visitors have extra devices they can also login using the same credentials and I believe the bandwidth is total across all users using that login. That's terrific! (Per user concurrent active sessions would be nice!)When they checkout and a new visitor comes to the park how is the Traffic Quota calculated? Is it from the first login on the account until the last one leaves the wifi (then the idle timeout starts?)
Is there any method to allow a Quota per user per day - say resetting at checkout time of Midday?
Captive portal seems to be a really nice solution - I'm surprised I haven't used it previously!
-
@timboau-0 said in Traffic Quota reset period (Caravan park use):
Each 'site/user' can login using their site number and a password
Probably better to use a unique number like a reservation number.
If you use a "site" (place) then you have to deal with overlapping between clients.Freeradius makes it possible to put a "Expiration Date" on every created user so you don't have logout ueser yourself. You can clean up the 'users' list at the end of the season, and enter new ones when reservations come in.
A reservation number would be unique, and will be invalidated when the client leaves, as arrive and leave dates are known upfront.
This will also take care of traffic quota per user : everybody uses it's own traffic quota counterDaily traffic quotas can be reset 'every day' :
I have a cron task that reset the daily 'used' counter every day at noon :