--- title: "How firewall rules work" slug: "how-firewall-rules-work-6" tags: ["Product Usage", "ENS 10.7.x"] updated: 2026-10-07T18:14:49Z published: 2026-10-07T18:14:49Z canonical: "docs.trellix.com/how-firewall-rules-work-6" --- > ## 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. # How firewall rules work Host Intrusion Prevention rules determine how to handle network traffic. Each rule provides a set of conditions that traffic must meet and an action to allow or block traffic. When Host Intrusion Prevention finds traffic that matches a rule’s conditions, it performs the associated action. Host Intrusion Prevention uses precedence to apply rules: 1. Host Intrusion Prevention applies the rule at the top of the firewall rules list. If the traffic meets this rule’s conditions, Host Intrusion Prevention allows or blocks the traffic. It doesn't try to apply any other rules in the list. 2. If the traffic doesn't meet the first rule’s conditions, Host Intrusion Prevention continues to the next rule in the list until it finds a rule that the traffic matches. 3. If no rule matches, the firewall automatically blocks the traffic. ![GUID-D332CF1B-0FFC-45B7-A5D2-D0F56DF8C03C-low.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-58c0a5b7-4ed0-271d-f46b-56692e10039e(2).png?sv=2026-02-06&spr=https&st=2026-11-18T23%3A25%3A21Z&se=2026-11-19T00%3A25%3A21Z&sr=b&sp=r&sig=MmWzyzcwr1Wst6aruTqsS2xUPnHH4xU7mfK5ineG9hM%3D) If Adaptive mode is activated, an Allow rule is created for the traffic. Sometimes the intercepted traffic matches more than one rule in the list. In this case, precedence means that Host Intrusion Prevention applies only the first matching rule in the list. > [!WARNING] > Important > > Place the more specific rules at the top of the list, and the more general rules at the bottom. This order makes sure that Host Intrusion Prevention filters traffic appropriately.