Blocking Ping with Standard ACL

15 minsSimneta AcademyOct 18, 2026

Protect sensitive network hosts by deploying packet filtering. Learn how to create a numbered Standard Access Control List (ACL) on a router interface to restrict unauthorized source IP addresses while maintaining legitimate traffic flow.

In an open network, any device can freely ping or initiate connections to any other device. While this open model is convenient during initial setup, it exposes sensitive accounting servers, database clusters, and executive workstations to unauthorized probing from visitor subnets.

An Access Control List (ACL) is an ordered set of rules used by routers to inspect packet headers and decide whether each packet should be forwarded (permit) or discarded (deny). In this tutorial, you will configure a Standard ACL on a router interface to block ping traffic from a guest subnet while permitting authorized office traffic.

Standard Access Control Lists represent the simplest and fastest form of router security filtering. By checking only the source IPv4 address in the packet header, routers make instant forwarding decisions with negligible CPU overhead.

You will learn how routers process access lists sequentially from top to bottom, discover how the invisible implicit deny rule affects network traffic, and verify security policy enforcement using command line match counters.

Network Architecture Plan

SegmentInterfaceSubnet / AddressFunctional Role
Core RouterGi0/0 - Gi0/2Multi-Interface GatewayPerimeter Packet Filter
Staff Office SubnetFastEthernet0192.168.10.10/24Authorized Workstation
Guest Lounge SubnetFastEthernet0192.168.20.10/24Restricted Guest Workstation
Finance Accounting ServerFastEthernet0172.16.1.50/24Protected Resource Server
1

How Access Lists Work

A router evaluates an ACL top-to-bottom, line-by-line. As soon as a packet header matches a rule condition, the router executes the permit or deny action immediately and stops evaluating further statements.

Standard ACLs (numbered 1 to 99 and 1300 to 1999 in Cisco IOS) evaluate only the Source IPv4 Address of the packet. Because they do not inspect destination addresses, protocol numbers, or TCP/UDP ports, standard ACLs apply blunt filtering.

Because standard ACLs cannot inspect destinations, network engineers follow a golden placement rule: Place Standard ACLs as close to the destination as possible.

If you placed a standard ACL near the source on the guest router interface, it would prevent the guest from reaching any network at all, including legitimate public internet gateways.

Modern enterprise routers and multilayer switches process Access Control Lists directly in high-speed hardware using Ternary Content Addressable Memory (TCAM). TCAM evaluates every packet against all ACL rules in parallel in a single clock cycle, ensuring zero latency impact on production network throughput.

Standard vs Extended Access Lists Comparison:

Standard ACL (1-99 / 1300-1999): Filters strictly by Source IP address. Placed close to the destination to avoid over-blocking.
Extended ACL (100-199 / 2000-2699): Filters by Source IP, Destination IP, Protocol (TCP, UDP, ICMP), and Port numbers (e.g., port 80 HTTP, port 443 HTTPS). Placed close to the source to conserve network bandwidth.

In this lab, we use Standard ACL 10 to protect the Finance Accounting Server while allowing guests to access other general network resources.

Field Architecture Insight

Placement Golden Rule: Standard ACLs belong near the destination because they cannot differentiate between destinations. Extended ACLs belong near the source to discard unwanted traffic before it travels across WAN links.

2

The Implicit Deny Rule

Every ACL contains an invisible statement at the very bottom: deny any. If a packet reaches the end of the rule list without matching any previous line, the router drops it silently.

Because of this implicit deny all behavior, an ACL consisting only of deny statements will block 100% of all network traffic! To allow legitimate traffic through, an administrator must always include at least one permit statement.

To match specific computers, Cisco IOS uses wildcard masks or convenience keywords. The keyword host 192.168.20.10 is equivalent to writing 192.168.20.10 0.0.0.0, instructing the router to match all 32 bits exactly.

ACL Evaluation Logic Flow
Incoming Packet Arrives on Router Interface:
  Step 1: Does Source IP match Line 10 (deny host 192.168.20.10)?
          -> IF YES: DROP PACKET IMMEDIATELY (Stop evaluating).
  Step 2: Does Source IP match Line 20 (permit any)?
          -> IF YES: FORWARD PACKET (Stop evaluating).
  Step 3: Implicit Deny All (Invisible Catch-All):
          -> DROP PACKET.

Understanding Wildcard Matching Logic:

host 192.168.20.10: Matches one exact host IP. In binary, a wildcard 0 means the corresponding bit must match exactly.
permit any: Matches all possible source addresses. The keyword any is shorthand for 0.0.0.0 255.255.255.255, where wildcard 255 means ignore this bit.
The Golden Order: More specific rules must always appear above general rules. If you placed permit any on Line 1, all packets would match Line 1 immediately, and the deny rule on Line 2 would never execute.
Field Architecture Insight

