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

    Captive Portal Mobile Devices redirect

    Scheduled Pinned Locked Moved Captive Portal
    10 Posts 3 Posters 2.8k 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.
    • S
      samham
      last edited by

      I am looking for a how to docs on redirecting mobile devices after discovering the AP to the CP authentication page.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Completely up to the client device. Your job is to make sure they have access to DNS before going through the portal.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • S
          samham
          last edited by

          what forces the web browser on the mobile device to pop up?

          1 Reply Last reply Reply Quote 0
          • M
            muswellhillbilly
            last edited by

            I have plenty of clients using mobile devices of various kinds and as far as I know nobody has had any issues that haven't been initially caused by wrongly set DNS at the client end or over-zealous security settings, again on the client.

            Not sure what you mean by "what causes the web browser on the mobile device to pop up?" The client just tries browsing to any external site and the system automatically redirects to the login page for the CP.

            1 Reply Last reply Reply Quote 0
            • S
              samham
              last edited by

              I'm looking for ways to force the browser to popup as soon as the client connects to the AP.

              1 Reply Last reply Reply Quote 0
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                You can't force the client to do anything. Their behavior is completely up to them. Several threads here already on the subject. Try a search.

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • S
                  samham
                  last edited by

                  actually there is chatter about how to use captiveportal-mobile_detect.php but nothing specific for novice user

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    This is an advanced topic, not a novice one. You cannot force the client to do anything. The client uses whatever method it wants to try to determine if a portal is present then performs whatever actions it wants according to the results of those tests.

                    Like I said, all you can do is make sure your portal is functioning and the client has good access to global DNS resolution before punching through the portal. Everything else is up to the client.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • S
                      samham
                      last edited by

                      take a look https://github.com/jjamor/pfsense-cpsamplepages/blob/master/CORP/captiveportal-mobile_detect.php

                      1 Reply Last reply Reply Quote 0
                      • DerelictD
                        Derelict LAYER 8 Netgate
                        last edited by

                        Why should I take a look I know how it works.

                        NO PHP WILL BE EXECUTED ON THE SERVER until the client makes an http request. Whatever is in that php script it is completely up to the client what is done with it.

                        What is so hard to understand? I'm out.

                        Chattanooga, Tennessee, USA
                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

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