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

    Did captive portal view button behavior change ?

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 2 Posters 863 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.
    • D
      deajan
      last edited by

      Hello,

      I'm using pfSense 2.3.4 (also tested with 2.3.3) and it seems that the captive portal doesn't work like before.
      I've created a test file containing a copy paste from the basic form:

      When viewing the page via the GUI view button, the link is https://192.168.10.254/services_captiveportal.php?zone=test&act=viewhtml
      Missing port 8002 in the URL too.
      Validating user and password redirects to https://192.168.10.254/$PORTAL_ACTION$ without evaluating $PORTAL_ACTION$

      Also, my php code from captive portal doesn't get executed anymore when using the view button.
      I've created a simple test file containing:

      
      echo "php";
      
      ?>
      
      html
      
      

      Uploading this as captive portal file and testing gives the following output

      
      html
      
      

      with the php code being presented in the source.

      Anything totally stupid I missed since some previous upgrades ? Seems to happen since pfSense 2.3.3+.

      Thanks.

      NetPOWER.fr - some opensource stuff for IT people

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        In the past it did connect you to the captive portal daemon directly.

        Looks like it changed with https://redmine.pfsense.org/issues/6391
        I'm not sure the change was the most effective way to fix that issue, however. Viewing the source of the page is less useful than connecting to the portal daemon directly, but both could be useful tasks. We may need to add another button so both ways can function.

        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          Opened https://redmine.pfsense.org/issues/7646 and just pushed a fix.

          Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • D
            deajan
            last edited by

            Wow, thanks for the quick reply and fix :)

            NetPOWER.fr - some opensource stuff for IT people

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