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

    Captive portal : Expired accounts still working

    Scheduled Pinned Locked Moved Captive Portal
    9 Posts 4 Posters 1.1k 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.
    • M
      moelharrak
      last edited by

      Hi,
      The local created user/password stays working with the hotspot even after the account is expired .
      any Idea why ?

      F GertjanG 2 Replies Last reply Reply Quote 0
      • F
        free4 Rebel Alliance @moelharrak
        last edited by

        @moelharrak what pfSense version are you using?
        The dev, 2.5.0 version?

        or the prod (2.4.5 ?)

        1 Reply Last reply Reply Quote 0
        • M
          moelharrak
          last edited by

          I'm using the version 2.4.5

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

            @moelharrak said in Captive portal : Expired accounts still working:

            the account is expired

            You mean this one :

            82a839ba-fe2e-45c9-aac8-20e0a06a41b8-image.png

            I'm not using the pfSense local user manager myself, but I guess the access / no access is checked when you login. hen ok, your session is opened. Eventual soft and gard time outs will apply.

            Test this : use an account that will expire after 5 minutes.
            Use the account to login into the captive portal.
            Have it last for 10 minutes - the use account will be expired.
            No, using the GUI, throw the user of the portal.

            Use the same account to re login into the portal.
            It should not work any more.

            The pfSense local user manager works well when you visit the GUI : every page you visit needs authentication. You won't have to login again, because that what cookies are all about (which also have a session duration).

            "Vouchers" are the ones you're looking for if you want to control the max duration of the connection time.
            Or Freeradius .....

            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
            • M
              moelharrak
              last edited by

              I can't create user to expire after 5 min , I think I found where the issue come from, when I specify 02/03/2021 as the expiration date, means that the account will expire on 02/04/2021 , 03 is included.

              viktor_gV 1 Reply Last reply Reply Quote 0
              • viktor_gV
                viktor_g Netgate @moelharrak
                last edited by viktor_g

                @moelharrak using Local DB "expiration date" by Captive Portal is not realized,
                Please create a bugreport:
                https://docs.netgate.com/pfsense/en/latest/development/bug-reports.html

                F 1 Reply Last reply Reply Quote 0
                • F
                  free4 Rebel Alliance @viktor_g
                  last edited by

                  @viktor_g Actually, it is...but you have to enable "re-authenticate users every minute" (which is hidden when you use local authentication method)

                  viktor_gV 1 Reply Last reply Reply Quote 0
                  • viktor_gV
                    viktor_g Netgate @free4
                    last edited by

                    @free4 said in Captive portal : Expired accounts still working:

                    @viktor_g Actually, it is...but you have to enable "re-authenticate users every minute" (which is hidden when you use local authentication method)

                    hm, it's not hidden for local auth (tested on 2.5 and 2.4.5-p1)

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

                      @viktor_g
                      Hidden :

                      ea89bab9-43bd-4365-bada-dadbe16bca37-image.png

                      😊

                      ( disabling the captive portal all together will also hide the option ^^ / doesn't make sense neither )

                      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.