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 .
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment