This article is a mirror article of machine translation, please click here to jump to the original article.

View: 67|Reply: 0

[linux] Linux Server Prohibition Ping Response (ICMP)

[Copy link]
Posted on 3/3/2026 8:24:08 PM | | |
review
A brief introduction to network ICMP (Internet Control Message Protocol).
https://www.itsvse.com/thread-11201-1-1.html

net.ipv4.icmp_echo_ignore_all = 1 is a Linux kernel parameter setting that controls how the system responds to ICMP Echo requests (often called pings). When this parameter is set to 1, it means that the system will ignore all received ICMP Echo Request messages and will not send any ICMP Echo Reply responses. In other words, pinging the host is prohibited.

function

Security Enhancements: By turning off responses to external ping requests, you can increase the security of your server to some extent, as attackers cannot easily probe whether your server is online through pings.
Reduced network traffic: If the server is located in a high-traffic environment, turning off ping responses can reduce the burden of unnecessary network packet processing.

Temporary closure

The command is as follows:
Permanently closed

Edit the /etc/sysctl.conf file and add the following at the bottom:
Then, reload it to take effect with the following command:




Previous:.NET/C# sends messages based on PostMessage broadcasts
Next:UN Trade and Transport Place Code UN/LOCODE download
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com