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

    Captive Portal with I agree button - No authorization

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 4 Posters 2.0k 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.
    • P Offline
      PSBITGuy
      last edited by

      pfSense 2.3

      Trouble getting this to work.

      I'm an not using any authentication.
      Is this supported? All I want to do is have user click "I agree" Button and be redirected to a google.com or wherever with web access.
      Once the button is submitted, it doesn't do anything…

      Anyone else doing this? Sample code?

      Thanks

      1 Reply Last reply Reply Quote 0
      • D Offline
        dillstone
        last edited by

        I think if you just click the radio button for "No Authentication under your Captive Portal settings, it will work. I think the sample page with the username and password are still visible but the 'Continue' button will just click through. I'm not much of a programmer but I would think you could just remove the username and password fields from the code and it would work. Hope this helps a bit.

        1 Reply Last reply Reply Quote 0
        • W Offline
          winger46146
          last edited by

          Correct, you can remove the user name and password stuff from the sample code and leave continue. I have it setup at a hotel with the TOS listed and saying by clicking continue you agree to the TOS.

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

            @PSBITGuy:

            pfSense 2.3
            Trouble getting this to work.
            I'm an not using any authentication.
            Is this supported? All I want to do is have user click "I agree" Button and be redirected to a google.com or wherever with web access.
            Once the button is submitted, it doesn't do anything…
            Anyone else doing this? Sample code?

            I guess it's easy to do so.

            Create a Local user and password on pfSense.
            Create a hand made captive portal html file (using the example as a start).
            But :
            Hard code the user name and password into this html file. Using the html magic to make these two items 'hidden'.
            Code a simple OK button.
            Done ;)

            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.