Disable ping and enable forwarding in Linux

Source: Internet
Author: User

Disable ping and enable forwarding in Linux
As a server, security is a very important issue. In many cases, the system is required to prohibit other hosts from Pinging their addresses. The following describes how to disable ping and enable IPv4 forwarding in Linux. In fact, it is very simple. You only need one command to get it done. At the same time, switching is quite convenient. You can see from the figure below that you only need to modify the value of icmp_echo_ignore_all in the/proc/sys/net/ipv4/directory, and the value range is very small, only between 0 and 1. Some friends will think, so you can? Yes, because the file changed to the proc directory takes effect immediately. Linux embar ping0 indicates that this function is disabled, that is, ping1 is allowed, that is, ping1 is disabled, and the document is also modified in this directory: the ip_forward value enables and disables IPv4 forwarding in Linux even if it takes effect. Enable linux ip_forward

Related Article

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.