zNetLaB › Guided labs › Security
SRX: zones, policies, source NAT and a published server
Security Advanced 4 devices 4 checked tasks 100 points Plan lab
An SRX300 between two inside LANs and the internet. Bind the zones, let the users out with source NAT on the egress interface, and publish the server on 203.0.113.50 with a static rule. You build it in a browser, type real commands at each device, and every task below is
checked against the running configuration — so you find out it is wrong before anybody else does.
Open this lab in the simulator
The simulator runs in your browser with nothing to install. This lab is part of the full simulator: open it free for 7 days with a new account, then with a plan. It needs an account, which keeps your progress.
The scenario
An SRX300 between two inside LANs and the internet. Bind the zones, let the users out with source NAT on the egress interface, and publish the server on 203.0.113.50 with a static rule.
Your role: a security engineer. Level: Advanced Done when: all 4 goals show as passed (100 points).
Network status
Devices: 3 PCs, 1 router, cabled as drawn. No Layer 1 or Layer 2 faults: every link is connected and up. IN is a host with 192.168.1.10/24, gateway 192.168.1.1. OUT is a host with 203.0.113.20/24, gateway 203.0.113.1. SRV is a host with 192.168.2.20/24, gateway 192.168.2.1. FW starts with an empty configuration.
Known problems
None: nothing is misconfigured. The network is simply not finished: what the goals list is what you have to build or secure.
Goals
The trust host reaches the internet host (25 pts) The SRX answers ping from trust only (15 pts) Source NAT translates the trust LAN (25 pts) The internet host reaches the server on 203.0.113.50 (35 pts)
The activity, in order
The trust host reaches the internet host Address ge-0/0/0 (203.0.113.1/24) and ge-0/0/1 (192.168.1.1/24), bind them to zones untrust and trust, and permit trust to untrust.Why: Each goal is a state the lab can check on the running device. Verify with: show security policies The SRX answers ping from trust only Add host-inbound-traffic system-services ping on the trust interface and nothing on untrust.Why: Each goal is a state the lab can check on the running device. Verify with: show security zones Source NAT translates the trust LAN A source rule-set from zone trust to zone untrust matching 192.168.1.0/24 with then source-nat interface.Why: Each goal is a state the lab can check on the running device. Verify with: show security nat source rule all The internet host reaches the server on 203.0.113.50 Address ge-0/0/2 (192.168.2.1/24) in zone trust, a static rule-set from zone untrust mapping 203.0.113.50/32 to 192.168.2.20/32, and a policy from untrust to trust that permits it.Why: Each goal is a state the lab can check on the running device. Verify with: show security nat static rule all
Tips
Work in the order given: later goals depend on the earlier ones. After every change, run the verify command before moving on; do not guess. Stuck? Read the verify output first. It names the interface, neighbour or route that is wrong.
Why this matters
An SRX300 between two inside LANs and the internet. Bind the zones, let the users out with source NAT on the egress interface, and publish the server on 203.0.113.50 with a static rule.
What you will be able to do
The trust host reaches the internet host
The SRX answers ping from trust only
Source NAT translates the trust LAN
The internet host reaches the server on 203.0.113.50
The network
PC, SRX300 — 4 devices in all, already cabled.
Fa0 ge-0/0/1 Fa0 ge-0/0/0 Fa0 ge-0/0/2 IN 192.168.1.10/24 · gw 192.168.1.1 FW OUT 203.0.113.20/24 · gw 203.0.113.1 SRV 192.168.2.20/24 · gw 192.168.2.1 Drawn from this lab: devices, cables, ports and the addresses already set.
Device Model Address already set
IN PC 192.168.1.10 / 255.255.255.0 gw 192.168.1.1
FW SRX300 configure it
OUT PC 203.0.113.20 / 255.255.255.0 gw 203.0.113.1
SRV PC 192.168.2.20 / 255.255.255.0 gw 192.168.2.1
Cabling
IN Fa0 ↔ FW ge-0/0/1
OUT Fa0 ↔ FW ge-0/0/0
SRV Fa0 ↔ FW ge-0/0/2
What is configured at the start
Nothing is configured to start with beyond the addresses above: you build the configuration from a clean start.
Tasks, and how each one is checked
Every task is decided by reading the live network — a neighbour in FULL, a ping that succeeds, a line in the running configuration — not by looking for a keyword you typed. The same command shows you what the lab sees.
# Task Pts How to verify it yourself
1 The trust host reaches the internet host 25 On IN: ping 203.0.113.20 must succeed.
2 The SRX answers ping from trust only 15 On IN: ping 192.168.1.1 must succeed. and On OUT: ping 203.0.113.1 must fail — the policy blocks it.
3 Source NAT translates the trust LAN 25 On FW: show security nat source rule all output matches Translation hits\s+:\s+[1-9].
4 The internet host reaches the server on 203.0.113.50 35 On OUT: ping 203.0.113.50 must succeed.
Stuck? Ask the coach
Tell the coach what you see or what you tried. It gives you a hint, not the answer, the way a senior engineer would. Included with a free trial or any plan.
Ask the coach
Reference solution
Try it yourself first — the lab checks your work either way. This is one configuration that makes every task pass, device by device:
FW configure
set interfaces ge-0/0/0 unit 0 family inet address 203.0.113.1/24
set interfaces ge-0/0/1 unit 0 family inet address 192.168.1.1/24
set interfaces ge-0/0/2 unit 0 family inet address 192.168.2.1/24
set security zones security-zone trust interfaces ge-0/0/1.0 host-inbound-traffic system-services ping
set security zones security-zone trust interfaces ge-0/0/2.0
set security zones security-zone untrust interfaces ge-0/0/0.0
set security policies from-zone trust to-zone untrust policy ALLOW match source-address any destination-address any application any
set security policies from-zone trust to-zone untrust policy ALLOW then permit
set security nat source rule-set RS from zone trust
set security nat source rule-set RS to zone untrust
set security nat source rule-set RS rule R1 match source-address 192.168.1.0/24
set security nat source rule-set RS rule R1 then source-nat interface
set security nat static rule-set ST from zone untrust
set security nat static rule-set ST rule WEB match destination-address 203.0.113.50/32
set security nat static rule-set ST rule WEB then static-nat prefix 192.168.2.20/32
set security policies from-zone untrust to-zone trust policy IN match source-address any destination-address any application any
set security policies from-zone untrust to-zone trust policy IN then permit
commit
exit
Related labs
Where to start
The lessons are open to everyone, all guided labs are listed by track, and
plans explains what is free and what is not.
CCNA®, CCNP® and Cisco® are trademarks of Cisco Systems, Inc. zNetLaB is not affiliated with or endorsed by Cisco.
Try the simulator in your browser, no sign-up