ACL_Difference

Unanswered Question
May 4th, 2012

Hi Experts

what is the technical difference betwen:

access-list acl permit tcp host 10.10.10.10 eq 80 any ?

                               and

access-list acl permit tcp host 10.10.10.10 any eq 80 ?

it confuses a little bit

thanks

jamil

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 5 (2 ratings)
mayrojas Fri, 05/04/2012 - 10:52

Jamil,

The first one indicates that the packet from 10.10.10.10 will come with a source port 80. Since TCP connection start with a random source port, the ACL mostlikely is not going to be hit. In case of a Router, where they are more packet wise than connections, it may work, but for an ASA it wont, because a connection needs to be established prior a response on well known port is received.

The second one is more common, it usually allows connection to well known ports for the first SYN packet (in case of TCP connections). That will allow a connection establishment on the ASA firewall, then the return packets will be allowed preventing you the need of configuring ACLs with source ports.

Mike

dancicioiu Fri, 05/04/2012 - 10:49

Hi Ibrahim,

Source IP 10.10.10.10 source port 80 -> any IP destination any port destination

access-list acl permit tcp host 10.10.10.10 eq 80 any ?

Source IP 10.10.10.10 source port any -> any IP destination port destination 80

access-list acl permit tcp host 10.10.10.10 any eq 80 ?

Dan

Actions

Login or Register to take actions

This Discussion

Posted May 4, 2012 at 10:43 AM
Stats:
Replies:3 Avg. Rating:5
Views:320 Votes:0
Shares:0
Tags: asa
+

Related Content

Discussions Leaderboard

Rank Username Points
1 7,861
2 6,140
3 3,170
4 1,473
5 1,446