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

    Bug - 2.7.1 Unauthenticated Captive Portal - cant access portal after connecting - Redirects client to unreadable page with strange characters

    Captive Portal
    3
    6
    880
    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.
    • S
      sceptre357
      last edited by sceptre357

      Portal works fine but after devices are connected via unauthenticated access, they get redirected to back to the portal (like http://10.20.4.1:8002/index.php?zone=wifi) which displays some strange characters.

      18c1c666-c9af-4a26-89d2-08a1ffc9736f-image.png

      In the case of mobile phones, not so much of an issue because you only see this window for a brief moment before the portal window closes. But, in the case of PCs, the window with strange characters remains open.

      I can work around this issue by using the "After authentication Redirection URL" but still no devices can ever access the portal login via its address as long as they remain authenticated. By removing the portal connection, the device can then access the portal login page again.

      Other Notes:

      • Every browser and device all had the same behavior.
      • MAC passthrough devices are not affected.
      • seems to only effect unauthenticated access
      • Im using a custom portal login page but directly going to the URL of the portal from any device fails to work also.
      • I'm not able to remove my custom portal page. Unchecking the box doesnt take effect.
      • I'm not sure if this issue is present in 2.7.0
      S S 2 Replies Last reply Reply Quote 0
      • S
        sceptre357 @sceptre357
        last edited by sceptre357

        @sceptre357 i dont see this issue in version 2.5.2 but i do see it in 2.7.0

        1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @sceptre357
          last edited by

          @sceptre357 Looks like a binary file, and “PNG” seems like an image.

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

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

            @SteveITS said in Bug - 2.7.1 Unauthenticated Captive Portal - cant access portal after connecting - Redirects client to unreadable page with strange characters:

            “PNG” seems like an image.

            It is an image. The start of the file files shows a PNG header. a PNG file is of course a binary file.

            Do you use the default portal login page ?

            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
            • S
              sceptre357
              last edited by sceptre357

              This appears to be a bug when you set a logo for the portal and then afterwards enable custom portal login page.

              Normally, if you enable a custom portal login page, the option to set a custom logo is not displayed. However, if you do set a custom logo and then afterwards enable a custom portal login page, something strange happens a pfSense sends out the logo file in plain text.

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

                @sceptre357

                Yeah, that looks plausible.
                Something typical that wasn't tested like that.

                So : easy to remove the issue : switch "Use custom captive portal page" off.
                Save !!
                Now, remove everything under "Captive Portal Login Page", as it is visible now.
                Save !!
                Activate (check) "Use custom captive portal page", add the files, feautes and stuff you want.
                Save.
                Done.

                Some one should redmine this (no me, as I have to do the tests to chow case the issue, Ive no time right now 😊 ).

                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 1
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.