ACL (Access Control List)

Quick definition
An Access Control List (ACL) is a set of rules configured on routers, switches, or firewalls that filters network traffic by permitting or denying data packets based on specified criteria.

An Access Control List (ACL) is a set of rules that filters network traffic on routers, switches, and firewalls. These rules determine which data packets are permitted or denied based on criteria such as source address, destination address, protocol type, and port numbers. ACLs serve as a fundamental security mechanism for controlling traffic flow across network boundaries.

How ACL Rules Filter Network Traffic

Every ACL consists of ordered statements that the network device evaluates sequentially. When a packet arrives at an interface, the device compares it against each rule from top to bottom. The first matching rule determines the packet's fate—either permit or deny. If no rule matches, most devices apply an implicit "deny all" at the end.

Consider a company wanting to block all incoming traffic from a specific IP range while allowing everything else. The administrator would create an ACL with a deny statement for that range, followed by a permit statement for all other traffic. The order matters critically here. Placing the permit statement first would allow the unwanted traffic through before the deny rule ever gets evaluated.

This sequential processing model means that more specific rules should appear before general ones. A rule permitting traffic from a single host must precede a rule denying traffic from the entire subnet containing that host. Otherwise, the broader deny statement blocks the intended exception.

Types of ACL in Router and Switch Configurations

Network devices typically support multiple ACL varieties, each suited to different filtering requirements.

Standard ACLs

Standard ACLs filter traffic based solely on source IP address. They offer simplicity but limited granularity. A standard ACL might block all traffic originating from a particular network segment, regardless of destination or service type. These are best placed close to the traffic destination to avoid inadvertently blocking legitimate flows.

Extended ACLs

Extended ACLs provide finer control by examining source address, destination address, protocol, and port numbers. For example, an extended ACL can permit HTTP traffic (port 80) to a web server while blocking SSH access (port 22) to the same machine. This granularity makes extended ACLs the workhorse of most enterprise configurations.

Named vs. Numbered ACLs

  • Numbered ACLs use numeric identifiers (e.g., 1-99 for standard, 100-199 for extended on Cisco devices)
  • Named ACLs use descriptive labels like "BLOCK_MARKETING_SUBNET," improving readability and documentation

Practical ACL Use Cases

ACLs appear throughout network infrastructure serving diverse security and operational purposes.

Use CaseExample Implementation
Perimeter defenseBlocking inbound traffic from known malicious IP ranges at the edge router
Internal segmentationRestricting finance department servers from development network access
Service protectionAllowing only HTTPS traffic to reach public-facing application servers
Management securityPermitting SSH connections only from designated administrator workstations

A retail organization might deploy ACLs to isolate point-of-sale terminals from general corporate traffic. The ACL permits communication between terminals and the payment processing server while denying access to internet resources or internal file shares. This containment strategy limits exposure if a terminal becomes compromised.

Common ACL Implementation Pitfalls

Despite their apparent simplicity, ACLs frequently cause operational headaches when misconfigured. One persistent mistake involves forgetting the implicit deny at the end of every ACL. Administrators sometimes add specific deny rules without including a final permit statement, inadvertently blocking all traffic not explicitly mentioned.

Rule ordering errors represent another common failure mode. A broadly permissive rule placed early in the list can negate carefully crafted restrictions that follow. Regular audits help catch these logical oversights before they create security gaps or service outages.

Performance degradation can occur when ACLs grow excessively long. Each packet must be compared against rules sequentially, and devices with thousands of ACL entries may experience measurable latency. Consolidating overlapping rules and removing obsolete entries helps maintain efficiency.

Finally, documentation gaps plague many organizations. Without clear records explaining why each rule exists, future administrators may hesitate to modify outdated ACLs, fearing unintended consequences. Comments within the ACL configuration and external documentation both prove valuable.

Best Practices for ACL Management

Effective ACL administration requires disciplined processes beyond initial configuration.

Design Principles

  • Apply the principle of least privilege—deny by default, permit only necessary traffic
  • Place extended ACLs close to the traffic source to drop unwanted packets early
  • Use named ACLs with descriptive identifiers reflecting business purpose
  • Group related rules logically and maintain consistent formatting

Operational Hygiene

Schedule periodic reviews to identify rules that no longer serve a purpose. Decommissioned servers, changed business requirements, and network redesigns all leave orphaned ACL entries. Removing these reduces complexity and potential attack surface.

Test changes in a lab environment before production deployment. A single misplaced rule can sever critical connectivity. Change management processes should require peer review for ACL modifications affecting production infrastructure.

Related terms