Bitzu

JN0-106 ยท Firewall filters

What can a term match on, and what actions can it take?

From match conditions (addresses, ports, protocol), then actions (accept, discard, reject), action modifiers (count, log, syslog) and next term.

Key points

  • A 'from' clause can match fields such as source and destination address, protocol and ports.
  • The 'then' clause holds terminating actions (accept, discard, reject), action modifiers that do not end evaluation (count, log, syslog), and the flow-control action 'next term', which continues with the following term.
  • A term with no actions accepts the packet.
  • Discard drops silently; reject drops and signals the sender.

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

Practice questions

Single choice

Which action drops a packet without telling the sender?

  1. accept
  2. reject
  3. discard
  4. count
Show answer

Answer: C. discard

Discard drops silently. Reject also drops but returns an error message to the sender; accept forwards the packet.

Select all that apply

Which of these are terminating actions in a firewall filter term?

  1. accept
  2. count
  3. discard
  4. log
  5. reject
Show answer

Answer: A. accept, C. discard, E. reject

accept, discard and reject end evaluation. count and log are modifiers that do not end it.

True or false

True or false: a term whose 'then' clause contains only 'next term' can be the last term of a filter.

Show answer

Answer: False

False. next term continues with the following term, so it cannot be the action of the last term in a Junos filter.

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