Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Captive Portal Free Wifi with Hard Timeout & Vouchers

    Scheduled Pinned Locked Moved Captive Portal
    2 Posts 2 Posters 945 Views 2 Watching
    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.
    • Z
      ZuZu 0
      last edited by

      Good morning!

      after doing alot of research and scrambling through many posts:

      What I need:

      • 1 SSID with 1x CP
      • Guests can connect to the Wi-Fi and surf for free (1 Token, 12 Hours (Hard Timeout), this token gets reset every 21 Days.
      • If the guests want to continue surfing the web, they can buy a voucher, this voucher has a duration of ~20 days.

      Problem:

      • After doing a lot of testing, and annoying many people, everything works up until the Timeout, no matter if you have a voucher or not, you will be disconnected, which means, everyone who buys the Wi-Fi gets to type in the code every 12 hours.

      How can I fix this, is there any way in the captiveportal.inc or maybe a script to disconnect unauth. users after 12 Hours and so on?

      I would really be grateful for any help. Boss I think wants my head at the moment :.

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

        What I understood :
        Initially, everybody can obtain a free voucher, good for 12 hours.

        @zuzu-0 said in Captive Portal Free Wifi with Hard Timeout & Vouchers:

        no matter if you have a voucher or not

        What do you mean by "voucher or not' ? People can connect without a voucher ?

        The duration of a voucher can't be changed after creation.
        When users switch from the "12 hours" to a "21 days", they switch vouchers, right ?

        It is - in theory - possible to reset the "moment of first usage" of a voucher but this needs coding.

        @zuzu-0 said in Captive Portal Free Wifi with Hard Timeout & Vouchers:

        everyone who buys the Wi-Fi gets to type in the code every 12 hours

        The "hard time" out will throw out any connection. Users that use vouchers that are still valid can / have to reconnect, that's correct. Probably not convenient for you, I understand.
        You've tried a "hard time" out of "20 days" ?

        No "help me" PM's please. Use the forum, the community will thank you.

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy