I feel like this should be a really simple thing to do, but googling and checking SF I didn't see anything. I'm trying to make my Fedora server not respond to ping, how do I do that?
|
|
To disable the PING response, add the following line to your init script for the network: echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all To reenable the PING response do this: echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all UPDATE: To make the change PERMANENT add the following line to /etc/sysctl.conf: net.ipv4.icmp_echo_ignore_all=1 |
||||
|
|
|
Add the following line to
It has the same effect as the above echo lines. |
|||
|
|
|
It is better to use firewall for these purposes, so that you can optionally enable ping from some systems, esp monitoring systems
|
|||||||||
|
|
This article explains how to do this. |
|||
|
|
|
Firewall block ICMP connections. especially icmp echo. |
|||||||
|
|
Additionally, you can use "Blackhole" security: the server simply won't answer connection attemps to closed ports, so portscan becomes a difficult one ;) |
|||
|
|
|
open your /etc/sysctl.conf and append this line net.ipv4.icmp_echo_ignore_all = 1 and execute this command sysctl -p it's still usable after reboot |
|||
|
|
|
You can also use this command to disable ping request
To enable it again
Finally save it |
|||
|
|