Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How can I manage, for example, my Ubuntu mashine so it doesn't (or does) respond to PING(ICMP ECHO_REQUEST - type 8) requests?
Normally almost all computers in a LAN network responds to ping with an ICMP ECHO_REPLY, but how to turn it off?
How to Manage it? How to manage other types ICMP request?
/proc/sys/net/ipv4/icmp_echo_ignore_all set to a non zero number will not respond to IPv4 pings, IPv6 doesn't seem to have the same amount of options.
/proc/sys/net/ipv4/icmp_echo_ignore_all
Other options and values can be found here
For example iptables -A INPUT -p icmp --icmp-type echo-request -j DROP. Same with other types...
iptables -A INPUT -p icmp --icmp-type echo-request -j DROP