How to disable ping request in CentOS Server

How to disable ping request in CentOS Server

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

Categories
Linux

I am a proud Indian, proud father, a blogger, Being in a profession as System administrator, my passion is troubleshooting computer issues, I do like sharing solutions through blogging making videos of solving issues.
No Comment

Leave a Reply

*

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

RELATED BY