-4

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?

Jonathan Gurebo
  • 235
  • 1
  • 2
  • 6

2 Answers2

1

/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.

Other options and values can be found here

NickW
  • 10,263
  • 1
  • 20
  • 27
0

For example iptables -A INPUT -p icmp --icmp-type echo-request -j DROP. Same with other types...

Tomyk
  • 111
  • 6