Monday, November 1, 2010

How to Disable PING Command on server

Command to disbale ping on the server:-

                            
                          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