Last update at :2023-12-11,Edit by888u
Some friends like to ban ping, while others don’t. In fact, it depends on your own preferences! So how to disable and allow ping in Linux system? In fact, it is not difficult. After collecting it on this site, I found that it is really simple, and some control panels also have this function. I won’t talk about the use of panels on this site. Today’s Chinese panels are really convenient, but they can also cause a lot of problems. Let’s talk about how to disable and allow ping:
Question 1: How to disable ping in Linux?
Solution:
[root@XXXx ~]# echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
Question 2: How to allow ping in Linux?
[root@XXXX ~]# echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all
Solution: You can check the effect after the operation without restarting.
The above is how to disable ping and allow ping in Linux. I hope it will be helpful to everyone!
Recommended site searches: icp registration website, server cost, free cloud server, Wanwang registered domain name, Wanwang domain name registration official website, cpanel space, game high defense server rental, US website server, mainland China virtual host, special price space,
发表评论