srx-nat

Design, configure, and troubleshoot Juniper SRX NAT rules, pools, and sessions.

9|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/fastrevmd-lab/fwskillsshare --skill srx-nat-fastrevmd-lab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: srx-nat
Source: https://github.com/fastrevmd-lab/fwskillsshare/tree/main/skills/srx-nat
Command: npx skills add https://github.com/fastrevmd-lab/fwskillsshare --skill srx-nat-fastrevmd-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Juniper SRX NAT failures are hard to diagnose because translation interacts with rule-set selection, route lookup, security policy, proxy ARP, and return-path routing. This Skill pins the agent to verified Junos NAT syntax and a structured troubleshooting workflow so configurations commit correctly and sessions behave as designed. ## Core Features & Use Cases - NAT Design Patterns: Provides verified Junos configuration patterns for source NAT (interface and pool), destination NAT with port translation, static NAT, NAT64/DNS64, hairpin NAT, and CGN with port block allocation. - Rule-Set Selection and Processing Order: Explains static-before-destination-before-source evaluation, rule-set specificity ranking, and first-match rule ordering so exceptions and persistent NAT rules are placed correctly. - Troubleshooting Matrix and Verification: Maps symptoms like pool exhaustion, missing proxy ARP, asymmetric return paths, and hairpin failures to specific show commands, counters, and extensive session inspection. - Use Case: A network engineer needs to publish an internal web server on a public IP with port forwarding. The Skill supplies the destination NAT pool with port translation, the matching security policy for the post-DNAT zone, and the verification commands to confirm translation hits. ## Quick Start Use the srx-nat skill to design a source NAT rule-set that translates my 192.168.1.0/24 LAN to the egress interface and show me how to verify the translated sessions.

Frequently Asked Questions about srx-nat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure source NAT on a Juniper SRX?

Create a source NAT rule-set with from and to zone context, match the source and destination addresses, then apply either source-nat interface or a named pool. Verify with show security nat source rule all and inspect the translated tuple with show security flow session extensive.

How do I set up destination NAT port forwarding on SRX?

Configure the translated port on the destination NAT pool using set security nat destination pool <name> address <ip> port <port>, then match the public port in the rule. Setting the port on the rule itself is a syntax error on current Junos releases.

Why does my SRX NAT rule not get any translation hits?

Rule-set selection may pick a more specific context than expected, or a broader rule above yours matches first. Check rule-set specificity order (interface beats zone beats routing-instance) and confirm counters with show security nat source rule all.

Does SRX NAT work without proxy ARP for pool addresses?

Only if the pool prefix is routed to the SRX by the upstream device. If the pool address sits on the directly connected external subnet and the upstream sends ARP requests, you must configure security nat proxy-arp on the egress interface.

Why does hairpin NAT fail on my SRX?

Hairpin requires three pieces: a destination NAT rule matching the inside zone, a source NAT rule so the server replies through the SRX, and a same-zone security policy. Missing the hairpin source NAT lets the server reply directly and break the session.

How do I troubleshoot SRX NAT64 traffic failures?

Confirm static NAT matches 64:ff9b::/96 with static-nat inet, and that the source NAT rule matches the translated IPv4 destination, not the IPv6 prefix. Check static and source rule counters plus the extensive flow session for both translated directions.