Standard Access List vs Extended Access List
Introduction
In networking, especially within Cisco IOS devices, access lists are fundamental tools for filtering traffic. They control which packets are permitted or denied as they traverse a router or switch. Practically speaking, this article explains the difference between a standard access list and an extended access list, detailing their structures, functions, and practical applications. By the end of the guide, you will understand when to use each type and how to configure them correctly That alone is useful..
What Is a Standard Access List?
A standard access list (also called a basic access list) filters traffic based solely on the source IP address. It does not inspect destination addresses, protocols, or port numbers. The syntax is simple:
access-list permit|deny [wildcard-mask]
- Number: Typically 1‑99 (or 1000‑1999 for extended lists, but standard lists use the lower range).
- Source-address: The IP address to match.
- Wildcard-mask: A bitwise inverse of the subnet mask that specifies which bits of the address are significant.
Key points
- Limited scope – only source IP matters.
- Placement – usually applied inbound on interfaces where inbound traffic needs to be filtered before it reaches the device.
- Performance – because the router only examines one field, standard lists are marginally faster than extended lists.
Example
access-list 10 deny 192.168.1.0 0.0.0.255
access-list 10 permit any
This list blocks all traffic from the 192.1.168.0/24 network and permits everything else.
What Is an Extended Access List?
An extended access list (often called a complex access list) provides granular control by matching multiple criteria: source IP, destination IP, source port, destination port, and protocol. The syntax is more flexible:
access-list permit|deny ?
- Protocol: Can be
ip,tcp,udp,icmp, orestablished. - Operator:
>(greater than),<(less than),=(equal),>=,<=,neq,eq. - Port-number: A specific TCP or UDP port, or the keyword
any. - Log: Adds a log entry when the rule matches, useful for troubleshooting.
Key points
- Comprehensive matching – filters based on both source and destination, plus ports and protocol.
- Number range: 100‑199 (standard IOS) or 2000‑2999 on newer platforms.
- Placement – can be applied inbound or outbound on any interface, giving greater flexibility.
Example
access-list 100 deny tcp any any eq 80
access-list 100 permit ip any any
This list denies all HTTP (port 80) traffic and permits any other IP traffic That alone is useful..
Key Differences
| Feature | Standard Access List | Extended Access List |
|---|---|---|
| Criteria matched | Source IP address only | Source IP, destination IP, protocol, source port, destination port |
| Number range | 1‑99 (or 1000‑1999) | 100‑199 (or 2000‑2999) |
| Complexity | Simple, easy to read | More complex, requires careful wildcard calculations |
| Typical use | Basic traffic control, e.Now, g. In real terms, , block a single subnet | Granular policies, e. g. |
Understanding these distinctions helps you decide which list type best fits a given security policy.
Configuring a Standard Access List
- Enter global configuration mode:
Router# configure terminal - Create the list (choose a number between 1‑99):
Router(config)# access-list 10 deny 10.0.0.0 0.255.255.255 - Add a permit statement (optional, but most lists end with a final deny):
Router(config)# access-list 10 permit any - Apply the list to an interface:
TheRouter(config)# interface GigabitEthernet0/1 Router(config-if)# ip access-group 10 ininkeyword means the list is evaluated on inbound traffic.
Tip: Because standard lists only filter source addresses, place them where inbound traffic enters the device to prevent unwanted traffic from reaching the router Worth keeping that in mind..
Configuring an Extended Access List
- Enter global configuration mode:
Router# configure terminal - Create the list (use a number between 100‑199):
Router(config)# access-list 100 deny tcp 192.168.1.0 0.0.0.255 host 10.0.0.5 eq 80 - Add additional permit or deny statements as needed:
Router(config)# access-list 100 permit ip any any - (Optional) Enable logging for debugging:
Router(config)# access-list 100 permit ip any any log - Apply the list to an interface (inbound or outbound):
Router(config)# interface GigabitEthernet0/2 Router(config-if)# ip access-group 100 out
Note: When using wildcards, remember they are the inverse of subnet masks. For a /24 network (255.255.255.0), the wildcard mask is 0.0.0.255.
Continuing the guide
After you have created the Standard list (the “simple” one) and attached it to an inbound interface, the next step is often to build a more detailed rule set when you need to consider additional factors such as the destination host, port numbers, or even whether traffic is coming toward or away from the router. That is where an Extended Access List comes into play.
Why an Extended List Matters
| Reason | Explanation |
|---|---|
| Granular control | By adding fields for destination IP, protocol, source/destination ports, and port ranges, you can differentiate a single source address into several distinct policies (e.g.Because of that, , allow HTTP on port 80 while denying HTTPS on port 443). |
| Outbound visibility | Because the list can be applied with out instead of in, you can limit traffic leaving the device without touching incoming connections. That's why this is essential for firewalls that act as a gateway. Now, |
| Complexity management | When many addresses share the same source, you may end up with dozens of line items. An extended list spreads those rules across two‑digit IDs (100‑199, 200‑299 …) so each entry remains readable at a glance. |
Basic Syntax for an Extended List
-
Enter global configuration mode (same as before):
Router# configure terminal -
Create the list – pick a number in the 100‑199 range:
Explanation: Deny TCP traffic destined for
10.0.0.5on port 80 from any source (192.168.1.0/24is the default source mask here). -
Add complementary statements, for example to allow normal web traffic elsewhere:
Or, if you wish to log every denied connection:
-
(Optional) Apply to both directions:
- For a blocking rule on outgoing traffic:
Router(config-if)# ip access-group 100 out - For a filtering rule on inbound traffic:
Router(config-if)# ip access-group 100 in
- For a blocking rule on outgoing traffic:
Wildcard reminder: When you supply a range, remember that the wildcard mask is the inverse of the subnet’s mask. 0.0) becomes
0.If you intended to match everything within that block, write the full dotted‑quad, not just0.Because of that, 255. That said, 0. Which means 255. Here's the thing — 0. Think about it: 0. A/24network (255.255. 0Took long enough..
Practical Example – Web‑Traffic Block
Suppose you want to stop a compromised host (10.Now, 0. 0.5) from reaching your public web server (192.Consider this: 168. 1.10) Turns out it matters..
# Extended list 100 – block denied traffic
access-list 100 deny tcp 10.0.0.5 any eq 80
access-list 100 deny tcp 10.0.0.5 any eq 443
# Permit everything else (optional)
access-list 100 permit ip any any
Then attach access-group 100 in to the interface that receives external in
Router(config)# interface GigabitEthernet0/1
Router(config-if)# ip access-group 100 in
Router(config-if)# exit
Once that line is in place, every packet arriving on GigabitEthernet0/1 is tested against list 100 in the order the entries were written. The two deny statements match first and drop the traffic; anything else falls through to the permit ip any any line and is forwarded normally Most people skip this — try not to..
Order of Evaluation Matters
An extended list is read top to bottom, and the first match wins. There is no "most specific rule" logic — specificity is irrelevant. Consider this ordering mistake:
access-list 100 permit ip any any
access-list 100 deny tcp 10.0.0.5 any eq 80
Here the deny line is unreachable. And the permit above it already matched every packet, so the router never evaluates the second statement. When troubleshooting, always check the sequence, not just the presence, of an entry Turns out it matters..
Every list also ends with an implicit deny any. If you omit the final permit, you have built a black hole that discards everything unmatched. This is the single most common cause of "I applied an ACL and now nothing works.
| Symptom | Likely cause |
|---|---|
| All traffic dropped after applying a list | Missing permit ip any any (implicit deny any) |
| A block rule seems to do nothing | An earlier, broader statement matched first |
| Rule blocks only one host, not a subnet | Wildcard mask left as 0.In practice, 0. So 0. 0 instead of `0.Now, 0. 0. |
Editing an Existing List
An access list is not edited in place — typing a modified line with the same number simply appends a new entry. To remove a statement you must target it by sequence number:
Router(config)# ip access-list extended BLOCK_WEB
Router(config-ext-nacl)# no 20
Router(config-ext-nacl)# 15 deny tcp 10.0.0.5 any eq 22
Router(config-ext-nacl)# exit
Named extended lists (the ip access-list extended <name> form) make this practical. Because entries carry visible sequence numbers, you can insert a rule at position 15 without rebuilding the whole list — something the numbered format only allows through the same sequence-number syntax, but which is far easier to read when the list grows past a dozen lines Nothing fancy..
A remark costs nothing and saves the next administrator hours:
Router(config)# ip access-list extended BLOCK_WEB
Router(config-ext-nacl)# remark Compromised host 10.0.0.5 - ticket INC4471
Router(config-ext-nacl)# deny tcp 10.0.0.5 any eq 80
Router(config-ext-nacl)# deny tcp 10.0.0.5 any eq 443
Router(config-ext-nacl)# permit ip any any log-input
The log-input keyword adds the receiving interface and source MAC address to the syslog message, which is often the detail you actually need when tracing a host back to a switch port The details matter here..
Verification
Two commands cover almost every check:
Router# show access-lists 100
Extended IP access list 100
10 deny tcp host 10.0.0.5 any eq www (1428 matches)
20 deny tcp host 10.0.0.5 any eq 443 (312 matches)
30 permit ip any any (98214 matches)
The match counters are the fastest signal that a rule is live. A deny with a zero count either is never being hit or sits behind a broader match. To confirm where the list is attached and in which direction: