LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ICMP Disable (https://www.linuxquestions.org/questions/linux-newbie-8/icmp-disable-834085/)

smilemukul 09-23-2010 03:00 PM

ICMP Disable
 
How can I disable ICMP messages through the configuration file of
/proc/sys/net/ipv4/ICMP_echo_ignore_all

Also how the above file can be edited ?

Thanks

GrapefruiTgirl 09-23-2010 03:06 PM

Files such as that one, you don't really 'edit', rather you echo stuff into them and it 'sticks' (for example you would echo a 0 or a 1 for false or true respectively, or you might echo a yes or a no into it, or some other thing, depending on exactly what file, and for what subsystem, you're changing.).. For example:

Code:

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
That means "icmp_echo_ignore_broadcasts = TRUE", so it will ignore them.

Note that only root can usually write to such files.


All times are GMT -5. The time now is 12:21 AM.