Friday 20 May 2011

How to Disable PING Command on server


//** Command to disable ping on the server solution given below **//:--

                            
 Step 1>

Command to disable PING:-

echo "1" >> /proc/sys/net/ipv4/icmp_echo_ignore_all

********************************************
                             
 Step 2>

Command to enable PING :-

echo "0" >> /proc/sys/net/ipv4/icmp_echo_ignore_all

**********************************************
                              
Step 3>

**Note:--Ping can also be disbale to following command :-

# iptables -A INPUT -p icmp -j DROP

--------------------------************----------------------------

No comments:

Post a Comment