Home Linux How to disable ping request in CentOS Server

How to disable ping request in CentOS Server

0
1799

How to disable ping request in CentOS Server.

To secure the Server we need to follow some of the protocols like

# To keep updated the Server with latest patches.

# To keep all the default ports bl0cked and use customized ports for the applications installed in the Server.

# Not to share the Server credential in one mail or any communication applications, better to separate login details and password while sending in the mail.

# Also to enable Firewall and allow customized ports to access.

# To disable ping request in Server.

So will let the commands to run to disable ping request in CentOS server.

I have tried in CentOS 6.10 version.

Steps to disable ping request in CentOS Server

#sudo nano /etc/sysctl.conf

Add below line at the end of the file

#net.ipv4.icmp_echo_ignore_all = 1

#sudo sysctl -p

and if you ping the server you won’t b able to get any response from the server.

 

Steps to enable ping request in CentOS Server

#sudo nano /etc/sysctl.conf

Add below line at the end of the file

#net.ipv4.icmp_echo_ignore_all = 0

#sudo sysctl -p

Now you will get reply response from Server.

 

You may also like:

Windows process activation service failed to start

Without sudo login to mysql server in Ubuntu 18

How to install nginx, mysql, phpmyadmin, php in Ubuntu


NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here