ping localhost: network unreachable

Ivailo A. Tanusheff ITanusheff at
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:

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

Ivailo Tanusheff

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

# ping localhost
capability mode sandbox enabled
PING localhost ( 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?


freebsd-questions at mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"


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