JNCIA-SEC and JNCIS-SEC lab 7 of 16
Policy-based VPN and traffic selectors
Build a policy-based VPN with pair policies and a NAT exemption alongside a route-based VPN with a traffic selector, compare how each picks its traffic, and read about dial-up.
Run this lab
It needs Standard: its 5 nodes are set to 7 vCPU and 10,752 MB in total.
In your workspace: Shared, then JNCIA-SEC and JNCIS-SEC SRX security guided labs, then 07 - Policy-based VPN and traffic selectors
- Level
- Intermediate
- Time
- About 70 minutes
- Nodes need
- 7 vCPU, 10,752 MB
- Smallest plan
- Standard
The scenario
Falmouth's accounts system must only ever talk to Poole's accounts LAN, and the auditors like to see that in the security policy itself. Meanwhile the engineering subnets also need a link, and your colleague wants to try traffic selectors. You'll build one of each between the same two firewalls, and see how they differ.
| Device | Interface | Address | Notes |
|---|---|---|---|
| ISP | Gi0/0 / Gi0/1 | 198.51.100.1/30 / 203.0.113.1/30 | The internet between the sites |
| SRX-HQ | ge-0/0/0 | 198.51.100.2/30 | Zone untrust, default route to the ISP |
| SRX-HQ | ge-0/0/1 | 10.10.10.1/24 | Zone trust, Poole LAN |
| HQ-PC | eth0 | 10.10.10.10/24 | Gateway 10.10.10.1 |
| SRX-BR | ge-0/0/0 | 203.0.113.2/30 | Zone untrust, default route to the ISP |
| SRX-BR | ge-0/0/1 | 10.20.10.1/24 | Zone trust, Falmouth LAN |
| BR-PC | eth0 | 10.20.10.10/24 | Gateway 10.20.10.1 |
| Second subnets (already on the LAN ports and the PCs) | Poole | Falmouth |
|---|---|---|
| Accounts: policy-based VPN | 10.10.10.0/24 (HQ-PC .10) | 10.20.10.0/24 (BR-PC .10) |
| Engineering: traffic selector | 10.10.30.0/24 (HQ-PC .10) | 10.20.30.0/24 (BR-PC .10) |
The algorithms match lab 6: DH group 20, SHA-256, AES-256-CBC, ESP with HMAC-SHA-256-128, PFS group 20, key Hartwell-VPN-2027. The proposals, policies and gateway GW-PEER are already configured on both SRXs, along with system-services ike on untrust. So only the VPNs themselves are left. There's one change from lab 6: the gateway here is IKEv1, in main mode. Task 1 explains why.
What you’ll practise
- Build a policy-based VPN with tunnel actions and pair policies
- Exempt VPN traffic from source NAT
- Read proxy IDs in SA detail
- Narrow a route-based VPN with traffic selectors and auto route insertion
- Explain the differences, and where dial-up and Secure Connect fit
The tasks
- A policy-based VPN
- Keep NAT out of it
- Traffic selectors on a route-based VPN
- Compare them
- Dial-up, as a concept
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- SRX-HQ
ge-0/0/0to ISPGi0/0 - SRX-BR
ge-0/0/0to ISPGi0/1 - SRX-HQ
ge-0/0/1to HQ-PCeth0 - SRX-BR
ge-0/0/1to BR-PCeth0
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| ISP | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| SRX-HQ | Juniper vSRX NextGen template | vsrxng-24.4R1.9 | 2 vCPU, 4,096 MB |
| SRX-BR | Juniper vSRX NextGen template | vsrxng-24.4R1.9 | 2 vCPU, 4,096 MB |
| HQ-PC | EVE-NG GUI server (Docker) | eve-gui-server:latest | 1 vCPU, 1,024 MB |
| BR-PC | EVE-NG GUI server (Docker) | eve-gui-server:latest | 1 vCPU, 1,024 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
JNCIA-SEC and JNCIS-SEC SRX security guided labs.Open
07 - Policy-based VPN and traffic selectorsand start its nodes, then open Lab Tasks for the scenario and the steps.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More JNCIA-SEC and JNCIS-SEC labs
All JNCIA-SEC and JNCIS-SEC labs
Related labs in other courses
CloudLabBox is independent of Cisco and Juniper Networks. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.