When a firewall filter consists of a single term, the filter is evaluated as follows:
When a firewall filter consists of more than one term, the filter is evaluated sequentially:
This process continues until either the packet matches the from conditions in one of the subsequent terms or there are no more terms.
If a term does not contain a from statement, the packet is considered to match and the action in the term’s then statement is taken.
If a term does not contain a then statement or if you do not configure an action in the then statement, and if the packet matches the conditions in the term’s from statement, the packet is accepted.
Each firewall filter has an implicit discard action at the end of the filter, which is equivalent to the following explicit filter term:
- term implicit-rule {
- then discard;
- }
Therefore, if a packet matches none of the terms in the filter, it is discarded.