cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2556
Views
0
Helpful
2
Replies

Deny ICMP, Allow SSH

damianrodriguez
Level 1
Level 1

Hi, i hava a cisco 2960. I set an acl to block icmp but i can not conect using ssh now.

1 Accepted Solution

Accepted Solutions

Reza Sharifi
Hall of Fame
Hall of Fame

Hi Damian,

Remember that there is a default deny ip any any at the end of any access list.

So you need to add:

"access-list xxx permit IP any any" at the end of your access list to allow every thing else

HTH

Reza

View solution in original post

2 Replies 2

Reza Sharifi
Hall of Fame
Hall of Fame

Hi Damian,

Remember that there is a default deny ip any any at the end of any access list.

So you need to add:

"access-list xxx permit IP any any" at the end of your access list to allow every thing else

HTH

Reza

Hi,

Perhaps the ACL is not just blocking ICMP.

If the ACL blocks SSH as well, that might be the problem.

Check out that the statement is something like this:

access-list 101 deny icmp any host x.x.x.x

The above ACL will only block ICMP.

Another important thing is that if you only have the above line, all subsequent connections are going to be blocked (because there's an implicit deny everything else at the end of the ACL).

So, if your goal is to deny only ICMP, enter the above line and then:

access-list 101 permit ip any any

Hope it helps.

Federico.

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