Disable ICMP ping request on cpanel server

If you want to disable ICMP Ping request on Linux server then follow the below steps

Ping command is basically working on sending an Internet Control Message Protocol (ICMP) echo request packets to the target host and waiting for an ICMP response. To enable the PING refer to the following URL and make sure that you have logged in as a root user.

echo “0” >> /proc/sys/net/ipv4/icmp_echo_ignore_all

In order to stop ICMP attack, most of the server is disabled the PING command to secure the server, refer to the following command to disable the PING command.

echo “1” >> /proc/sys/net/ipv4/icmp_echo_ignore_all

You can disable ping request trough sysctl.conf

vi /etc/sysctl.conf

: net.ipv4.icmp_echo_ignore_all = 1

Then run “sysctl -p”

Now you have successfully disabled ICMP Ping request on Linux server.