12-26-2013 05:14 AM - edited 03-04-2019 09:56 PM
Hello all,
I have a cisco 2621 router. I just need to block ICMP echo. Actually I have Fa0/0 port configured with Public IP. Peoples can ping the public IP from outside world. I just want to block that. Please let me know the commands.
Thanks
Sooraj N
Solved! Go to Solution.
12-27-2013 03:38 AM
Sooraj
The access list i supplied will not stop ping from the inside network only the outside which is what you requested. If you want to stop ping to your public IP from the inside you need to apply an acl on the inside interface of your router.
If you want to test from outside and you have internet access go to this page and try a ping from there -
Jon
12-26-2013 05:24 AM
Sooraj
access-list 101 deny icmp any host
access-list 101 permit ip any any
int fa0/0
ip access-group 101 in
Note i have included a "permit ip any any" because there is an implicit deny at the end of any acl. You may already have an acl on the fa0/0 interface so you may need to add the icmp line to that. If you dohave an acl and it has a "permit ip any any" in it already make sure the icmp line goes before that.
Jon
12-26-2013 09:51 PM
Jon,
I did all the commands mentioned above. But I can ping my public IP inside the world. Means I can ping it from inside the network. Also I have no options to ping public Ip from outside the network.
12-27-2013 03:38 AM
Sooraj
The access list i supplied will not stop ping from the inside network only the outside which is what you requested. If you want to stop ping to your public IP from the inside you need to apply an acl on the inside interface of your router.
If you want to test from outside and you have internet access go to this page and try a ping from there -
Jon
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide