How to disable ICMP ping request/reply from RHEL/CentOS Server
Disabling ping request have many of benefit , it prevents discovery of ping request or to avoid network congestion.
Add below line in /etc/sysctl.conf
#vi /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1
#sysctl -p
now, reboot system .
Add below line in /etc/sysctl.conf
#vi /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1
#sysctl -p
now, reboot system .