Scenario
R1 connects the User LAN (Gi0/0) to a DMZ (Gi0/1). The only DMZ host that matters is the web server at 10.2.50.80. Everyone in the User LAN may browse to it. Only the admin PC at 10.2.10.5 may log in with SSH. Everything else aimed at that server must be blocked, while traffic to any other destination stays untouched. An extended ACL can match source, destination, protocol and port, so you place it close to the source.
Topology
Requirements
- 1Any User LAN host can reach the web server on TCP 80
- 2... and on TCP 443
- 3Only the admin PC 10.2.10.5 can open SSH (TCP 22) to the server
- 4Every other kind of traffic to the server is denied, for example ping
- 5Traffic to other destinations is still permitted, for example 198.51.100.7
- 6WEB-IN is applied inbound on Gi0/0, close to the source
R1 forwards everything between the User LAN and the DMZ. Type ? for the commands you can use. Start with: enable
R1> show running-config
CCNA lab · about 12 min
Extended ACL: web and SSH to one server
Write a named extended ACL that opens only HTTP, HTTPS and admin SSH to a DMZ web server, leaves everything else alone, and bind it inbound near the source.
This lab is included in the CCNA plans and in the free trial.