Bitzu

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.

Source: https://www.juniper.net/documentation/us/en/software/junos/routing-policy/topics/concept/firewall-filter-stateless-evaluate-packets.html

Practice questions

Single choice

What happens to a packet that matches none of the terms in a Junos firewall filter?

  1. It is accepted and forwarded normally
  2. It is silently discarded by the implicit final action
  3. It is sent back to the first term again
  4. 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.

Select all that apply

Which statements about stateless firewall filters are true?

  1. Each packet is evaluated on its own, without connection tracking
  2. Terms are evaluated in the order they appear in the filter
  3. The router automatically reorders terms from most to least specific
  4. A filter with no matching term ends with an implicit discard
  5. 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

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.

Download on the App StoreGet it on Google Play

More JN0-106 topics in this module