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

    Traffic Quota reset period (Caravan park use)

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 330 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.
    • T
      timboau 0
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        @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 counter

        Daily traffic quotas can be reset 'every day' :

        24409d3c-c3a3-4145-912c-81d6067f78c1-image.png

        I have a cron task that reset the daily 'used' counter every day at noon :

        8ce20f01-a374-4ca9-97cd-86af32cd6180-image.png

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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