"Linux No Ping setting" the easiest way to disable ping under Linux

Source: Internet
Author: User

A ping is a communication protocol that is part of the IP protocol, a portion of the TCP/IP protocol. It can be used to check if the network is able to connect, so it can help us to analyze and determine the network fault. The application format is: Ping IP address. But service-enabled pings can sometimes cause a lot of trouble.

As a result, Linux server administrators can restrict the server from pinging other users, sometimes as needed (such as to prevent attacks). It also ensures that the Linux server can ping other servers.

The following is the simplest method of ping-cut in Linux

First login to the server between the terminal execution: Echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

650) this.width=650; "Width=" "height=" class= "Pic-cursor-pointer" style= "margin:0px auto 0px 54px;border:0px; Float:none, "src=" Http://hiphotos.baidu.com/exp/pic/item/7c5fcc1b0ef41bd5255df0f053da81cb39db3d6c.jpg "alt=" 7c5fcc1b0ef41bd5255df0f053da81cb39db3d6c "/> So you can ban ping. If you want to restore ping, you can execute the command

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

650) this.width=650; "Width=", "height=" "class=" Pic-cursor-pointer "style=" margin:0px auto 0px 54px;border:0px; Float:none, "src=" Http://hiphotos.baidu.com/exp/pic/item/d048adde9c82d158963042b5820a19d8bd3e42c0.jpg "alt=" D048adde9c82d158963042b5820a19d8bd3e42c0 "/>


"Linux No Ping setting" the easiest way to disable ping under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.