Options

Access List question

Mr BigMr Big Member Posts: 47 ■■□□□□□□□□
I am writing some access list statements and on one of my statements I want any host to be able to access any port on a specific ip. How do I write that?

Example: I want any ip to access 55.77.88.99 on any port:

access-list 102 permit tcp any host 70.168.88.37 any ????

I type that in and it doesnt work

Comments

  • Options
    Danman32Danman32 Member Posts: 1,243
    By any port, do you mean FROM any port? We're dealing with networks and IPs, not ports, though ports are assigned networks.

    Where are you assigning this ACL, and in what direction? Just typing in an Access-list without assigning it doesn't do anything.
  • Options
    dmafteidmaftei Member Posts: 83 ■■□□□□□□□□
    access-list 102 permit tcp any host 70.168.88.37
    BSEE, MSCS
    www.maftei.net
  • Options
    marlon23marlon23 Member Posts: 164 ■■□□□□□□□□
    when you dont need to restrict/allow specific ports or ranges, you dont need tou use TCP as protocol in access list. IP is enought (btw: when you specify any any ports on tcp, and no other lines like permit ip any any, all of your UDP connections will be blocked!!! and other protocols too (icmp...))

    access-list 102 permit ip any host 55.77.88.99
    this will allow any ip to access 55.77.88.99 without port based restrictions
    LAB: 7609-S, 7606-S, 10008, 2x 7301, 7204, 7201 + bunch of ISRs & CAT switches
Sign In or Register to comment.