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

    Upgrade 2.5.2 to 2.6.0, upgrade success, Limiters not passing

    General pfSense Questions
    32
    129
    35.9k
    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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      You should open a new thread (or use a different open one) for issues with dnsmasq if you're seeing that.
      Please keep this thread for issues with Limiters, which I have still been unable to replicate in 22.01 or 2.6.

      Steve

      L 1 Reply Last reply Reply Quote 0
      • L
        Luca De Andreis @stephenw10
        last edited by

        @stephenw10

        Steve,

        If you want , I can send you a full configuration, now working in production on 2.5.2 that presented problems after upgrading to version 2.6. If you think it might be useful

        Luca

        stephenw10S 1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator @Luca De Andreis
          last edited by

          @luca-de-andreis Yes please, hit me in a PM with a link if you can.

          L 2 Replies Last reply Reply Quote 0
          • E
            EagleZip @stephenw10
            last edited by

            @stephenw10

            I am initially receiving ping replies with the limiter enabled, but it is not for 50 pings.

            I increased the queue length to 1000 on the limiter. When first applied, I was able to ping 15 times with replies. Then the queue started filling up. This time the queue did in fact fill to 1000 packets before the Limiter Info output indicated anything was being dropped. However the ping replies stopped as soon as packets started entering the queue. That's the end of the road. The packets are never passing out of the queue. Even when I disconnect my test host from the network completely so there is absolutely no more input on the interface, the queue remains full indefinitely until the rules are reloaded.

            I tried each of the various Queue Management Algorithms available on the Limiter properties although I must admit I am not familiar with these options. Random Early Detection seems to allow traffic to continue flowing. I see packets being dropped rather than queued on the Limiter Info output. I was able to browse and run several speed tests without losing connectivity. The speed test results were noticeably less than the rates configured in the limiter, but they completed successfully. All other Algorithm choices produced the same result of blocking traffic as soon as packets begin entering the queue.

            1 Reply Last reply Reply Quote 0
            • L
              Luca De Andreis @stephenw10
              last edited by

              @stephenw10

              Ok Steve, I've just send link and password to donwload the xml file.
              I've removed public IPs and altered password and key digest....

              Luca

              1 Reply Last reply Reply Quote 0
              • B
                blikie
                last edited by blikie

                @stephenw10

                I found out that using 2.7.0.a.20220305.0600 devel on vmware test bench, the limiter issue is gone and seems to be working normal.
                Previous devel version had the same issue as 2.6.
                I also tried the captive portal patch on 2.6 without success regarding the limiter failure. Perhaps this all ties to the IPFW function?

                stephenw10S 1 Reply Last reply Reply Quote 1
                • L
                  Luca De Andreis @stephenw10
                  last edited by

                  @stephenw10

                  Is it possible that all functions correctly on PfSense plus 22.01? I have several firewalls with PfSense plus 22.01 with active limiters and with queues, exactly configured as versions 2.6.0 which have problems. But ... what are the differences between PfSense plus 22.01 and Pfsense 2.6.0?

                  Luca

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

                    @blikie said in Upgrade 2.5.2 to 2.6.0, upgrade success, Limiters not passing:

                    I found out that using 2.7.0.a.20220305.0600 devel on vmware test bench, the limiter issue is gone and seems to be working normal.
                    Previous devel version had the same issue as 2.6.

                    You mean literally between the 4th and 5th or March snaps?

                    That is when the root fix for the captive portal issue went in. Which would be very interesting!

                    Steve

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      blikie @stephenw10
                      last edited by

                      @stephenw10
                      Yes, I went from clean install 2.6 to 2.7 devel a week ago and it had the same issue, fast forward to that day i updated to that build and i was surprised with the same config unchanged and working with limiters on. and i thought it might be something to do with the captive portal patch. i ran another fresh 2.6 with the patch applied but the issue persisted only on 2.6. all run in a vmware workstation 16.2.2.

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

                        Ah, that's great to know. Yeah, it's not the same patch.

                        Ok, that should make it much easier to replicate now we have some idea what's triggering it.

                        Steve

                        L 1 Reply Last reply Reply Quote 0
                        • L
                          Luca De Andreis @stephenw10
                          last edited by

                          Finally it can be said that the problem has been identified.

                          Stephenw10 of the Netgate development team has identified the cause of the problem.
                          The problem occurs when the Captive Portal is active and limiters are used. Practically due to a captive portal bug, even if this refers to a different interface, the limiters do not work correctly on all interfaces (including WAN ones, therefore the ports natted towards the internal segments and subject to limiters).
                          If you don't use the Captive Portal the limiters work without problems.

                          Luca

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

                            Yes, exactly that. We are still looking to find a workaround if possible but it's not easy because of where the issue lies.

                            If anyone is still seeing problems with Limiters when they don't have the captive portal enabled on any interface we want to know about it.

                            Steve

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

                              I'm afraid it's not looking too good for a workaround that can be applied as a patch. The interaction between pf and ipfw is at a low level. We are still investigating though.

                              Steve

                              L GertjanG 2 Replies Last reply Reply Quote 0
                              • L
                                Luca De Andreis @stephenw10
                                last edited by

                                @stephenw10

                                Steve, do you think a 2.6.1 and a 22.01p1 will be released pending 22.05 (I see it far away) ...

                                Luca

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

                                  @stephenw10 said in Upgrade 2.5.2 to 2.6.0, upgrade success, Limiters not passing:

                                  The interaction between pf and ipfw is at a low level

                                  and if that is the issue, does that mean that any one who was using FreeBSD 12.3 and wanted to use Limiters ( dummy.net ?) would have an issue ?
                                  Is this issue native to FreeBSD 12.3, or created when Netgate takes the FreeBSD 12.3 source and cooks its own derived version ?
                                  Heck, I don't even know if the FreeBSD used is a patched one (with upstream corrections and / or Netgate's salt&pepper), and then build- or just the source "as is".

                                  Anyway, no answer needed, although appreciated. I know issues will get dealt with.

                                  Thanks for the update.

                                  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
                                  • stephenw10S
                                    stephenw10 Netgate Administrator @Luca De Andreis
                                    last edited by

                                    @luca-de-andreis Impossible to say yet. We are still looking at it along with a number of other things.

                                    @Gertjan We added code to allow the use of pf and ipfw at thew same time. Normally in FreeBSD you would never do that.

                                    Steve

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

                                      @stephenw10

                                      Ok, let me think about that.
                                      With pfSense I was doing just that for the many years. Maybe pfSense is less FreeBSD as I thought it was.
                                      Scary situation, though, as the captive portal is a 'must have' for my usage.
                                      Limiters, on the other hand, should be part of the standard toolkit of what a router firewall has to offer.

                                      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
                                      • J
                                        jackyaz
                                        last edited by

                                        I want to add a +1 as a new pfsense user, I've encountered this issue. I started chasing faulty hardware initially with no luck, but when working back through my changes I found that disabling either captive portal or the floating rules assigning limiters solved the issues I was seeing.

                                        In my case, connected clients would start a speedtest and the test would go from 500mbps to 0, and then all connectivity stopped. This affected all clients and not just the captive portal ones, so I'm reasonably confident I'm affected by this regression too.

                                        1 Reply Last reply Reply Quote 1
                                        • B
                                          blackangel84
                                          last edited by

                                          +1 here, i've same problem.
                                          After upgrading 2.5.2 to 2.6.0 all machine seems hung..... some ping from local to firewall passes for few seconds...

                                          I've removed all limiters but nothing solved.. this firewall config had 20+ openvpn servers. I'll think there is something in routes that causes this problem... anyway i reinstalled 2.5.2 and it's all ok.

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

                                            Do you have the captive portal enabled on any interface? If not then you're not hitting the issue discussed here.

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