Turn off ICMP echo response
To avoid malicious attacks from ping, you may disable ICMP echo response by adding the following lines to /etc/sysctl.conf file.
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1
Then run the following command:
# sysctl -p



