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

    Captive Portal not redirecting on android

    Captive Portal
    3
    8
    3.4k
    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.
    • ?
      A Former User
      last edited by

      Hi everyone, I have been trying to setup Captive Portal on our site, trying to get it so that

      1. People choose Guest WIFI Welcome SSID.
      2. Input password
      3. (then they see the CP page) Press login
      4. Redirect them to a mail chimp page to try gather email addresses. "After authentication Redirection URL"

      iOS and windows seem to forward Ok to the URL, but android just says connected and doesn't forward people.

      Has anyone found a way around this problem? All I need is a place to gather peoples email addresses! Even if they aren't required to put in the email I can make it look like they need too (simple form)

      Anyone else found a way around this? I have pfSense and UNIFI UAP-AC's. The built in Unifi CP does the same thing and doesn't work with android.

      pfSense 2.4.5

      GertjanG E 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @A Former User
        last edited by

        @pcjauto said in Captive Portal not redirecting on android:

        Redirect them to a ...

        I've been using this for many years :

        53119198-1819-4dc0-b4dc-0f318ef6a278-image.png

        @pcjauto said in Captive Portal not redirecting on android:

        mail chimp page to try gather email addresses. "After authentication Redirection URL"

        That won't work, as people don't want to do so.
        They visit an 'captive portal' or 'untrusted network'. IMHO : You shouldn't ask for private info, even an email address. People will see the question, and go away.

        @pcjauto said in Captive Portal not redirecting on android:

        Has anyone found a way around this problem?

        Just checked with an S10 : works fine. What problem ?
        ( ask people to keep their phones updated ? )

        This :

        @pcjauto said in Captive Portal not redirecting on android:

        pfSense 2.4.5

        is a problem. I advise you to upgrade asap. 2.5.2 is rock solid.

        @pcjauto said in Captive Portal not redirecting on android:

        Input password

        The SSID password ? Typically, on a public captive portal their is no 'Wifi' encryption.
        Main advantage : no password needed.

        All mail/web/whatever traffic is already encrypted by the client's device, so no need to stack up two levels of encryption.
        You could even use https login instead of http login for the captive portal as most browser warn before a http page is used.

        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
        • ?
          A Former User @Gertjan
          last edited by

          Thankyou for the detailed reply!

          @gertjan said in Captive Portal not redirecting on android:

          @pcjauto said in Captive Portal not redirecting on android:

          Redirect them to a ...

          I've been using this for many years :

          53119198-1819-4dc0-b4dc-0f318ef6a278-image.png

          Have you checked to see if that actually works? It wouldn't cause issues because they will just go to the URL they originally tried to (like what's happening to me) if that didn't work. To test that you could change that google URL to a different site and test on an Android to see if they are redirected that that other site (like duckduckgo or something.)
          Mine just lets Android users connect and start browsing, iOS and windows users do get forwarded to the MailChimp URL.

          @pcjauto said in Captive Portal not redirecting on android:

          mail chimp page to try gather email addresses. "After authentication Redirection URL"

          That won't work, as people don't want to do so.
          They visit an 'captive portal' or 'untrusted network'. IMHO : You shouldn't ask for private info, even an email address. People will see the question, and go away.

          This is for a car dealership, and its for their clients to gain WIFI access, if they had any questions they could just talk to someone. We don't feel like this will deter people, but will keep an eye on it. That being said, its specifically the Android issue where its not forwarding to the URL

          @pcjauto said in Captive Portal not redirecting on android:

          Has anyone found a way around this problem?

          Just checked with an S10 : works fine. What problem ?
          ( ask people to keep their phones updated ? )

          I'm not sure how you tested it, but if your redirecting to google.com, you may not notice if its working because its probably also your homepage in your browser. You can test it by changing the URL, or by opening your browser after connection and see if you are able to keep browsing what you were, or if as soon as you connect and login to the portal, does your browser automatically open and bring you to google.com?

          This :

          @pcjauto said in Captive Portal not redirecting on android:

          pfSense 2.4.5

          is a problem. I advise you to upgrade asap. 2.5.2 is rock solid.

          Definitely in the works, we have about 12 remote sites so haven't committed just yet.

          @pcjauto said in Captive Portal not redirecting on android:

          Input password

          The SSID password ? Typically, on a public captive portal their is no 'Wifi' encryption.
          Main advantage : no password needed.

          All mail/web/whatever traffic is already encrypted by the client's device, so no need to stack up two levels of encryption.
          You could even use https login instead of http login for the captive portal as most browser warn before a http page is used.

          We want a passphrase because this isn't really free public Wi-Fi, so much as Wi-Fi for the dealerships guests.

          Thank you!

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @A Former User
            last edited by

            @pcjauto said in Captive Portal not redirecting on android:

            if its working because its probably also your homepage in your browser. You can test it by changing the URL, or by opening your browser after connection and see if you are able to keep browsing what you were, or if as soon as you connect and login to the portal, does your browser automatically open and bring you to google.com?

            Very true. But there is a but ;)
            All around me, people only read and speak French. Because I'm in France.
            So Google.com is a no go - most devices go to google.fr or other bing serach engins.

            @pcjauto said in Captive Portal not redirecting on android:

            pfSense 2.4.5

            Wasn't there a 'redirect bug' way back, when 2.4.5 was used ?
            I remember I had to patch something ...
            2.5.2 works 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
            • ?
              A Former User @Gertjan
              last edited by

              @gertjan Thank you, that's good info, ill see what I can get figured out. I really do need to upgrade all my routers, definitely worth a try to see if it fixes it.

              1 Reply Last reply Reply Quote 0
              • E
                EduMendel @A Former User
                last edited by

                Hi @pcjauto

                I have the same problem. On ios and windows is 100%, but on android not open de redirection URL after the authentication. Did you find the solution?

                Thank

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

                  @edumendel said in Captive Portal not redirecting on android:

                  but on android not open de redirection URL after the authentication. Did you find the solution?

                  There are thousands of 'android' versions. "And they are not all equal".
                  I've seen several versions working just fine.
                  I had a new 'Samsung' phone in my hand yesterday, had to turn on the 'Wifi' and connect. What looks like a pop-up popped up, and ticking that opened the portal login page. After entering credentials, I was redirected to my redirect page ( https://www.google.com ).
                  But, true, that was an unknown android version, didn't even look up which one. As the phone was brand new, it was probably not up to date anyway.

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

                  E 1 Reply Last reply Reply Quote 0
                  • E
                    EduMendel @Gertjan
                    last edited by

                    @gertjan said in Captive Portal not redirecting on android:

                    There are thousands of 'android' versions. "And they are not all equal".
                    I've seen several versions working just fine.
                    I had a new 'Samsung' phone in my hand yesterday, had to turn on the 'Wifi' and connect. What looks like a pop-up popped up, and ticking that opened the portal login page. After entering credentials, I was redirected to my redirect page ( https://www.google.com ).
                    But, true, that was an unknown android version, didn't even look up which one. As the phone was brand new, it was probably not up to date anyway.

                    Hi

                    Yes, I understand that there are several versions of Android and that makes things difficult. I'd like to create a wifi network for my company's employees to use during their break, and as soon as they authenticate to the Captivel Portal, it automatically redirects to a landing page with company news. I know it's not a pfsense specific problem, because in Unifi's Captive Portal the redirect doesn't work on Android devices either, only on Windows and IOS. But, we keep on fighting. Thank you very much.

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