cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2025
Views
0
Helpful
3
Replies

Maintaining UDP Sessions on PIX/ASA

haithamnofal
Level 3
Level 3

Hi,

I have a question related to how PIX/ASA firewalls maintain UDP session information. My understanding is that when there is a UDP connection from a lower to a higher security zone, the UDP server (e.g. DNS) in the higher security zone responds to the UDP query even if the outbound UDP is blocked (i.e. even if there is excplicit ACL blocking DNS traffic from inside to outside).

So, how would the FW track the different UDP sessions while UDP is connectionless protocol. I can understand it with TCP as TCP sessions have unique session numbers, but how is that dealt with UDP protocols?

Thanks,

Haitham

1 Accepted Solution

Accepted Solutions

TCP doesn't have a notion of a session number. Hosts track TCP sessions the same way as UDP; Via the 4-tuple of the connection ip's and ports.

View solution in original post

3 Replies 3

Jay Johnston
Cisco Employee
Cisco Employee

Your first statement is not true, since if the pix allowed the inbound packet from the outside to the inside, then it would also build a connection in its connection table. If the reply packet matched this connection it would be allowed through the firewall, regardless if there was an inbound acl applied on the inside interface, or an outbound acl applied to the outside interface.

The firewall tracks UDP sessions by the 4 touple of the UDP connection: SRC IP and port DST ip and port. It does the exact same thing with UDP. Any firewall works this way.

Hi,

Thanks for your reply.

What you said doesn't conflict with my original statement that the FW doesn't require an explicit ACL to permit UDP or TCP responses as you can read in my first paragraph.

Ok, so it makes sense that the FW keeps track of UDP sessions using the SRC/DST ip and port numbers. On the other hand, with TCP connections won't the FW also keep records of session number besides the SRC/DST ip and port?

Regards,

Haitham

TCP doesn't have a notion of a session number. Hosts track TCP sessions the same way as UDP; Via the 4-tuple of the connection ip's and ports.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card