--- title: "Firewall stateful packet filtering and inspection" slug: "firewall-stateful-packet-filtering-and-inspection-2" updated: 2026-08-30T14:35:53Z published: 2026-10-07T18:15:08Z canonical: "docs.trellix.com/firewall-stateful-packet-filtering-and-inspection-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Firewall stateful packet filtering and inspection Host Intrusion Prevention provides both stateful packet filtering and stateful packet inspection. *Stateful packet filtering* is the stateful tracking of TCP/UDP/ICMP protocol information at Transport Layer 4 and lower of the OSI network stack. Each packet is examined. If the inspected packet matches an existing firewall Allow rule, the packet is allowed and an entry is made in a state table. The state table dynamically tracks connections previously matched against a static rule set, and reflects the current connection state of the TCP/UDP/ICMP protocols. If an inspected packet matches an existing entry in the state table, the packet is allowed without further scrutiny. When a connection is closed or times out, its entry is removed from the state table. *Stateful packet inspection* is the process of stateful packet filtering and tracking commands at Application Layer 7 of the OSI network stack. This combination offers a strong definition of the computer’s connection state. Access to the application-level commands provides error-free inspection and securing of the FTP protocol.