Lab 3 — ACLs & NAT
One edge router, one LAN, one public address.
Lock down remote access, filter what crosses the boundary, then let the whole LAN share one public address. Work through it in order — check steps off, copy the commands, and finish with the show commands.
Interactive lab — play with it
A simulated CLI for this lab. Click R1 or the Admin PC, type the commands, and watch the ACL counters and NAT table move as traffic flows.
A simulated CLI for this lab — click R1 or the Admin PC, type the commands, and watch the ACL counters and NAT table move only when real traffic flows. This models Lab 3’s commands only, not a real router: unsupported commands say so instead of faking it. Type ? for help and use Tab to complete a command.
Microsoft Windows [Version 10.0.19045.0]
(c) Microsoft Corporation. All rights reserved.
Up/down arrows recall commands. The full command list is in the walkthrough below.
Interactive lab
Lab 3 — ACLs & NAT
An edge router with a LAN behind it and the internet in front. Lock down remote access, filter the boundary, then let the whole LAN share one public address.
Click a device to open its console, type the real commands, and check your work when you think it’s done. The lab checks each step as you go.
Walkthrough — commands in order
An edge router with a LAN behind it and the internet in front. Lock down remote access, filter what crosses the boundary, then let the whole LAN share one public address.
Inside LAN 192.168.1.0/24 ── G0/0 [R1] G0/1 ── Internet (203.0.113.2) Server 192.168.1.10:80 · Admin PC 192.168.1.5
Where this shows up in the data center
This is the same posture as the firewall rules on OPNsense in my home lab and the access controls on management interfaces in the data center: only the management network reaches a service processor like ILOM, deny by default, permit explicitly. PAT is exactly what the home firewall does for the whole house — one public address, many inside hosts. And the standard-vs-extended placement rule is the same thinking as putting a filter as close to the problem as it can actually solve it.
R1(config)# access-list 10 permit 192.168.1.0 0.0.0.255 R1(config)# line vty 0 4 R1(config-line)# access-class 10 in R1(config-line)# transport input ssh
access-class applies an ACL to VTY lines; access-group applies one to an interface. Mixing them up is a classic mistake.
R1(config)# access-list 101 deny tcp 192.168.1.0 0.0.0.255 any eq 23 R1(config)# access-list 101 permit ip any any R1(config)# interface g0/0 R1(config-if)# ip access-group 101 out
Every ACL ends with an implicit deny ip any any. The explicit permit ip any any above it is what keeps the rest of the traffic flowing.
R1(config)# access-list 100 permit tcp any any established R1(config)# access-list 100 permit icmp any any echo-reply R1(config)# access-list 100 deny ip any any log R1(config)# interface g0/1 R1(config-if)# ip access-group 100 in
"established" matches packets with the ACK or RST bits set — return traffic from a session the LAN started, not new connections from outside.
R1(config)# interface g0/0 R1(config-if)# ip nat inside R1(config-if)# interface g0/1 R1(config-if)# ip nat outside R1(config)# access-list 1 permit 192.168.1.0 0.0.0.255 R1(config)# ip nat inside source list 1 interface g0/1 overload
The access list here isn’t a filter — it defines which inside addresses are eligible for translation.
R1(config)# ip nat inside source static tcp 192.168.1.10 80 interface g0/1 8080
Static mappings are checked before the PAT pool, so the server always gets the same outside port.
Verify it worked
Don’t trust the config until a show command proves it. These are the outputs you should see — if yours differ, that’s the troubleshooting.
R1# show access-lists
Standard IP access list 10
10 permit 192.168.1.0, wildcard bits 0.0.0.255 (12 matches)
Extended IP access list 100
10 permit tcp any any established (48 matches)
20 permit icmp any any echo-reply (4 matches)
30 deny ip any any log (7 matches)
Extended IP access list 101
10 deny tcp 192.168.1.0 0.0.0.255 any eq telnet (2 matches)
20 permit ip any any (61 matches)R1# show ip nat translations
Pro Inside global Inside local Outside local Outside global tcp 203.0.113.2:1024 192.168.1.5:49210 8.8.8.8:443 8.8.8.8:443 tcp 203.0.113.2:8080 192.168.1.10:80 --- ---
R1# show ip nat statistics
Total active translations: 2 (0 static, 2 dynamic; 1 extended) Peak translations: 2 Outside interfaces: GigabitEthernet0/1 Inside interfaces: GigabitEthernet0/0 Hits: 62 Misses: 0
Check yourself
Three questions from the exam angle. Tap to reveal the answer — say it out loud first.
Q1. What sits at the end of every ACL?
Q2. Standard ACLs go close to the destination, extended close to the source. Why?
Q3. What does "overload" do in a NAT statement?
Next labs:
Keep going: Lab 4 — Inter-VLAN Routing routes between the VLANs you built in Lab 1, or revisit Lab 1 — VLANs, Trunking & STP or Lab 2 — OSPF. All labs are on the labs hub.