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

    Please check my configuration and Rule orders

    Scheduled Pinned Locked Moved Firewalling
    2 Posts 2 Posters 592 Views 2 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.
    • E Offline
      eeebbune
      last edited by

      Hello Professionals,

      As far as I know about rule priorities of PFSense FW is,

      - Floating Rules ( Quick )
      - Interface port Rules (Interface Group)
      - Floating Rules ( Non - Quick, Last match )
      

      So I have Floating quick rules - Interface rules (2 ports bridging) - Non Floating quick rule and it works great what I expected and have planed.

      For Non-Floating quick rule, I have only one.
      a266e22b-bbe5-40a9-a37b-c6323a3c81f1-image.png

      This rule is for last match, and this rule blocks all except Non-Floating quick/Interface (Allow)rules.
      Currently I made a direction 'in', but when I changed it to be bi-direction (any),
      Suddenly my Interface allow rules were ignored, and it blocked.

      Why is this happened? Why my bi-direction config had high priority than interface(bridge) rules?
      Did I miss something?

      I appreciate your reply.

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        dma_pf @eeebbune
        last edited by dma_pf

        @eeebbune I personally do not use floating rules as the general advice is to use more explicit rules on individual interfaces.

        However, based on my reading of this (link)

        16b9e453-a433-4f48-8c0b-ea980155f54c-image.png

        I think that what you have here might be incorrect:
        8e48d488-527c-4d53-bf3f-92c4fd216700-image.png

        I think the correct order is:

        Floating Rules (Quick)
        Floating Rules (Non-Quick, Last Match)
        Interface Group Rules
        Interface Rules

        More info on the rules processing order can be found here : https://docs.netgate.com/pfsense/en/latest/firewall/rule-methodology.html#rule-processing-order

        If I am correct, then it would appear to me that what might be happening is that in the "any" direction all traffic is being blocked by your rule and the traffic never makes it to the interfaces.

        Bear in mind that I have minimal experience with floating rules and would certainly defer to others that have more experience with them.

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