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

    Pfsense, No internet when it is said "You are connected".

    Scheduled Pinned Locked Moved Captive Portal
    168 Posts 34 Posters 54.1k 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.
    • DerelictD
      Derelict LAYER 8 Netgate
      last edited by Derelict

      The point is anyone running 100 sites should be able to provide actual troubleshooting information instead of just saying "mine doesn't work either."

      It takes time to build out a duplicate network that might (might) imitate the issue you are having.

      If you are experiencing the problem then you already have an environment (or 100 of them, apparently) Where is the break down? Is it DNS? DHCP? Is it ipfw? Is it pf? does the captive portal entry still exist? Is the IP address/MAC address pair changing from the pair that was logged in? Anyone running 100 captive portals ought to know exactly what the pieces are necessary for the user experience. Which one is breaking?

      Lots of possibilities there. At this point what is wrong is a mystery for lack of specific troubleshooting information provided.

      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
      • M
        MTNet
        last edited by

        Did you read this forum? If you are familiar with these at all you would have most of the questions you just asked answered.

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

          1. we have over 100 so it’s not isolated
            2 they stopped working with a recent update.
            3 you’re getting dhcp because you are getting redirected to the page that says your connected
            4 if it’s the first time logging in you connect fine. Not dhcp/ipfw/dns
            5 users are reporting that downgrading fixed their issue.

          Seems like a ton of technical information right there to me.

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

            Still nothing actionable. What did you contribute to a better understanding of the issue?

            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
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @MTNet
              last edited by

              @MTNet said in Pfsense, No internet when it is said "You are connected".:

              Seems like a ton of technical information right there to me.

              Actually ZERO of it!!

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

                Well, we're talking about the "You are connected" bug, so, the why and what is known for months now.
                There was a solution, actually two solutions available as patches, one was abandoned and the remaining one isn't compatible with 2.4.4-p3 at the moment.
                https://github.com/pfsense/pfsense/pull/4042 - see the bottom.

                A initial work around works well, though :
                Do not edit portal settings when users are connected.
                Or
                If you have to edit portal settings , just hit this button after the edit :
                bf9b44ab-8c15-4ee9-88ca-d7bbf111d940-image.png

                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
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  That wouldn't be fixed by downgrading pfsense.. According to the redmine all version are affected by this bug.

                  So he is saying he is editing the CP settings at 100 sites? To cause this?

                  There is zero "technical" information provided by him..

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Mmm, editing the captive portal at every site seem unlikely at best.

                    If that is the case though a better post would have been 'We are seeing the same symptoms described here: https://redmine.pfsense.org/issues/8616'.

                    You say you have tried 'all of the above', does that mean you tried that patch and it didn't work for you?

                    Steve

                    GertjanG 1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by johnpoz

                      ^ exactly zero useful info..

                      If you read his first post from another thread he is running "2.3.4 p1" and can not update, etc..

                      So he has 100 sites all running 2.3.4 - WTF???

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

                        @stephenw10 said in Pfsense, No internet when it is said "You are connected".:

                        you tried that patch and it didn't work for you?

                        I used one of the patches, the now retired version of @free4, on 2.4.4-p2.
                        That solved the issue that wasn't really an issue for me. I stopped editing the captive portal config years ago.

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

                        M 1 Reply Last reply Reply Quote 1
                        • M
                          MTNet
                          last edited by MTNet

                          That’s fine then. If you are from Netgate you know who we are and we are not lying about the number of units. If you would like to ASK questions that would help solve this feel free. I’m not going to argue with if enough information was provided.

                          As said the only difference is updating. And they are updated to the latest.

                          We are not editing CP.

                          1 Reply Last reply Reply Quote 0
                          • M
                            MTNet @Gertjan
                            last edited by

                            @Gertjan that helped initially then we had users report it again.

                            1 Reply Last reply Reply Quote 0
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator
                              last edited by johnpoz

                              My point was not that you were lying about the number of units.. Not trying to argue with you... My point is that you have provided ZERO info in trying to help you that is worth anything..

                              So you updated all of your 2.3.4p1 boxes to 2.4.4p3 and now they have a connected but no internet problem... And you are not editing any captive portal settings when this happens?

                              And then you roll back to what 2.4.4p1? And your saying you have no issues? Or you rolling them back to 2.3.4?

                              If your not editing the captive portal then your issue is not related to the current redmine issue being discussed..

                              I find it difficult to comprehend that someone that has 100 some deployments has no clue how too provide actual useful info the problem they are experiencing.

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

                                Your first post said you called BS. Sorry but that’s not how we prefer to operate. It puts people that could help in a defensive position and that doesn’t seem to be a good spot to help.

                                You are still insulting us. Have a good day.

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  @MTNet said in Pfsense, No internet when it is said "You are connected".:

                                  If you are from Netgate you know who we are and we are not lying about the number of units.

                                  Indeed I do and you are not.

                                  So you are seeing something slightly different to what others here have reported though it seems likely to be related.

                                  It's the first time I'm been made aware that this is affecting users when the captive portal has not been changed and re-saved.

                                  Just to be clear do you know what version you first saw this on? It looks like the re-saving issue appeared in 2.4.4. It would not surprise me to find whatever variant you are hitting did also.

                                  Steve

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

                                    Hello everyone,
                                    Let's try to calm down okay?

                                    @ohbobva , @MTNet and @jurhein I understand that this problem is very annoying. To this date, you (and everyone having facing this captive portal problem) have 3 options :

                                    • Click on "Disconnect All" every time you reboot your pfSense or edit some captive portal settings
                                    • Install the patch that has been chosen to address this issue. I updated my previous post to provide guidelines on how to install this patch on 2.4.4-p3.
                                    • Downgrade your pfSense to a previous version. This issue is present on all 2.4.X version, 2.3.X are unaffected. Because of the multiple production and security fixes made in 2.4.4 I would not recommend doing this however.

                                    On Netgate side ( @Derelict , @stephenw10 @rbgarga )...would it be possible to merge pull request 4042 quite quickly, if possible ? This PR is ready to be merged, and is resolving a very impacting problem for pfSense's captive portal (as you can see from angry comments on this thread...)

                                    1 Reply Last reply Reply Quote 1
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      I'll poke the devs.

                                      Have you seen this issue outside making changes to the captive portal?

                                      Steve

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

                                        @stephenw10 yes..kind of.

                                        I originally faced the issue as a regular pfSense user. I am part of a network/infra team for an IT university, we are running pfSense captive portal for LAN events. We encountered the issue during one of these events.

                                        Few weeks/month after the event, I tried to reproduce the bug using lab environment/VM (the idea was to check vaguely what caused this issue, was it reproducible?). I created the redmine ticket at that time.

                                        I tried to understand the root cause ("when and what introduced this bug?") only few month later (for those interested, the root cause is explained at the end of this post)

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

                                          Update :

                                          I re applied the patch https://github.com/pfsense/pfsense/pull/4042.diff (this is the "patch ID" I used).

                                          /etc/inc/captiveportal.inc was complaing with one chunck (the 12th one) because in "master" there is a new function :
                                          function captiveportal_reserve_ruleno($ruleno)
                                          so I decides to make a backup of my /etc/inc/captiveportal.inc and and replace it with the master version ( https://raw.githubusercontent.com/pfsense/pfsense/master/src/etc/inc/captiveportal.inc ).

                                          Now, the patch applies perfectly well.

                                          Great work !

                                          Again : applied against "2.4.4-p3" with updated (current Master) /etc/inc/captiveportal.inc

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

                                          ? B 2 Replies Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            Ok, great.

                                            @Gertjan I assume you are seeing this fix the issue that locks users out if you edit the captive portal?

                                            @MTNet Can you test this patch to confirm it fixes the variant you're seeing? I'm not sure anyone else is seeing this without editing the config. If anyone else is though please test this patch against 2.4.4p3.

                                            Steve

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