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 55.2k 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.
    • A
      andresense @chanrio13
      last edited by

      @chanrio13

      dude i don't know if the solution i made will work for you

      What I did was check if the user's mac address is in the database and on the firewall, if it is only in the database, I remove it from the database
      and the captive is shown to him again

      this is for you?

      1 Reply Last reply Reply Quote 0
      • NovacomN
        Novacom
        last edited by

        Hello !

        I'm trying to understand this issue I have with captive portal users being left stuck in "you're connected" after a pfSense reboot. Clearly this have been an issue for which patches have been made until 2.5 arrives (master).

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

        https://github.com/pfsense/pfsense/compare/RELENG_2_4_5...Augustin-FL:fix-reconfig-for-2-4-4.diff

        The patch does not seems to download anymore.

        Here are some info and what I tried :

        • I'm on 2.4.5-RELEASE-p1
        • I did not change the Captive Portal config after initial reboot.
        • Log into Portal, browse fine, all OK, reboot pfSense, "you're connected" but in fact firewalled.
        • https://github.com/pfsense/pfsense/pull/4042.diff Fetches but do not apply (fails at line 1954)
        • https://github.com/pfsense/pfsense/compare/RELENG_2_4_4...Augustin-FL:fix-reconfig-for-2-4-4.diff does not fetch
        • https://github.com/pfsense/pfsense/compare/RELENG_2_4_5...Augustin-FL:fix-reconfig-for-2-4-4.diff does not fetch
        • @andresense's script could fix it quickly for me, as I could live with removing connected users at reboot but as I digged through the rabbit hole of this thread, the patch does this.

        Thank you for any pointers for me...

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

          Hummmm.

          I'm using 2.4.5-RELEASE-p1 myself, and I guess w"re back at the beginning.

          When editing the Services > Captive Portal, the ipfw tables that contain the authorized users is reset / emptied.
          The connected user database isn't purge.
          Where back where we started last year.

          https://github.com/pfsense/pfsense/compare/RELENG_2_4_4...Augustin-FL:fix-reconfig-for-2-4-4.diff might have been useful - again, but is probably not 'clean' to patch automatically (code base changed).

          Well ... what about the initial solution :

          1. If you have users connected, do not edit the portal settings.
          2. If you have to edit, disconnect connected users right after you hit the blue Save button.

          It's probably time to re open the (a) bug report at pfSense-redmine.

          edit : a reboot : same scenario : no firewall rules, and the connected users data base stays intact. Great.

          edit 2 : I get it. @Novacom 👍 - patches were applied ... against 2.50.

          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
          • F
            free4 Rebel Alliance @Novacom
            last edited by

            @Novacom hi,

            I am the one who made this patch. I deleted it but I guess I can restore it

            Would you like me to restore it?

            1 Reply Last reply Reply Quote 0
            • T
              Tenshou
              last edited by

              Can you restore this patch?
              This bug still exists in 2.4.5 -p1.

              The same "You Are Connected" message. The only way to fix this is to disconnect all users and they need to sign in again.

              This issue is marked as resolved but it is definitely not resolved.

              "Here are some info and what I tried :

              I'm on 2.4.5-RELEASE-p1
              I did not change the Captive Portal config after initial reboot.
              Log into Portal, browse fine, all OK, reboot pfSense, "you're connected" but in fact firewalled.
              https://github.com/pfsense/pfsense/pull/4042.diff Fetches but do not apply (fails at line 1954)
              https://github.com/pfsense/pfsense/compare/RELENG_2_4_4...Augustin-FL:fix-reconfig-for-2-4-4.diff does not fetch
              https://github.com/pfsense/pfsense/compare/RELENG_2_4_5...Augustin-FL:fix-reconfig-for-2-4-4.diff does not fetch
              @andresense's script could fix it quickly for me, as I could live with removing connected users at reboot but as I digged through the rabbit hole of this thread, the patch does this."

              Same thing is happening to me. This is definitely not resolved.

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

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

                This bug still exists in 2.4.5 -p1.

                Yep.
                The patch was integrated in 2.5.0-dev, the version that comes out .... later.

                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
                • NovacomN
                  Novacom
                  last edited by

                  Sorry for the delay, I somehow was made aware of replies only this morning...

                  @free4 Yes I think the patch against current versions could mitigate the issue.

                  The issue was becoming less urgent since my client dropped the idea of using captive portal. Still, I think we must have a way to fix the issue while waiting 2.5.0 to get current. Reboots might be more frequents in some installations and manual interventions (flush database) should be limited.

                  Thanks

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

                    @Novacom @Tenshou as requested, i have restored the patch.
                    The previous URLs should be working now

                    1 Reply Last reply Reply Quote 0
                    • F
                      Finotto @stephenw10
                      last edited by Finotto

                      @stephenw10
                      Your answer saved me, This worked for me, I'm using version 2.4.5-RELEASE-p1.

                      Patch: https://github.com/pfsense/pfsense/compare/RELENG_2_4_5...Augustin-FL:fix-reconfig-for-2-4-4.diff

                      1 Reply Last reply Reply Quote 0
                      • A
                        amanfredini
                        last edited by

                        I've tested on version 2.4.5-RELEASE-p1 but patch doesn't apply. There isn't any checkbox in captive portal page

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

                          I'm running :

                          f0608e7b-68b0-44e9-87b9-b625a33d3051-image.png

                          The patch URL :

                          c870f511-dbdf-41a9-85d1-f11d96f2cd14-image.png

                          The title == the URL for me.

                          The patched can be cleanly reverted for me, which implies it is applied right now.
                          So it should applied.

                          This patch does not modify the visual part of GUI like adding a button.

                          1. It will retain the info in the ipfw tables, which represent connected users if you have to edit/save captive portal settings while users are logged in. The issue with 2.4.5-p1 (and some previous version) was that these tables would be emptied, so users would be blocked by ipfw and redirected to the captive portal page. Upon reaching the login page, pfSense find the user already in the "list with connected users" and shows a simple "You are connected" message.
                            Btw : the list with connected users is the list you see in the GUI :

                          76049d0d-6c4c-4d2a-892a-d318a3b92180-image.png

                          1. It will empty the list with connected users when booting.

                          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
                          • S
                            soheil.amiri @Gertjan
                            last edited by

                            @Gertjan
                            thanks for your reply
                            but i could not apply the patch.
                            Pfsense.JPG
                            the patch is not even loaded for apply !!!!!

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

                              Patches - many exists - have to be added by the admin.
                              That is : you.

                              Press the green

                              bf5d0f21-38bc-4660-955d-29dff97793da-image.png

                              Button.

                              Add :

                              293d5f32-9c93-40ec-be15-d70438fd257e-image.png

                              Where URL/Commit ID shoud be something meaningfull, like the URL sired above.

                              The description can close to anything. I tend to copy the URL there also.

                              Now, iyt's time to hit the

                              fe5a81f6-54e4-41bb-a916-67583ee90acf-image.png

                              button.

                              Then you 'Fetch' the patch. This loads the file that contains the patch (== automated editing of one or more files). That should confirmed it went well.
                              Then you should 'Test' the patch - to see if it could patch (files are as expected / correct versions, etc).
                              Then you hit "Apply", which should mention it worked well.
                              Done.

                              It's a click-> paste -> paste -> click -> click -> click -> click thing ;)

                              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
                              • S
                                soheil.amiri
                                last edited by

                                thanks @Gertjan
                                i uncheck the "Ignore Whitespace" and add the patch.
                                i work's for me. tahnks
                                Pfsense_2.JPG
                                Pfsense.JPG

                                1 Reply Last reply Reply Quote 1
                                • RaymondChaukeR
                                  RaymondChauke
                                  last edited by

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

                                  I am using Ubiquity Nano Station M2 plugged into PFsence PC Network via Rj45 cable... but it does not send me to captive portal and it reports that there is no internet.... What can i do?

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

                                    Need more details.

                                    The device that says : "no internet" ; what is :
                                    DNS ?
                                    Gateway ?
                                    IP ?

                                    When you hook up your device, do you see the lines in the DJCP server log that shows pfSense attributed an (correct ?) IP to the device ?

                                    When you de-activate the portal on pfSense, your device says "Connected to Internet" ?

                                    What are the firewall rules on the LAN you use ?

                                    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
                                    • 1
                                      1ntr0v3rt3ch
                                      last edited by

                                      do we still need this patch for 2.5 version?

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

                                        @1ntr0v3rt3ch

                                        Noop.
                                        Test for yourself : connect as a portal user, using, for example, your phone.

                                        On the pfSense, GUI goto the portal settings, change something, like adding a minute to the hard or soft time out (whatever) and save the settings.
                                        The portal restarted.
                                        Your phone is still connected.

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

                                        1 1 Reply Last reply Reply Quote 1
                                        • 1
                                          1ntr0v3rt3ch @Gertjan
                                          last edited by

                                          @gertjan

                                          nice! thanks sir! I'll remove this system patches. I just updated my pfsense 2.4.4 p3 to 2.5 earlier.

                                          1 Reply Last reply Reply Quote 0
                                          • L
                                            Leopoldo
                                            last edited by Leopoldo

                                            Hi guys,
                                            I am testing the new version 21.02 with captive portal and I see that the message "You are connected" keeps appearing. and then it is not possible to navigate.
                                            This happens when I remove power from the device, simulating a power outage.
                                            Also, the problem is that the script that disconnected everyone connected is not working properly. The patch no longer works.
                                            Has anyone tested this?

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