Linux : How do I disable the ping response?-Method -2

In this method we are going to use IpTables . make sure its installed   ..

Method 2:

run this to disable ping response:

iptables   -I   INPUT   -i   ech0   -p     icmp   -s   0/0   -d   0/0     -j   DROP

and this to allow ping response:

iptables   -I   INPUT   -i   ech0   -p     icmp   -s   0/0   -d   0/0     -j   ACCEPT

Done !!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.