Cisco Reflexive ACLs: A Temporary Rule for the Reply
A computer is allowed to contact an outside server, but the reply still has to pass the network's incoming traffic rules. Cisco reflexive access lists can create a temporary permission for traffic matching that outbound conversation.
An access control list, or ACL, is an ordered set of rules that permits or denies network traffic. A reflexive ACL adds entries dynamically: selected outgoing packets cause matching return rules to be created.
A packet is a small unit of network data. The rule can match network addresses and the protocol, the rules the packet follows for communication. It doesn't start an application listening for connections.
How a Router Decides What Gets Through
The reply reverses the addresses
Suppose an internal computer sends traffic from one numbered port to a service port on an outside server. A port is a number that helps direct traffic to the right program on a device. Return traffic swaps those source and destination details.
| Field | Outgoing traffic | Matching return traffic |
|---|---|---|
| Source address | Internal computer | Outside server |
| Destination address | Outside server | Internal computer |
| Source port | Computer's port | Server's port |
| Destination port | Server's port | Computer's port |
The protocol stays the same. Cisco's reflexive access-list documentation describes this reversal as the basis for temporary entries. Traffic with different address or port details won't match that entry.
The surrounding rules still apply
Reflexive entries work within configured extended access lists, whose rules can consider several packet fields. Their order matters: an earlier matching rule can determine what happens before the reflection rule is reached.
Matching also has limits. Some applications use additional connections with different ports. Cisco's Catalyst 9600 guide for IOS XE 17.13 describes this restriction. The behavior described here is documented for that platform and release.
The packet fields establish a match to a rule, rather than authenticating a person or inspecting the application's content. A permitted conversation can still carry unwanted data.
- Configure a router or switch straight from your laptop's USB port.
- Get back into a device you can't reach over the network.
- Use it with Windows, Mac or Linux, so one cable covers every laptop you own.
How the permission expires
For Transmission Control Protocol, or TCP, an entry can be removed in response to connection-closing signals or inactivity. A page appearing in the browser isn't the event that tells the ACL the conversation is over.
User Datagram Protocol, or UDP, doesn't provide the same TCP closing sequence. Reflexive entries can still support its return traffic by expiring after inactivity.
Once the relevant closure or timeout condition removes the temporary entry, that permission is gone. The remaining access-list rules decide what happens to the next arriving packet.
Cisco Extended ACLs: The Rule Order Can Change Everything

Stateful Inspection: A Firewall Remembers the Conversation

Source Ports: The Number Changes Roles When the Reply Returns

QUOTE:
"Amateurs hack systems, professionals hack people."
