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.
Practice questions
Which action drops a packet without telling the sender?
- accept
- reject
- discard
- count
Show answer
Answer: C. discard
Discard drops silently. Reject also drops but returns an error message to the sender; accept forwards the packet.
Which of these are terminating actions in a firewall filter term?
- accept
- count
- discard
- log
- 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: 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.
