Chapter 4 of 6 · Juniper JNCIA-SEC JN0-232
Network Address Translation
Source NAT with interface and pools, destination NAT, static NAT, rule-sets and where NAT sits in the flow.
- 3topics
- 18 minfast track
- 3diagrams and exhibits
Topics in this chapter
Take them in order, or jump to the one you need.
- 1Source NATLearn SRX source NAT for JNCIA-SEC: rule-sets with from and to context, interface and pool-based translation, port translation…Diagram6 min
- 2Destination NATLearn SRX destination NAT for JNCIA-SEC: destination pools, rule-sets with from context, port mapping, why policies use the…Diagram6 min
- 3Static NATLearn SRX static NAT for JNCIA-SEC: one-to-one bidirectional mapping, static-nat prefix rules, reverse translation, NAT…Diagram6 min
About this chapter
What this chapter covers
Network Address Translation covers how an SRX Series firewall rewrites IP addresses and ports as traffic passes through it. Junos OS has three NAT types: source NAT, destination NAT and static NAT. Each one is configured under its own hierarchy, security nat source, security nat destination and security nat static, with the same building blocks of rule-sets, rules, match conditions and actions.
Questions are mostly single-answer and multiple-answer. Many show a NAT rule-set or a security policy and ask which address the policy must use, which rule wins, or what the translated packet looks like. Knowing when each NAT type is applied in the packet flow is the core skill.
It has 3 outline topics, and three pages cover them.
How the topics fit together
NAT is processed on the first packet of a session, and the result is stored in the session so later packets are translated on the fast path. Static and destination NAT happen early, before the route and policy lookups. Source NAT happens late, after the policy lookup.
That order explains most exam answers. A policy for destination NAT or static NAT traffic must match the translated (real, internal) destination address. A policy for source NAT traffic matches the original source address, because the source has not been changed yet.
Learn the processing order before the configuration. When a question asks which address a security policy or a route must use, place the NAT type on the flow above and the answer follows.
How to use these pages
Each topic page has the same shape, so you can skim for what you need.
- What it is: the idea in plain words.
- How it works: the mechanism, with configuration and tables.
- Common mistakes: the classic traps.
- What to remember for the exam: the facts to memorize.
- Check yourself: three questions to test your understanding.
For each configuration example, take one packet and write down its source and destination address before and after translation.
Ready for more practice?
The full Juniper JNCIA-SEC JN0-232 question bank has 658 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by Juniper. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.