Linux/Ubuntu: Enable/Disable ping response

PHOTO EMBED

Sun Aug 28 2022 12:01:27 GMT+0000 (UTC)

Saved by @marcopinero #bash

#disable ping to your station:

sudo echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all 

#enable ping back:

sudo echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
content_copyCOPY