ping localhost: network unreachable

Ivailo A. Tanusheff ITanusheff at postbank.bg
Mon Jul 14 06:58:15 UTC 2014


Have you altered security configuration of the system - security level or firewall rules.
Most likely this is the case.

For security level check with:
sysctl -n kern.securelevel
If it is not -1, then try to change it and ping the localhost again.

The other option depends on the firewall you use. For example if you use ipfw, in the kernel config you will have:
options    IPFIREWALL			# enables IPFW
And you should put this option:
options    IPFIREWALL_DEFAULT_TO_ACCEPT # sets default policy to pass what is not explicitly denied
if you want to make it run without specifying explicit rules.

If you use ipfilter you may have ibn kernel config:
options IPFILTER
And you should not have without additiobal configuration this:
options IPFILTER_DEFAULT_BLOCK

Hope the above helped you, let us know if this was OK.

Regards,
Ivailo Tanusheff

-----Original Message-----
From: owner-freebsd-questions at freebsd.org [mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Anton Shterenlikht
Sent: Sunday, July 13, 2014 7:28 PM
To: freebsd-questions at freebsd.org
Subject: ping localhost: network unreachable


# ping localhost
capability mode sandbox enabled
PING localhost (127.0.0.1): 56 data bytes
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable

How can I recover from this?

Thanks

Anton
_______________________________________________
freebsd-questions at freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


Disclaimer:

This communication is confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication by mistake, please notify us immediately by responding to this email and then delete it from your system.
Eurobank Bulgaria AD is not responsible for, nor endorses, any opinion, recommendation, conclusion, solicitation, offer or agreement or any information contained in this communication.
Eurobank Bulgaria AD cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network. If you suspect that the message may have been intercepted or amended, please call the sender.


More information about the freebsd-questions mailing list