Ordering Caution: Cisco routers evaluate ACL entries in sequential order. Always place specific host deny rules before broad subnet permit rules; otherwise, the broad permit rule matches first and bypasses your security policy.

3

Configuring Standard ACL 10

Open the console on the Core Router. We will create Standard ACL 10 with two specific rules:

First, deny traffic originating from the Guest Workstation at 192.168.20.10. Second, permit all other authorized office traffic.

Notice how simple the syntax is compared to firewall policy definitions.

Standard ACL 10 Configuration CLI
Router# configure terminal
Router(config)# access-list 10 deny host 192.168.20.10
Router(config)# access-list 10 permit any
Router(config)# exit

Parameter-by-Parameter Command Breakdown:

access-list 10: Declares a standard numbered access list within the standard range (1 to 99).
deny host 192.168.20.10: The first filtering rule. Discards all packets whose source IP address matches 192.168.20.10.
permit any: The second filtering rule. Explicitly permits all other traffic, overriding the invisible implicit deny all statement that sits at the bottom of the list.

With these two lines in memory, the router is ready to filter packets once the ACL is bound to an interface.

Field Architecture Insight

Editing Tip: In classic Cisco IOS numbered ACLs, you cannot delete a single line using no access-list 10 deny... without deleting the entire ACL! Use named ACLs (ip access-list standard NAME) in enterprise networks to edit individual sequence numbers.

4

Applying the Outbound Filter

Creating an ACL does nothing until you attach it to an interface using the ip access-group command. We navigate to interface GigabitEthernet0/2 (the link leading directly to the Finance Accounting Server) and apply it outbound.

Applying outbound means the router inspects packets just before they exit the interface toward the protected server.

By applying the rule outbound on interface Gi0/2, we protect the Finance Server without interfering with any other traffic moving between Staff, Guest, and external internet links.

Interface Access Group Application CLI
Router# configure terminal
Router(config)# interface GigabitEthernet0/2
Router(config-if)# ip access-group 10 out
Router(config-if)# exit
Router(config)# exit

Analyzing Inbound vs Outbound Filtering:

in (Inbound): Packets are filtered immediately upon entering the router interface, before the routing table lookup occurs. If the packet is denied, the router avoids wasting CPU cycles on routing lookups.
out (Outbound): Packets are routed first to determine their egress interface, then inspected against the outbound ACL before being queued on the physical wire.
Why Outbound Here: Applying outbound on Gi0/2 ensures that guest packets heading toward any other port (such as an internet gateway on Gi0/3) are permitted, while packets attempting to leave via Gi0/2 toward the Finance Server are blocked.
Field Architecture Insight

Directional Rule: Only one ACL can be applied per protocol, per direction, per interface. An interface can have at most one inbound IPv4 ACL and one outbound IPv4 ACL simultaneously.

5

Verifying Match Hit Counters

First, open the terminal on the Staff Workstation (192.168.10.10) and ping the Finance Server at 172.16.1.50. The pings succeed with 0% packet loss.

Next, open the terminal on the Guest Workstation (192.168.20.10) and attempt the same ping. The pings fail with Destination host unreachable or timeouts.

Finally, run show access-lists 10 on the router to inspect rule match counters.

Terminal Session Output
Console Verification
# Verification on Protected Router
Router# show access-lists 10
Standard IP access list 10
10 deny host 192.168.20.10 (4 matches)
20 permit any (4 matches)

Interpreting Match Counters:

10 deny host 192.168.20.10 (4 matches): Proves that all four ICMP Echo Request packets sent by the Guest Workstation were intercepted by Line 10 and dropped before reaching the Finance Server wire.
20 permit any (4 matches): Confirms that four packets from the Staff Workstation passed through Line 20 without being obstructed.
ICMP Error Feedback: Depending on router configuration, the router may send an ICMP Type 3 Code 13 (Communication Administratively Prohibited) message back to the guest, immediately informing the user that traffic was blocked by a firewall policy.

To reset the match counters during active troubleshooting, administrators can run the privileged command clear access-list counters 10.

Field Architecture Insight

Monitoring Tip: In live production networks, match counters are crucial for identifying active network attacks or misconfigured client applications that continue blasting requests against blocked ports.

Key Takeaways: Standard Access Control Lists filter packets based on source IP address. Always remember that an invisible implicit deny exists at the end of every ACL, requiring at least one permit statement to maintain legitimate traffic flow.
#access-control-lists #acl #packet-filtering #network-security #traffic-filtering #router-security

Discussion & Community Notes

Ask questions, share configuration tips, or discuss this laboratory topology.

0 Comments
Posting as Guest • 1-level replies supported
Loading discussion thread...