Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to disable ICMP ping request in cPanel  (Read 5055 times)

0 Members and 1 Guest are viewing this topic.

mohitht

  • Guest
How to disable ICMP ping request in cPanel
« on: January 14, 2014, 07:00:45 pm »
Hi All,

The ping request is working on the ICMP echo request in internet. ICMP packets will send to the destination and finally wait for the response. In servers due to the ICMP attacks the ping should be disabled to protect the server.

So first we can check How to enable Ping


# echo “0″ >> /proc/sys/net/ipv4/icmp_echo_ignore_all



To disable the ping command follow the below step

# echo “1″ >> /proc/sys/net/ipv4/icmp_echo_ignore_all

we can disable the ping request also by editing the sysctl.conf file

edit the configuration file by

# vi /etc/sysctl.conf


change the line below

: net.ipv4.icmp_echo_ignore_all = 1

save and quit.. After editing just run the following command

# sysctl -p[ /b]


That's It..  :)

Thanks  :) :)