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

    Upgrade from 2.3.x to 2.4.4, captive portal not working

    Scheduled Pinned Locked Moved Captive Portal
    8 Posts 5 Posters 1.5k 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.
    • R
      rdugaue
      last edited by rdugaue

      After updating my sg-1000 captive portal is not working. I've removed and re-added the captive portal on the interface, but no redirects to the login page happen. If I disable cp, I have internet again. Enable, surf to a page, no re-direct to login portal. There's nothing in cp logs that even an attempt was made. And logging all traffic on the interface also shows no traffic. Just to be sure I've also switch authentication to local (was using remote radius auth), no luck. But radius auth works, as I can test that and get back a login okay. So not sure where to start, it was working with 2.3.x before updating.

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

        Hi,

        Without knowing anything about your setup, i'll list some basic things to check.

        https://www.netgate.com/docs/pfsense/captiveportal/captive-portal.html
        This one https://www.netgate.com/docs/pfsense/captiveportal/captive-portal-troubleshooting.html !! as stated, most problems are DNS related.

        Take a tour here https://www.youtube.com/watch?v=qb5TDpihnq4&t=103s

        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
        • K
          kengo
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • S
            seitle
            last edited by

            I think i have the same problem and it could be a DNS one.

            If i open for example 10.0.1.1 i got redirected to the captive portal login. With, for example, google.com it don't happen.

            I am using DNS resolver, DNS Query Forwarding unchecked. Also "DNS Server Override" in general settings is unchecked.

            What could the problem be?

            GertjanG F 2 Replies Last reply Reply Quote 0
            • GertjanG
              Gertjan @seitle
              last edited by Gertjan

              @seitle said in Upgrade from 2.3.x to 2.4.4, captive portal not working:

              If i open for example 10.0.1.1 i got redirected to the captive portal login.

              Exact.
              The captive portal is an ordinary web server, and will reply as any other web server with a "login page".

              With, for example, google.com it don't happen.

              google.com will get resolved. Then the browser will throw out a request using this IP, and probably, because of web browse history, it will use https (port 443) - which, of course, can't be redirected (you can't break ssl).
              http://www.google.com will work if the browser - or the certificate Google is using) doesn't "force" https usage.
              http://www.google.com:80 should work right away (but is actually rarely needed, except for cripple browsers/devices).

              Btw : as soon as a network connection is established - DHCP works - your device obtains an IP and gateway - and the OS (any OS these days) will "test" if it is behind a portal. If so, it will notify you popping a message (Windows) or opening a navigator that opens the portal login page (Mac OS, iOS). Android's : I don't know how they work, but when I see the big number of devices that connect to "my" portal, I guess they detect and work quiet well with the pfSense portal.

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

              S 1 Reply Last reply Reply Quote 0
              • F
                free4 Rebel Alliance @seitle
                last edited by free4

                @seitle said in Upgrade from 2.3.x to 2.4.4, captive portal not working:

                I think i have the same problem and it could be a DNS one.

                What could the problem be?

                one of the potential problems could come from your own computer

                is your computer configured to retrieve DNS servers from DHCP? or did you force your computer to use 8.8.8.8 / 1.1.1.1 like many computer-fanboys?

                S 1 Reply Last reply Reply Quote 0
                • S
                  seitle @Gertjan
                  last edited by

                  @gertjan said in Upgrade from 2.3.x to 2.4.4, captive portal not working:

                  google.com will get resolved. Then the browser will throw out a request using this IP, and probably, because of web browse history, it will use https (port 443) - which, of course, can't be redirected (you can't break ssl).
                  http://www.google.com will work if the browser - or the certificate Google is using) doesn't "force" https usage.
                  http://www.google.com:80 should work right away (but is actually rarely needed, except for cripple browsers/devices).

                  Btw : as soon as a network connection is established - DHCP works - your device obtains an IP and gateway - and the OS (any OS these days) will "test" if it is behind a portal. If so, it will notify you popping a message (Windows) or opening a navigator that opens the portal login page (Mac OS, iOS). Android's : I don't know how they work, but when I see the big number of devices that connect to "my" portal, I guess they detect and work quiet well with the pfSense portal.

                  Because i forgot to reply to your posting. Thank your for explanation. That was the solution. A redirect was not possible, because google.com won't accept http because of HSTS (?)

                  1 Reply Last reply Reply Quote 0
                  • S
                    seitle @free4
                    last edited by

                    @free4 said in Upgrade from 2.3.x to 2.4.4, captive portal not working:

                    is your computer configured to retrieve DNS servers from DHCP? or did you force your computer to use 8.8.8.8 / 1.1.1.1 like many computer-fanboys?

                    the computer usually uses the pfsense as the dns server (dns resolver). Because of the restriction, not to fall back from https to http of visited sites a redirect was not possible. After someone connects to the network a notification is shown in the browser, to log somebody in. If someone closes this, he wouldn't notice that there is a portal to log in....

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