ICMP flooding prevention and ASLR in linux
How to prevent ICMP flooding by not responding to ICMP requests or ping requests and modifying Address Space Layout Randomization
to check your local host for pings
ping 127.0.0.1
to break out endless pings press Ctrl + C
or use
ping -c5 127.0.0.1
to disable ping reply
sudo sysctl -w net.ipv4.icmp_echo_ignore_all=1
to cancel it or to reply to ping requests
sudo sysctl -w net.ipv4.icmp_echo_ignore_all=0
to check ASLR
sudo sysctl -a –pattern ‘kernel.randomize_va_space’
if output is equal to 2 – full Address Space Layout Randomization
if output is 1 – partial ASLR
if output is 0 – No ASLR
enabling ASLR or setting the value to 2 will help to prevent some memory corruption exploits used by hackers 🙂
hope you have a wonderful day 🙂
ipv4