Policy Configuration : Understanding the Network Access Rules Hierarchy

Understanding the Network Access Rules Hierarchy
To determine whether packets are allowed through the SonicWALL firewall appliance, each SonicWALL checks the destination IP address, source IP address, and port against the firewall rules.
It is important to consider the purpose and ramifications of a rule before adding it to the firewall rule list. Use the following guidelines to determine the rule logic:
After determining the logic of the rule, consider the ramifications:
The rule hierarchy uses two basic concepts:
For example: a rule defining a specific service is more specific than the Default rule; a defined Ethernet link, such as LAN (WorkPort), or WAN, is more specific than * (all); and a single IP address is more specific than an IP address range.
Rules are listed in the LAN (WorkPort) Interface window from most specific to the least specific, and rules at the top override rules listed below.
To illustrate this, consider the rules shown below:
 
Table 31. Sample Rules.
The Default Allow Rule (#7) at the bottom of the page allows all traffic from the LAN (WorkPort) out to the WAN. However, Rule #5 blocks all NNTP traffic from the LAN (WorkPort).
The Default Deny Rule (#6) blocks traffic from the WAN to the LAN (WorkPort). However, Rule #4 overrides part of this rule by allowing Lotus Notes into the LAN (WorkPort) from the WAN.