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

Captive Portal Free Wifi with Hard Timeout & Vouchers

Scheduled Pinned Locked Moved Captive Portal
2 Posts 2 Posters 473 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.
  • Z
    ZuZu 0
    last edited by Oct 30, 2021, 6:44 AM

    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 :.

    G 1 Reply Last reply Nov 1, 2021, 9:30 AM Reply Quote 0
    • G
      Gertjan @ZuZu 0
      last edited by Nov 1, 2021, 9:30 AM

      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.
      Edit : and where are the logs ??

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received