Firewalls and VPNs lab 8 of 16
NAT and VPN together - exemptions identities and NAT-T
Connect an ASA site and a FortiGate site to an IOS head office. Exempt VPN traffic from the ASA's PAT with identity NAT, keep NAT out of the FortiGate's VPN policies, and bring up a tunnel to a FortiGate that sits behind its ISP's static NAT, where NAT traversal and a private IKE identity both have to be handled.
Run this lab
It needs Lite: its 6 nodes are set to 6 vCPU and 6,144 MB in total. That fits the free demo too.
In your workspace: Shared, then Firewalls and VPNs multi-vendor guided labs, then 08 - NAT and VPN together - exemptions identities and NAT-T
- Level
- Intermediate
- Time
- About 90 minutes
- Nodes need
- 6 vCPU, 6,144 MB
- Smallest plan
- Lite
The scenario
Quarry Lane Builders' Merchants runs its head office on a Cisco router. It has just bought a yard (site A) that came with a Cisco ASA, and it is opening a depot (site B) with a FortiGate on a business line. That line's ISP hands the FortiGate a shared-space address, 100.64.0.2, and maps it one to one to the public address 192.0.2.77. Both sites already reach the internet through NAT. Join both to HQ without breaking that.
| Device | Interface | Address | Notes |
|---|---|---|---|
| ISP | Gi0/0 / Gi0/1 / Gi0/2 / Lo0 | 203.0.113.1/30 / 198.51.100.1/30 / 100.64.0.1/30 / 192.0.2.80 | Static NAT 100.64.0.2 = 192.0.2.77; Lo0 is a web server |
| HQ | Gi0/0 / Lo0 | 203.0.113.2/30 / 10.0.0.1/24 | Lo0 stands in for the server LAN |
| A-FW | inside / outside | 10.1.0.1/24 / 198.51.100.2/30 | PAT for 10.1.0.0/24 |
| A-PC | Gi0/0 | 10.1.0.10/24 | |
| B-FW | port1 / port2 / to-HQ | 100.64.0.2/30 / 10.2.0.1/24 / 169.254.82.2 | Policy 1 is LAN-to-Internet with NAT |
| B-PC | Gi0/0 | 10.2.0.10/24 | |
| HQ Tunnel2 | VTI to B-FW | 169.254.82.1/30 |
| Tunnel | Design | Crypto | Key | Identities |
|---|---|---|---|---|
| A-FW to HQ | Crypto map on both, 10.1.0.0/24 to 10.0.0.0/24 | IKEv2 AES-256-GCM, PRF SHA-384, DH 20; ESP AES-256-GCM, PFS 20 | Quarry-ASA-27 | IP addresses |
| B-FW to HQ | Route-based on both (0.0.0.0/0 selectors) | IKEv2 DES/SHA-256, DH 14; ESP DES/SHA-256, PFS 14 | Quarry-FGT-27 | B-FW sends FQDN branch.example |
The FortiGate uses DES only because its evaluation licence offers nothing stronger; with a licence you would use AES-256-GCM and DH 19, 20 or 21, like the ASA tunnel.
What you’ll practise
- Explain where NAT happens relative to encryption on the ASA, IOS and FortiGate
- Exempt site-to-site traffic from PAT on the ASA with a section 1 identity NAT rule
- Keep FortiGate VPN policies separate from the internet policy, without NAT
- Recognise NAT traversal when a peer's address is translated 1:1 and no ports change
- Identify a peer behind NAT by FQDN instead of by its private address
- Verify NAT and VPN together with show nat detail, show crypto ikev2 sa detail and diagnose vpn ike gateway list
The tasks
- Where does NAT happen?
- A-FW to HQ
- B-FW to HQ, through the ISP's NAT
- Prove it
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
- ISP
Gi0/0to HQGi0/0 - ISP
Gi0/1to A-FWGi0/1 - ISP
Gi0/2to B-FWport1 - A-FW
Gi0/0to A-PCGi0/0 - B-FW
port2to B-PCGi0/0
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| ISP | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| HQ | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| A-FW | Cisco ASAv | asav-9.22.1.1-PLR-Licensed | 1 vCPU, 2,048 MB |
| A-PC | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| B-FW | Fortinet FortiGate | fortinet-FGT-v7.0.17.M-build0682 | 1 vCPU, 2,048 MB |
| B-PC | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
Firewalls and VPNs multi-vendor guided labs.Open
08 - NAT and VPN together - exemptions identities and NAT-Tand 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 Firewalls and VPNs labs
Related labs in other courses
CloudLabBox is independent of Check Point, Cisco, CompTIA, Fortinet, Juniper Networks, MikroTik, Netgate and Palo Alto Networks. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.