Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Disable ping request  (Read 1387 times)

0 Members and 1 Guest are viewing this topic.

nandulalr

  • Guest
Disable ping request
« on: May 01, 2018, 04:50:26 pm »
Sometimes we need to disable ICMP messages to our servers to prevent some kind of IP flooding and denial of service attacks.

We can prevent Ping request to our servers in two ways:

1. Please run the following command to disable ping request to our server:
Code: [Select]
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all

2. We can also do the same using IPtables.
Code: [Select]
iptables -A INPUT -p icmp -j DROP

Now you have disabled ping request to our server.