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

    will not appear the sign-in webpage on IOS

    Scheduled Pinned Locked Moved Captive Portal
    6 Posts 2 Posters 1.3k 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.
    • J
      jenskiebee
      last edited by

      when i upload the customize web portal..
      will not appear web sign-in page on the IOS device only,
      but on the android and windows its ok.

      and when i back to default portal,, webpage is showing up on IOS device

      help me...any suggestions thank you

      this my sample page.
      975604c2-6c12-4275-a241-1155f60a9953-image.png

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

        @jenskiebee

        You should have a look at what the html code was that the browser loads.
        With Firefox, you hit Ctrl-Shift-i (i as inspection).
        The the text or URL the browser uses.

        As the page shows in one device/browser, and not another, I guess it's a local cache issue.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        J 1 Reply Last reply Reply Quote 1
        • J
          jenskiebee @Gertjan
          last edited by

          @gertjan

          I tried this html but it still didn't show up the authentication webpage to IOS device..

          this is the address when pop up on my laptop--> google chrome or edge
          http://192.168.100.1:8002/index.php?zone=wifi_creation&redirect................

          c4831871-6ed8-4aa8-9c68-d8c04b331c10-image.png

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

            @jenskiebee said in will not appear the sign-in webpage on IOS:

            I tried this html but it still didn't show up the authentication webpage to IOS device..

            When a wifi connections comes up, after obtain network IP/DNS info, the iOS will throws out a http (not https !!) request. This one :

            http://captive.apple.com/Fhotspot-detect.html

            If that request return a page containing "Success", iOS concludes there is no captive portal. So no other actions are needed.
            Note that the http request happens without user interaction, no browser is launched.

            If the return text wasn't the word "Success" but something else, or the request got redirected, a browser with GUI is opened, and the returned 'page' (html) is shown.
            Typically, this is out captive portal login page.

            I'm using several iOS devices myself on a pfSense captive portal : no issues at all for several years now.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            J 1 Reply Last reply Reply Quote 0
            • J
              jenskiebee @Gertjan
              last edited by

              @gertjan

              i have something expirence now.. when i connect to wifi i tried to browse manualy this site:

              http://captive.apple.com/

              its actually my captive portal appear in IOS..
              ITS WORKING.....

              a6986953-0e31-45d9-bb0e-68adc016f858-image.png

              but do you think we have any solution to automatic pop-up like in other platforms device...

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

                @jenskiebee said in will not appear the sign-in webpage on IOS:

                think

                I use the pfSense captive portal for a hotel.
                I do not instruct people - hotel clients -how to connect - I give very few information.
                I presume they all know that hotels have captive portals. That is, no one even knows its a captive portal. It's just a wifi network called "MyHotelWifi", so people connect (think about it : they are actually that stupid .... )

                I do not know what device they use, it could be the latest iPhone Pro 13, the green version, or some ancient Welcome device from Amazon. A PC with any OS, a tablet ? I don't care.
                All these devices, as they are all 'portal aware', do the same thing : upon connection to the portal network, mostly Wifi, but it works just fine with a wired connection, the device should use the very default DHCP negotiation.
                If the device is suing static IP settings, it's game over. The portal won't work, as does classic networking most probably (that is, it could work, but settings must be right).
                When the network layer is set up, the magic happens.
                This magic is part of the device, the OS used. A captive portal is not a pfSense thing, it's supported and handled by the device the client uses ( !! )

                After the DHCP sequence, you can see what the device (my iPhone) does :
                ( Status > System Logs > System > GUI Service )

                03-21-2022	08:50:51	Local5.Info	pfsense	1 2022-03-21T08:50:52.000000+01:00 pfsense.local.net nginx - - - 192.168.2.222 - - [21/Mar/2022:08:50:52 +0100] "GET /index.php?zone=cpzone1&redirurl=http%3A%2F%2Fcaptive.apple.com%2Fhotspot-detect.html HTTP/1.0" 200 1641 "-" "CaptiveNetworkSupport-428.0.0.0.1 wispr"
                

                You can see the encoded

                http://captive.apple.com/hotspot-detect.html
                

                because I'm using a captive portal, the http (port 80) traffic gets redirected the captive portal web server (nginx) of pfSense, which runs on port (my case) 8002.
                This will not return the expected word 'Success".
                This means user interaction is needed, as their might be a captive portal.
                No web browser was open at my iPhone, so the iPhone will launch a stripped down Safari instance, and repeats the URL.
                Now the login page shows on my screen, as by magic.

                Keep in mind : it is not the captive portal web server that pushes this info the the users device.
                It's just a classic http url that got redirected to another url.
                Because http accepts redirects, the OS follows the redirections, and shows the page.

                You know : this will not work with https requests, as your browser will refuse redirects to other urls (that is, you browser will redirect, and also retrieve a certificate. This certificate should contain the domain name of the url).

                I am using the https version of pfSense captive portal. This works because the initial http:// got redirected to a https:// page. This https:// is the local captive portal login page.
                After successful login, the pfsense captive portal takes the "&redirurl" argument, which should contain the original url, and redirect (again) to it. The portal firewall is now open for this device, the initially request page shows up.

                If the captive portal doesn't seem to work, look at troubleshooting Captive Portal.

                On the pfSense side, there is one thing that should work perfectly well. It's the same thing that most admins think they understand well. Its the same thing that they "break" : DNS.
                The default pfSense DNS settings will do just fine.

                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.