JN0-106 ยท Firewall filters
How does a Junos stateless firewall filter process a packet?
Purpose of stateless firewall filters, filter families, terms processed in order, and the implicit discard at the end.
Key points
- A filter is built from named terms (each with optional 'from' match conditions and a 'then' action) and is defined per family (for example inet for IPv4, inet6 for IPv6).
- The router checks terms from the top; the first term whose conditions all match runs its actions, and evaluation usually stops there.
- If no term matches, the packet is silently discarded by the implicit discard at the end of every filter.
Practice questions
What happens to a packet that matches none of the terms in a Junos firewall filter?
- It is accepted and forwarded normally
- It is silently discarded by the implicit final action
- It is sent back to the first term again
- It is rejected with an ICMP error to the sender
Show answer
Answer: B. It is silently discarded by the implicit final action
Every filter ends with an implicit discard. Accepting unmatched traffic requires an explicit final term with accept.
Which statements about stateless firewall filters are true?
- Each packet is evaluated on its own, without connection tracking
- Terms are evaluated in the order they appear in the filter
- The router automatically reorders terms from most to least specific
- A filter with no matching term ends with an implicit discard
- A filter can only ever contain a single term
Show answer
Answer: A. Each packet is evaluated on its own, without connection tracking, B. Terms are evaluated in the order they appear in the filter, D. A filter with no matching term ends with an implicit discard
Filters are evaluated per packet without session memory, in term order, and end with an implicit discard. They are not ordered by specificity automatically and are not limited to one family.
True or false: if you configure a filter containing only a term that accepts SSH, all other traffic passes through unaffected.
Show answer
Answer: False
False. Because of the implicit discard at the end, all traffic not matched by the SSH term is dropped.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
