LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   grc (https://www.linuxquestions.org/questions/linux-security-4/grc-625423/)

Rock'n'Metal 03-03-2008 01:14 PM

grc
 
i test my pc on grc.com and see my system answer to ping requests!
how can i close(block) ping requests?

win32sux 03-03-2008 01:45 PM

Quote:

Originally Posted by Rock'n'Metal (Post 3076860)
i test my pc on grc.com and see my system answer to ping requests!
how can i close(block) ping requests?

Assuming it's not your router which is replying, one way is:
Code:

echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
Another is:
Code:

iptables -I INPUT -p ICMP --icmp-type 8 -j DROP

Rock'n'Metal 03-03-2008 03:03 PM

ping
 
Quote:

Originally Posted by win32sux (Post 3076887)
Assuming it's not your router which is replying, one way is:
Code:

echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
Another is:
Code:

iptables -I INPUT -p ICMP --icmp-type 8 -j DROP

i tested it answer "permission denied" but why grc said answer?

win32sux 03-03-2008 03:05 PM

Either of those commands will require root privileges.

unSpawn 03-05-2008 01:38 AM

While "stealth" sounds nice not answering to ping and traceroute requests does not necessarily a more secure system make. If you are going to invest time in beefing up security you best read a basic hardening HOWTO and start by reviewing, updating and protecting what services you're running and who you give access to before "stealthing" it.


All times are GMT -5. The time now is 04:34 PM.