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

    Problem setting up tail drop/codel

    Scheduled Pinned Locked Moved Traffic Shaping
    15 Posts 4 Posters 463 Views 5 Watching
    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.
    • Z Offline
      zennb1
      last edited by

      Hi.

      I have been trying to setup https://docs.netgate.com/pfsense/en/latest/recipes/codel-limiters.html
      I have tried it a couple of times ensuring ny config matches the document, as soon as I apply the firewall rules I get no Internet traffic and the gateway goes to 100% Packet loss...

      Can anyone help please?

      Ce edition 2.8 1
      Single wan
      Ipv4 only

      Thanks

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        AberDino @zennb1
        last edited by

        I am using CoDel Limiters and this is working really well for me ("A") on my asynchronous VDSL connection. I set it up a while ago so I can't remember all the details but, rightly or wrongly, I ended up with different floating firewall rules than described in the article.

        I've got two (one for incoming connections and one for outgoing connections) floating firewall rules, and they use 'match' rather than 'pass':
        09760c98-305a-46bb-a6fe-0880091f9701-image.png
        Outgoing rule:
        39b5f695-b439-4887-a412-ecf98296f200-image.png


        c94effc5-349b-4ef7-9d24-2b4fb76e509d-image.png


        e3107dfb-6a33-4068-befb-7ae14615bcef-image.png

        The incoming rule is similar, but uses direction "in" and has the "in / out pipe" entries switched over. I don't think you'll need this rule, unless you have open ports on your WAN connection.

        I found this article really useful to tune the CoDel parameters.

        Z 1 Reply Last reply Reply Quote 0
        • Z Offline
          zennb1 @AberDino
          last edited by zennb1

          @AberDino
          hi, thanks for taking the time to respond. I have tried your rule as above but I still cant get any traffic once I enable the rule. I have a test machine behind my live machine and it seems to do the same thing as what was happening on my live machine. Soon as the rule gets enabled I lose all access to the net through the test machine. Turn the rule off and internet is restored.

          Can you think or proivide any further info please?

          thanks very much

          F1.png

          F2.png

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            AberDino @zennb1
            last edited by

            Hi @zennb1, I see you still have the 'Quick' option enabled, which I don't think is compatible with the 'Match' option. Various bits of info from an Internet search:

            • The match action is unique to floating rules and does not explicitly pass or block traffic. It is used solely for assigning traffic to queues or limiters for traffic shaping. A match rule sets a tag or assigns the packet to a traffic shaping queue, and then rule processing continues to the next ruleset (interface rules) to determine if the packet should ultimately be passed or blocked.
            • If a rule has quick enabled and a packet matches it, the firewall stops processing any further rules and applies the action (pass, block, or reject) of that specific rule immediately ("first match wins").
            • Match rules are not compatible with the quick option because they are not meant to be a final action; they need subsequent rules to pass or block the traffic.

            I'd suggest you disable the "quick" option and see if it makes a difference. I presume you have an appropriate "pass" rule set on the LAN firewall rules page? You could temporarily enable logging on a firewall rule to see if it reveals any more information. To check if the limiter is working, click Diagnostics -> Limiter Info.

            Z 1 Reply Last reply Reply Quote 0
            • W Offline
              Wolf666
              last edited by Wolf666

              The Netgate guide suggest a floating rule with PASS and quick enabled.
              I have strictly followed that guide and it works very well, got A+ with a 1000/300 line (PPPoE)

              Modem Draytek Vigor 130
              pfSense 2.4 Supermicro A1SRi-2558 - 8GB ECC RAM - Intel S3500 SSD 80GB - M350 Case
              Switch Cisco SG350-10
              AP Netgear R7000 (Stock FW)
              HTPC Intel NUC5i3RYH
              NAS Synology DS1515+
              NAS Synology DS213+

              Z 1 Reply Last reply Reply Quote 0
              • Z Offline
                zennb1 @Wolf666
                last edited by

                @Wolf666 hi. Thanks I tried this but stil no traffic. I setup the limiters as per the article . Is yours any different. Any chance you could share your setup.. just can't seem to resolve it.. thank you

                W 1 Reply Last reply Reply Quote 0
                • Z Offline
                  zennb1 @AberDino
                  last edited by

                  @AberDino ill try again but just can't seem to resolve it. I setup the limiters as per the article , are yours the same as this? Thanks

                  A 1 Reply Last reply Reply Quote 0
                  • W Offline
                    Wolf666 @zennb1
                    last edited by Wolf666

                    @zennb1
                    I am travelling, I will post it in the weekend.
                    My config is 1:1 with netgate guide, only 1 floating rule on WAN interface and "WAN address" as source.
                    I see you put "any" as source, you want to do it only on WAN address.

                    Modem Draytek Vigor 130
                    pfSense 2.4 Supermicro A1SRi-2558 - 8GB ECC RAM - Intel S3500 SSD 80GB - M350 Case
                    Switch Cisco SG350-10
                    AP Netgear R7000 (Stock FW)
                    HTPC Intel NUC5i3RYH
                    NAS Synology DS1515+
                    NAS Synology DS213+

                    Z 1 Reply Last reply Reply Quote 0
                    • Z Offline
                      zennb1 @Wolf666
                      last edited by

                      @Wolf666 thank you. Ill try again.๐Ÿ˜ฌ

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        AberDino @zennb1
                        last edited by

                        @zennb1 said in Problem setting up tail drop/codel:

                        I setup the limiters as per the article , are yours the same as this?

                        Yes, they are, but with the target value adjusted to the 'unloaded' ping time to the first ISP hop (26ms in my case, on VDSL), as per the CoDel tuning link I posted above.

                        Z 1 Reply Last reply Reply Quote 0
                        • Z Offline
                          zennb1 @AberDino
                          last edited by

                          @AberDino ok thanks . I tried again but it just doesn't seem to want to work for me. Its as soon as I apply the rule. Very confused ๐Ÿ˜•

                          T 1 Reply Last reply Reply Quote 0
                          • T Offline
                            TheNarc @zennb1
                            last edited by

                            @zennb1 Since it seems that you've been over the rule creation to assign traffic to the limiter queues multiple times and it all looks okay, perhaps double check the limiters and their associated queues and maybe post some screen shots of how you have them configured? I wonder if there's any chance your rules are working just fine, but there's something wrong with how the limiters/queues are set up.

                            Z 2 Replies Last reply Reply Quote 0
                            • Z Offline
                              zennb1 @TheNarc
                              last edited by

                              @TheNarc thanks. agreed. I need a bit of time but will post the lot ๐Ÿคฃ

                              1 Reply Last reply Reply Quote 0
                              • Z Offline
                                zennb1 @TheNarc
                                last edited by

                                @TheNarc @AberDino @Wolf666

                                so these are the limiters and queue's

                                just to recap - 1 x wan, 8GB/8GB symmetrical connection - X550 T2 for lan and wan

                                lim1.png wand1.png wand2.png wanDQ1.png wanup1.png wanup2.png WANupQ1.png

                                any help appreciated with this and the rule, tried so many but to no avail..

                                thanks!

                                T 1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TheNarc @zennb1
                                  last edited by

                                  @zennb1 Okay, what stands out to me are target and interval values of 0 for your WAN down limiter. I don't think that is valid. I feel like I've seen other posts from people claiming that somehow those can end up being defaults, but I'm betting that's what's breaking things for you.

                                  I would start by setting target to 5 and interval to 100 like your upload limiter. As to all the other parameters, I don't feel like I can give great advice, especially for such a fast symmetric connection. To be honest, in my experience it seems like almost everywhere you look for information about how to set the few "knobs" available with FQ_CODEL, the advice is different :) But I bet that just changing those target and interval values will get traffic flowing for you.

                                  Clearly, you can try changing various settings and test to see what works best for you. I have found some advice that the "queue length" should be set equal to "limit", and also that for an 8Gbps symmetric connection you may want "limit" and "flows" both set to something like 4096. But, I am not an expert on these FQ_CODEL settings so if anyone chimes in who is, I would defer to them.

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