Disable ICMP ping request on cpanel server

How to damage ICMP ping offers on your Linux server?
Ping management is going on posting an Internet Control Information Protocol (ICMP) echo request packets to the target host and waiting for an ICMP reply. To enable the PING refer to the resulting URL and make sure that you have logged in as a root user.

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

To check the ICMP attack, most of the servers is disabled the PING command to adjust the server, refer to the following instruction to damage 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

CSF Firewall

To disable incoming and outgoing ping request on your CSF firewall, please try the following values in your csf.conf file.

ICMP_IN = "0"


ICMP_OUT = "1"


How do I disable outgoing ICMP request on iptables?

iptables -A OUTPUT -p icmp --icmp-type echo-request -j DROP


iptables -A OUTPUT -p icmp --icmp-type 8 -j DROP

To disable incoming ping request on iptables, please use the following command.

iptables –A INPUT –p icmp –icmp-type echo-request –j DROP
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Install nginx as a reverse proxy cPanel plugin

Install Nginx on your cPanel/WHM server using the Engintron cPanel Plugin as a reverse proxy. It...

cPanel security settings checklist

You always use cpanel recommended Security Settings to avoid hacking and other suspicious...

libgcc_s.so.1 must be installed for pthread_cancel to work

libgcc_s.so.1 must be installed for pthread_cancel to work Most of time received libgcc error...

cPanel & WHM Version 74 Now in STABLE

cPanel has published cPanel & WHM Version 74 to the STABLE tier. It enters updates...

Installing cpanel on google cloud

Build a new CentOS 7 instance on your google cloud engine. From the cPanel & WHM System...

Powered by WHMCompleteSolution