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

    Allow anonymous for a time period but only allow one session per day

    Captive Portal
    6
    17
    12.7k
    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
      mastermindpro
      last edited by

      Good idea too…  I'm hoping for one-click ease, though.  All the user should have to do is open a browser, try to go somewhere, get redirected to the splash, click accept, and arrive at their intended destination.  Something that can do that will aid my project greatly.

      1 Reply Last reply Reply Quote 0
      • P
        pcatiprodotnet
        last edited by

        We also really need this.  If you come up with a viable solution, or want someone to pitch in on a bounty, please let me know.

        • Pete
        • pc@ipro.net
        1 Reply Last reply Reply Quote 0
        • S
          sullrich
          last edited by

          This would be a one click solution.  The initial .htm captive portal page can meta-redirect and or javascript redirect as a backup to the .php page where the splash page/etc could be displayed.  Granted your talking about a custom php splash page at this point but it would work.

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

            I guess I don't have the technical wherewithall to pull this off by myself.  I'll have to rely on the bounty.

            1 Reply Last reply Reply Quote 0
            • J
              jeroen234
              last edited by

              i have bean modding the captive portal for guest use

              make a portal html file

              blabla bla
              
              

              copy the atached file to /usr/local/captiveportal/splash.php

              splash.php.txt

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

                Although I haven't tried this yet, the code looks like it's capable of doing what I need, or at least close to that.  A few questions:

                1. This has a dependence on radius, correct?
                2. I didn't spot in the code where someone could specify a time limit and keep that MAC address off the network after their time expired, did I miss it?
                3. The client db is a file on the local system, so this wouldn't be a good idea on a device that uses CF as it's storage media?
                1 Reply Last reply Reply Quote 0
                • J
                  jeroen234
                  last edited by

                  1. no it don't it needs the No authentication mode on the captive portal setup page
                  2. use the times on the captive portal setup page this will disconnect the guest when the time is gone
                    no support for no reconnect just guest mode
                  3. the file was from the normal captive portal
                    on embeded /var is on memory
                  1 Reply Last reply Reply Quote 0
                  • M
                    mastermindpro
                    last edited by

                    I've tried your add-ons, but I can still reconnect following a timeout.  Is there a something I can test to see what is or isn't happening?

                    1 Reply Last reply Reply Quote 0
                    • J
                      jeroen234
                      last edited by

                      there is no support for that

                      it works with code already in the portal
                      i yust removed the username and password check

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

                        I can do that with no modification to the existing code…why did you feel you needed to create a mod?

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