• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 53.3k 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.
  • F
    free4 Rebel Alliance @Novacom
    last edited by Jul 3, 2020, 9:15 PM

    @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 Jul 17, 2020, 4:19 AM

      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.

      G 1 Reply Last reply Jul 17, 2020, 2:12 PM Reply Quote 0
      • G
        Gertjan @Tenshou
        last edited by Jul 17, 2020, 2:12 PM

        @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
        • N
          Novacom
          last edited by Jul 17, 2020, 2:59 PM

          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 Jul 18, 2020, 1:02 PM Jul 18, 2020, 1:01 PM

            @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 Sep 16, 2020, 2:28 PM Sep 16, 2020, 2:27 PM

              @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 Sep 22, 2020, 1:48 PM

                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
                • G
                  Gertjan
                  last edited by Sep 23, 2020, 5:21 AM

                  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 Sep 28, 2020, 9:24 AM Reply Quote 0
                  • S
                    soheil.amiri @Gertjan
                    last edited by Sep 28, 2020, 9:24 AM

                    @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
                    • G
                      Gertjan
                      last edited by Gertjan Sep 28, 2020, 10:18 AM Sep 28, 2020, 10:16 AM

                      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 Sep 28, 2020, 7:08 PM

                        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 Nov 4, 2020, 6:02 AM

                          @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
                          • G
                            Gertjan
                            last edited by Nov 4, 2020, 7:35 AM

                            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 Feb 25, 2021, 3:18 PM

                              do we still need this patch for 2.5 version?

                              G 1 Reply Last reply Feb 25, 2021, 3:31 PM Reply Quote 0
                              • G
                                Gertjan @1ntr0v3rt3ch
                                last edited by Feb 25, 2021, 3:31 PM

                                @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 Feb 25, 2021, 3:41 PM Reply Quote 1
                                • 1
                                  1ntr0v3rt3ch @Gertjan
                                  last edited by Feb 25, 2021, 3:41 PM

                                  @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 Feb 28, 2021, 9:21 PM Feb 28, 2021, 8:41 PM

                                    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 G 2 Replies Last reply Feb 28, 2021, 9:51 PM Reply Quote 0
                                    • F
                                      Fenil @Leopoldo
                                      last edited by Feb 28, 2021, 9:51 PM

                                      @leopoldo I have tested too and it is happening in 21.02 version and 2.5.0. If you restart the router by gui than it will clearer the captive portal user but if you take out the power out or any power failure, than it will stuck on "you are connected".

                                      1 Reply Last reply Reply Quote 1
                                      • L
                                        Leopoldo
                                        last edited by Feb 28, 2021, 10:05 PM

                                        Yes, You are right. When the message "you are connected" appears, the solution I have found so far is to restart the device. After this, it is already possible to connect.
                                        I think it would be necessary to create a script that detects the power outage. And when the power comes back, correctly reboot the device.

                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          Gertjan @Leopoldo
                                          last edited by Gertjan Mar 1, 2021, 7:01 AM Mar 1, 2021, 6:59 AM

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

                                          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.

                                          You man that, after loggin your logged in users are shown by the widget

                                          470c920e-30d9-475f-9eec-2b73c1ffca99-image.png

                                          and

                                          f9bfcf74-543a-4678-bee5-3147d56b979e-image.png

                                          ?

                                          Can you check if :

                                          When rebooting, in the console, do you see this message :
                                          Reconnecting users to captive portal PORTAL-NAME .... done?
                                          When you obtain an IP from the portal's DHCP setting - is it the same as the one before the reboot ?
                                          What is your "Concurrent user logins" setting ?

                                          Check the portals 'ipfw' firewall rules right after reboot :
                                          These two tables : PORTALNAME_auth_up and PORTALNAME_auth_down : is your device's IP and/or MAC listed ?
                                          Like :

                                          .....
                                          --- table(PORTALNAME_auth_up), set(0) ---
                                          192.168.2.102/32 f6:f2:a2:34:ff:53 2014 6214 628233 1614580040
                                          ......
                                          --- table(PORTALNAME_auth_down), set(0) ---
                                          192.168.2.102/32 2015 6137 5792181 1614580015
                                          .....
                                          

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

                                          This happens when I remove power from the device, simulating a power outage.

                                          That's the fault of the developers ;)
                                          These guys never ripe out the power of a live system.
                                          The always have controlled shut downs as they use UPS's, they can't stand it to loose there edits if something goes wrong.
                                          They also assume a clean environment as the system boots. Because the contrary would open the door for billions of possible issues ....

                                          IMHO, still, your seems question is right to me.

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

                                          The patch no longer works.

                                          The patch based on 2.4.5-p1 ?
                                          Look at the patch. it isn't just a matter of lines to be added, modified or to be deleted. It doesn't so blindly, but it checks for a exact 'before' situation, so it knows it can change the exact code. Not some 'throw in a line here and there'.
                                          Patches are always version dependant.

                                          Workaround ( ? ) :

                                          If you don't have a UPS, consider turning this option off :

                                          07e167cf-d932-44c9-abc6-993ee24929be-image.png

                                          When you reboot pfSense yourself, activate this option. And de activate it when the reboot is done.

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

                                          Also, the problem is that the script that disconnected everyone connected is not working properly.

                                          You mean this one :

                                          8c73a1fb-3aae-4606-894f-8154a1ac50c0-image.png

                                          It should works.

                                          Btw : the scripts behind this button is the same that is used to re create the firewall rules if logged in user should be preserved. This scripts reads the database file that contains the details of every client that is connected. If it can't be read correctly, that would explain your situation very well.
                                          These "PHP SQLITE database" files are the first ones to be corrupted when things go bad (== non controlled system shut downs) and should be discarded upon reboot.
                                          Easy fix : do not use the "preserve" option.

                                          Btw : didn't test this situation my self yet. Not gona press the reset button or remove .on this system I've nearby as it is used right now.

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

                                          And when the power comes back, correctly reboot the device.

                                          If it's possible to detect a reboot after a non-clean shut down, deleting the "logged in captive portal user database" would do the job.

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

                                          L 1 Reply Last reply Mar 1, 2021, 10:09 AM Reply Quote 1
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received