Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    How is the logical security stack configured in pfsense?

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 1.1k 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.
    • T
      theonlyjg61
      last edited by

      I'm curious what logical inspection order is followed for traffic as it traverses the different security packages in pfsense. For example say I have firewall rules that allow all traffic, if I have snort enabled will this traffic be analyzed before or after it hits the firewall rules? If I have pfBlocker enabled, will traffic be analyzed before or after snort and the built in firewall? Will traffic matching snort signatures be allowed if the firewall rules allow any ->any?

      Thanks in advance!

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

        pfBlockerNG does not analyze anything. It creates FW aliases and rules.

        As for Snort/Suricata, it works on a copy of packets, not inline; see https://forum.pfsense.org/index.php?topic=80131.msg437332#msg437332 and numerous other posts about this.

        1 Reply Last reply
        Reply Quote 0
        • T
          theonlyjg61
          last edited by

          Oh wow, good to know!

          "When an alert is triggered, a block rule is inserted into the packet filter firewall table"

          Where is this rule implemented in relation to other firewall rules? So say Snort triggers an alert and inserts a rule into the firewall table. Will this rule apply before or after rules configured in my firewall rules?

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

            There's a dedicated forum section for IDS/IPS. I have no interest in using these constant-babysitting packages. All I can tell you that there's a snort2c table managed by the IDS/IPS pretty high in the rules stack blocking the traffic.

            
            $ pfctl -vvsa | grep snort
            @46(1000000117) block drop log quick from <snort2c:0>to any label "Block snort2c hosts"
            @47(1000000118) block drop log quick from any to <snort2c:0>label "Block snort2c hosts"</snort2c:0></snort2c:0> 
            
            1 Reply Last reply
            Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy