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

    Traffic Shaper not behaving – qHigh not working

    Scheduled Pinned Locked Moved Traffic Shaping
    22 Posts 6 Posters 3.8k 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.
    • L
      lastb0isct
      last edited by

      Hi All,

      I have a certain IP that i want to have the HIGHest priority and another IP i want to have the lowest priority when it comes to traffic.  I followed a couple guides and i got the low priority IP to start going through that queue, but the high priority queue is not working!  Here are some screenshots to show you what i've done:

      ![Floating Rules.PNG](/public/imported_attachments/1/Floating Rules.PNG)
      ![Floating Rules.PNG_thumb](/public/imported_attachments/1/Floating Rules.PNG_thumb)
      High.PNG
      High.PNG_thumb
      Low.PNG
      Low.PNG_thumb

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Are you making the mistake of using Pass instead of Match for your floating rule's Action?

        1 Reply Last reply Reply Quote 0
        • H
          Harvy66
          last edited by

          Do you have your interfaces rate limited?

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

            @KOM:

            Are you making the mistake of using Pass instead of Match for your floating rule's Action?

            I did have it set to Pass, but that was working for the qLow  IP.  I changed to Match and got no change that i can tell on the qHigh queue.

            My Interfaces are not limited at all.

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

              You don't have qHigh defined on LAN.

              Your floating match rules will not match on WAN out because NAT has already happened and the source address is no longer the host address but the mapped address.

              Add qHigh to your LAN interface and it should start behaving as expected as long as LAN in is included in the list of interfaces on the floating rules.

              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
              • L
                lastb0isct
                last edited by

                @Derelict:

                You don't have qHigh defined on LAN.

                Your floating match rules will not match on WAN out because NAT has already happened and the source address is no longer the host address but the mapped address.

                Add qHigh to your LAN interface and it should start behaving as expected as long as LAN in is included in the list of interfaces on the floating rules.

                qLow isn't defined in LAN either, but its behaving properly.  Why is that the case?

                Doesn't seem that made a difference.  I've confirmed that LAN was included in the list of interfaces on the floating rule as well.

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

                  Are you sure?

                  What are all the specifics of the floating rules?

                  The table doesn't show enough.

                  You have to be positive you're creating new states after making changes.

                  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
                  • L
                    lastb0isct
                    last edited by

                    I'll attempt to reset my states one more time and report back.

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

                      It did not make a difference after resetting the states.  Here is a list of the TCP floating rules.  The UDP are the same just with qACK unselected.

                      ![Screen Shot 2015-12-01 at 12.25.44 PM.png](/public/imported_attachments/1/Screen Shot 2015-12-01 at 12.25.44 PM.png)
                      ![Screen Shot 2015-12-01 at 12.25.44 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2015-12-01 at 12.25.44 PM.png_thumb)
                      ![Screen Shot 2015-12-01 at 12.25.58 PM.png](/public/imported_attachments/1/Screen Shot 2015-12-01 at 12.25.58 PM.png)
                      ![Screen Shot 2015-12-01 at 12.25.58 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2015-12-01 at 12.25.58 PM.png_thumb)
                      ![Screen Shot 2015-12-01 at 12.26.09 PM.png](/public/imported_attachments/1/Screen Shot 2015-12-01 at 12.26.09 PM.png)
                      ![Screen Shot 2015-12-01 at 12.26.09 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2015-12-01 at 12.26.09 PM.png_thumb)
                      ![Screen Shot 2015-12-01 at 12.26.21 PM.png](/public/imported_attachments/1/Screen Shot 2015-12-01 at 12.26.21 PM.png)
                      ![Screen Shot 2015-12-01 at 12.26.21 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2015-12-01 at 12.26.21 PM.png_thumb)

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

                        Quick does nothing on match rules. I don't think it'll break them but I'd uncheck it because it's wrong.

                        Certainly looks like it should be properly queueing the traffic to me.

                        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
                        • L
                          lastb0isct
                          last edited by

                          It looks like some traffic is passing through the qHigh queue now.  But not much…only a few bps.

                          1 Reply Last reply Reply Quote 0
                          • KOMK
                            KOM
                            last edited by

                            Quick does nothing on match rules.

                            Setting Quick changes the floating rule behaviour from last-match to first-match.  Quick is the default for all non-floating rules, but it is optional here.

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

                              I don't think that's true on Match rules. I think match rules are always last match wins.

                              Give the floating rule set posted it shouldn't matter either way in this case.

                              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
                              • DerelictD
                                Derelict LAYER 8 Netgate
                                last edited by

                                I just looked and pfSense happily sets quick on match rules and the pf man pages don't say anything about it that I can see.

                                I'm probably thinking about the last line (outdated) here:

                                https://doc.pfsense.org/index.php/What_are_Floating_Rules

                                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
                                • D
                                  doktornotor Banned
                                  last edited by

                                  Match rules do not work with quick selected.

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

                                    Still does not seem to be working.  Any other ideas with what could be wrong on my config?

                                    1 Reply Last reply Reply Quote 0
                                    • KOMK
                                      KOM
                                      last edited by

                                      Match rules do not work with quick selected.

                                      Is that by design?  The pfSense book seems to imply that it should:

                                      12.6.5 Quick
                                      The quick controls whether rule processing stops when a rule is match. The quick option is added to all Interface rules
                                      automatically, but on Floating rules it is optional. Without quick checked, the rule will only take effect if no other
                                      rules match the traffic. It reverses the behavior of “first match wins” to be “last match wins”.
                                      In most situations, it is advised that you always leave quick selected. There are certain specific scenarios where leaving
                                      quick unchecked is necessary, but they are few and far between. For most, the only rules they would have without
                                      quick selected are traffic shaper rules.

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        doktornotor Banned
                                        last edited by

                                        @KOM:

                                        Is that by design?  The pfSense book seems to imply that it should:

                                        Try 12.6.4

                                        1 Reply Last reply Reply Quote 0
                                        • KOMK
                                          KOM
                                          last edited by

                                          Gah.  They are confusing things by using Match in two contexts, as Action and as criteria-based candidate.

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

                                            Do you guys have any idea why my setup would not be working still? I am seeing no traffic pass through my qHigh queue.

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