Network Bytes · Episode 109 · CCNA 5.6
"Standard vs extended ACLs"
A standard access list checks only the source IP address of each packet. An extended access list can also check the destination, the protocol and the port, so it can block one path instead of a whole PC. Put extended lists near the source and standard lists near the destination.
The access list as a bouncer
An access control list (ACL) is a list of rules on a router interface. Like a bouncer at a door, the router checks each packet against the rules from top to bottom, and the first rule that matches decides: permit or deny. If no rule matches, the packet hits the invisible last rule, the implicit deny, and is dropped. Cisco routers have two main kinds of IPv4 access list, and the difference is how much of the packet the bouncer looks at.
Standard lists: source only
A standard access list checks only one thing: the source IP address, who sent the packet. A rule such as access-list 10 deny host 10.1.1.10 stops every packet from that PC, whatever it is trying to reach. Standard lists are simple and quick to write, but they are blunt: they cannot tell one destination or one application from another.
Extended lists: source, destination, protocol and port
An extended access list can match much more: the protocol (IP, TCP, UDP, ICMP and so on), the source and destination addresses, and for TCP or UDP the port numbers, like 80 and 443 for web or 25 for sending email. A rule such as access-list 110 deny tcp host 10.1.1.10 host 10.2.2.20 eq 80 blocks only web traffic from one PC to one server. Everything else that PC sends can still be allowed by a later permit rule.
Where to put each one
Cisco's classic rule of thumb: put extended lists near the source, so unwanted traffic is dropped early before it crosses the network, and put standard lists near the destination. A standard list can't tell destinations apart, so if you put it near the source it would block that PC from everything behind the router, not just the network you meant to protect. Real designs can differ, but this is the guideline the CCNA expects.
Try it yourself
In Cisco Packet Tracer, build PC - router - two servers. On the router, create access-list 110 deny icmp host <PC address> host <server A address> followed by access-list 110 permit ip any any, and apply it inbound on the interface facing the PC with ip access-group 110 in. Now ping both servers from the PC: server A fails, server B still answers. Then try a standard list instead (access-list 10 deny host <PC address>, access-list 10 permit any) on the same interface and watch both pings fail. Use show access-lists to see the match counters go up.
Good to know
- CCNA 5.6 asks you to configure and verify access control lists. EP57 introduces ACLs as "the network bouncer" and EP96 covers wildcard masks; EP15 covers common ports.
- Standard IPv4 ACLs (numbered 1-99 and 1300-1999, or named) match only the source IP address.
- Extended IPv4 ACLs (numbered 100-199 and 2000-2699, or named) can match the protocol, source and destination addresses, and TCP or UDP source and destination ports.
- "Like web or email" means well-known destination ports such as 80 and 443 for web and 25 for sending email.
- Placement rule of thumb: extended ACLs close to the source so unwanted traffic is dropped early, standard ACLs close to the destination because they would otherwise block too much. Real designs can differ.
- Both kinds end with an implicit "deny any", which the video leaves out. The on-screen rule
deny tcp any any eq 22is a real extended entry; a working list would also need apermitentry after it.
For CCNA learners
CCNA exam topic 5.6 asks you to configure and verify access control lists. Know that standard ACLs match only the source address and go near the destination, while extended ACLs match source, destination, protocol and port and go near the source.
Answer to the comment question
SSH (Secure Shell). SSH uses TCP port 22, so an extended rule like deny tcp any any eq 22 blocks SSH remote logins to the devices it covers. Only an extended list can do this, because a standard list can't look at ports.
Test your knowledge
Quick quiz: "Standard vs extended ACLs"
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- Cisco, "Configure Commonly Used IP ACLs" (Document 26448): standard and extended ACL examples that match source, destination, protocol and port
- Cisco, "Configuring IP Access Lists" (Document 23602): the implicit deny, and where to place standard and extended lists
- Cisco Learning Network, "CCNA Exam Topics": the 200-301 blueprint, 5.6 configure and verify access control lists
Video transcript
Why do routers have two kinds of access lists?
Remember the access list: a bouncer that checks each packet against a list of rules.
A standard access list is a simple bouncer. It checks only one thing: who sent the packet, the source IP address.
An extended access list checks much more: the source, the destination, the protocol, and even the port, like web or email.
So a standard list can block a whole PC. An extended list can block just that PC from just one server.
A simple rule of thumb: put extended lists near the source, and standard lists near the destination.
An extended access list blocks TCP port 22. Which remote-login protocol is blocked? Comment your answer below!
That's your byte.
More from Network Bytes
- EP106"Overlay, underlay and fabric"
- EP107"Security awareness and physical access control"
- EP111"Interface errors: CRC and runts"
- EP112"Cloud-managed switches and access points"