Filter Match Conditions
In the
fromstatement in thefirewall filterterm, you specify conditions that the packet must match for the action in thethenstatement to be taken. All conditions in thefromstatement must match for the action to be taken. The order in which you specify match conditions is not important, because a packet must match all the conditions in a term for a match to occur.If you specify no match conditions in a term, that term matches all packets.
An individual condition in a
fromstatement can contain a list of values. For example, you can specify numeric ranges or multiple source or destination addresses. When a condition defines a list of values, a match occurs if one of the values in the list matches the packet.Individual conditions in a
fromstatement can be negated. When you negate a condition, you are defining an explicit mismatch. If a packet matches a negated condition, it is immediately considered not to match thefromstatement, and the next term in the filter is evaluated, if there is one; if there are no more terms, the packet is discarded.Match conditions are grouped into categories depending upon how you specify the condition. You can specify the following conditions: