Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

how to disable ping on linux servers

What is a ping:

Usually a ping is used to check if a machine is up and to check the network status. 

It is a small network packet sent to the machine. If the machine is up, an answer will be sent. The time needed to get the answer is called ping time or round-trip time.

The ping response from an IP indicates the machine is up.

Unfortunately this can be used to quickly scan an IP-range for reachable hosts.

This can be used to find potential hackable machines. If your machine doesn't answer to pings, your chance to be seen is reduced. (That doesn't mean your machine is more secure, the machine is just not that easy to be seen from the internet. Nothing more.)

How do I disable the ping response?

Add the following line to your init script for the network (the name depends on the distribution you use):

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


This disables ping responses.

 

To reenable, use the following command:

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


To make this permanent set the following into /etc/sysctl.conf (if you have such a file)

net.ipv4.conf.icmp_echo_ignore_all = 1
Byla tato odpověď nápomocná?

Související články

Find spam script location with Exim

Sometimes you can have a "tell a friend" feature on your website, or other type of email...

How to change the primary IP addres of a WHM/cPanel server

This is for CentOS/RHEL based servers. Steps in WHM: Log into WHM and go to Basic cPanel...

How to change file/folder permissions in linux cent os

Using SSH (Putty) > Login as root enter the following code to Change all permissions for...

clamAV installed, but not working on the command line and appears to not be installed

On 11.40+ You may try to install ClamAV and then see it have problems when trying to run on...

Exim Remove All messages From the Mail Queue

Question: I'm using Exim mail server under CentOS Linux. How do I remove all messages from the...

Powered by WHMCompleteSolution