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

    Firewall rule order

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    6 Posts 5 Posters 4.7k 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.
    • B
      bio_hazard
      last edited by

      The normal firewall rules (lan and wan) works top to bottom, but the floating rules match bottom to top. It should be that way or is a bug?

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        that depends on whether you have quick selected, if not, then last match wins.

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

          I created this rule (any to any) for a test and marked the quick box, but the icmp and dns traffic are still passing thru the qothershigh queue, if i put the rule on the bottom all the traffic goes to the qdefault queue.

          1.jpg_thumb
          1.jpg

          1 Reply Last reply Reply Quote 0
          • C
            Cino
            last edited by

            @bio_hazard:

            I created this rule (any to any) for a test and marked the quick box, but the icmp and dns traffic are still passing thru the qothershigh queue, if i put the rule on the bottom all the traffic goes to the qdefault queue.

            I noticed the same thing with my setup a couple of months ago when I was setting up traffic shaping to work. I ended up just putting them in order.

            1 Reply Last reply Reply Quote 0
            • _
              _igor_
              last edited by

              that depends on whether you have quick selected, if not, then last match wins.

              so does it mean that with quick option there is no "order", but when quick is not used, the order is from bottom to top?

              1 Reply Last reply Reply Quote 0
              • J
                jlepthien
                last edited by

                @_igor_:

                that depends on whether you have quick selected, if not, then last match wins.

                so does it mean that with quick option there is no "order", but when quick is not used, the order is from bottom to top?

                When quick is used the rule evaluation from top to bottom stops there…that is also the default behavior for all rules (LAN/WLAN/OPT). Only w/floating rules they are also matched from TOP to BOTTOM and the LAST matching rule is used if you haven't set the quick on a rule before that one.

                | apple fanboy | music lover | network and security specialist | in love with cisco systems |

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