cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1099
Views
0
Helpful
4
Replies

extended ACL block telnet visit

dannan lin
Level 1
Level 1

2012-06-29_231729.jpg

hi:

i have a scenario like above.  i wanted to allow R1 telnet R3, but R3 couldn't telnet R1.

i put an acl on f0/1 of R2 with "in" direction.

    10 permit tcp host 2.2.2.2 host 1.1.1.1 established

it worked, however it didn't work if i used following acl

           10 permit tcp host 2.2.2.2 host 1.1.1.1 eq telnet established

above acl will block telnet from both sides.

i think the problem lies with "telnet", but what caused this ? isn't telnet a part of tcp protocol suit (port 23)  ļ¼Ÿ

Your help is much appreciated.

have a nice day.

1 Accepted Solution

Accepted Solutions

Richard Burts
Hall of Fame
Hall of Fame

The way that you have made the access list entry telnet would be the destination port. But when R3 sends response to R1 then telnet will be the source port. I think that your original access list is ok but if you want to make it more specific then try this version

permit tcp host 2.2.2.2 eq telnet  host 1.1.1.1 established

HTH

Rick

HTH

Rick

View solution in original post

4 Replies 4

Richard Burts
Hall of Fame
Hall of Fame

The way that you have made the access list entry telnet would be the destination port. But when R3 sends response to R1 then telnet will be the source port. I think that your original access list is ok but if you want to make it more specific then try this version

permit tcp host 2.2.2.2 eq telnet  host 1.1.1.1 established

HTH

Rick

HTH

Rick

thanks Richardļ¼Œ it workedļ¼Œ but i have an additional question .what if i still want my eigrp hello packets to pass through, in other words i still want to keep my routing table. i cannot use another  permit statements can i ? 

thanks for spending your valueable time on such simple questions.

You can allow eigrp through in your acl:

permit eigrp any any

HTH,

John

HTH, John *** Please rate all useful posts ***

thanks richards.

Review Cisco Networking products for a $25 gift card