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 pings, how do I do that?
closed as off-topic by kasperd, Ward, Jim B, fuero, mdpc May 3 '16 at 20:29This question appears to be off-topic. The users who voted to close gave this specific reason:
|
|||||||||||||||||
|
|||||||||||||||||
|
To disable the PING response, add the following line to your init script for the network:
To reenable the PING response do this:
Update: To make the change permanent add the following line to
|
|||||
|
|
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
|
|||||||||
|
|
You can also use this command to disable ping request
To enable it again
Finally save it |
|||||||||||||
|
|
Just do this:
|
|||
|
|
|
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 |
|||
|
|
|
Firewall block ICMP connections. especially icmp echo. |
|||||
|