How do I disable ping responses from my system?

Updated -

To configure a Red Hat Enterprise Linux system to not respond to a ICMP (ping), run the following command as the root user.

echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all

To make the changes persistent across reboots, add the following line to your /etc/sysctl.conf file.

# Ignore all to ICMP (ping)
net.ipv4.icmp_echo_ignore_all ...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content