Linux can not ping to localhost, but no problem pinging outside

January 2, 2007 – 07:49

I have an … let say … abnormal situation, where my linux box can not ping localhost nor being pinged from outside, but there’s no problem to ping outside host/ip address.

Have been googling arround for a while … and found a result, that solve my problem.

In file /etc/sysctl.conf there are two lines in vice-versa :
net.ipv4.icmp_echo_ignore_all=1
net.ipv4.icmp_echo_ignore_all=0

Put a comment in line with 0, to be like this :
net.ipv4.icmp_echo_ignore_all=1
#net.ipv4.icmp_echo_ignore_all=0

And voila … now i can ping localhost, and ping the machine from outside.

Technorati Tags: ,

Post a Comment

CommentLuv badge