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

R1

Requirements

  1. 1Any User LAN host can reach the web server on TCP 80
  2. 2... and on TCP 443
  3. 3Only the admin PC 10.2.10.5 can open SSH (TCP 22) to the server
  4. 4Every other kind of traffic to the server is denied, for example ping
  5. 5Traffic to other destinations is still permitted, for example 198.51.100.7
  6. 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.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

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.

About 12 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco router?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one router, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

Does this ACL block the replies from the server?

No. The ACL is bound inbound on the User LAN port, so it only inspects packets arriving from the users. Replies enter the router on Gi0/1, where nothing is applied. An ACL like this is stateless; it has no idea which packets are replies.

Why name the ACL instead of numbering it?

Named ACLs (ip access-list extended NAME) are easier to read and let you edit or delete single lines by sequence number. Numbered extended ACLs use 100-199 and 2000-2699.

What does eq 80 mean?

eq means equal: match that port number. You can also use gt, lt, neq and range. Well-known names such as www are accepted instead of 80.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.