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

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

Scheduled Pinned Locked Moved Captive Portal
17 Posts 6 Posters 13.5k 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 Offline
    mastermindpro
    last edited by Sep 15, 2006, 10:53 PM

    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 Offline
      pcatiprodotnet
      last edited by Sep 16, 2006, 4:14 PM

      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 Offline
        sullrich
        last edited by Sep 16, 2006, 5:24 PM

        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 Offline
          mastermindpro
          last edited by Sep 17, 2006, 3:27 AM

          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 Offline
            jeroen234
            last edited by Sep 17, 2006, 11:32 AM

            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 Offline
              mastermindpro
              last edited by Sep 19, 2006, 5:13 AM

              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 Offline
                jeroen234
                last edited by Sep 24, 2006, 8:23 AM

                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 Offline
                  mastermindpro
                  last edited by Sep 26, 2006, 2:48 AM

                  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 Offline
                    jeroen234
                    last edited by Sep 26, 2006, 4:49 AM

                    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 Offline
                      mastermindpro
                      last edited by Sep 26, 2006, 4:40 PM

                      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
                      17 out of 17
                      • First post
                        17/17
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received