Howto disable ping to your Centos server
Simple steps to disable ping to your Centos linux server
Step 1: As root, open /etc/sysctl.conf for edit
nano -w /etc/sysctl.conf
Step 1.1: Add these lines in the bottom
net.ipv4.icmp_echo_ignore_broadcasts = 1 net.ipv4.icmp_echo_ignore_all = 1
Step 2: Restart sysctl to set the settings in effect
sysctl -p
This change will persist following a reboot.