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

    Captive portal - dont disconect computer after voucher expire

    Scheduled Pinned Locked Moved Captive Portal
    7 Posts 6 Posters 2.2k 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.
    • R
      redpower
      last edited by

      After the voucher is end the computer who use it stay on internet. In Captive Portal status I see the voucher expired, but I also see the actuve user.

      1 Reply Last reply Reply Quote 0
      • V
        valshare
        last edited by

        hi redpower,

        create a cron job that starts all 10 minutes the /etc/rc.prunecaptiveportal script. That helped me. First try to reboot the system. I have had a same problem some time ago.

        1 Reply Last reply Reply Quote 0
        • Z
          zikmen
          last edited by

          Hello, i am new using pfsense and i am expirencing the exact same issue as "redpower"

          can you explain, or show me a link explaining how to create a cron job that starts all 10 minutes?

          Thanks!

          Thanks,
          Tommy

          1 Reply Last reply Reply Quote 0
          • O
            onlineph
            last edited by

            I suppose you are referring to the active/online users in the DHCP leases?

            If so,

            the DHCP lease list is not the definite determiner of the active user (who have a voucher already expired).

            or do you still see the same voucher as active user?

            1 Reply Last reply Reply Quote 0
            • Z
              zikmen
              last edited by

              I had to figure out a workaround to kick out expired users…

              Here's my case.

              i give users vouchers to access internet.

              Vouchers have let's say a time limit of 31 days.

              when the month is over, the voucher expires but the user did not get kicked out.

              the only way to prevent the user to access internet is to ask pfsense to kick the user out after let's say 6 hours of inactivity (when the user sleeps).

              that only works if the user disconnect the device from the netwrok during the night because as long as data is kept transfering to the network, the connection is kept up.

              I cannot use a force kick out after certain amout of time because during the whole month, if a user want to listen to web radio continously, i don't want anybody to be disconnected each x time.

              So far so good, this workaround works pretty fine since almost everybody sleeps someday longer than 6 hours.

              i'm using version 2.1.15, since i had noticed this bug one year ago, i upgraded pfsense to the actual version and i did'n perform any test to verify if the "kick out when voucher expire" bug is still there.

              Hope that helps.

              Zikmen

              Thanks,
              Tommy

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

                Maybe https://forum.pfsense.org/index.php?topic=85695.0

                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
                • C
                  Covax
                  last edited by

                  Solved my issue.

                  https://forum.pfsense.org/index.php?topic=85695.msg481877#msg481877

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