Disable Ping Reply Temporarily
root@ubuntu:~# echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
This setting will be erased after the reboot.
Enable Ping Reply Back
root@ubuntu:~# echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all
Disable ping reply Permanently1: Edit the sysctl.conf file and add the following line.
root@ubuntu:~#net.ipv4.icmp_echo_ignore_all = 1
Execute sysctl -p to enforce this setting immediately.
root@ubuntu:~# sysctl -p
root@ubuntu:~# echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
This setting will be erased after the reboot.
Enable Ping Reply Back
root@ubuntu:~# echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all
Disable ping reply Permanently1: Edit the sysctl.conf file and add the following line.
root@ubuntu:~#net.ipv4.icmp_echo_ignore_all = 1
Execute sysctl -p to enforce this setting immediately.
root@ubuntu:~# sysctl -p
No comments:
Post a Comment