Background Information: Cisco ASA Packet Process Algorithm
Background Information: Cisco ASA Packet Process Algorithm
The interface that receives the packet is called the ingress interface and the interface through
which the packet exits is called the egress interface. When you refer to the packet flow through
any device, the task is easily simplified if you look at it in terms of these two interfaces. Here is a
sample scenario:
When an inside user (192.168.10.5) attempts to access a web server in the demilitarized zone
(DMZ) network (172.16.10.5), the packet flow looks like this:
After you determine the details of the packet flow as described here, it is easy to isolate the issue
to this specific connection entry.
Here is a diagram of how the Cisco ASA processes the packet that it receives:
Scenario : So here is a packet initiated from Inside to the Outside [ingress to egress].
ASA will check for the TCP flag if its a TCP packet. If the packet
contains a SYN flag, then the new connection entry will be created
in the connection table(connection counter gets incremented). Other
than SYN flag, the packet will be discarded and a log entry will be
created.
4) ASA check the packet again the interface Access Control Lists
(ACL). If the packet matches with an allowed ACL entry, it moves
forward to the next step. Otherwise, the packet will be dropped. (The
ACL hit counter gets incremented when there is a valid ACL match.)
9) On the egress interface, the interface route lookup will be performed.
10) Once a Layer 3 route has been found and the next hop identified,
Layer 2 resolution is performed. Layer 2 rewrite of MAC header happens
at this stage.
11) Finally the packet will be forwarded by the ASA to the next hop.
https://www.jaacostan.com/2018/03/cisco-asa-firewall-packet-
flowmode-of.html
https://www.cisco.com/c/en/us/support/docs/security/asa-5500-x-
series-next-generation-firewalls/113396-asa-packet-flow-00.html
https://networkwizkid.com/2017/10/12/asa-packet-processing-post-
8-3-code/