Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For some reason I cannot access localhost without an internet connection in Ubuntu.

As soon as I disconnect from the internet (with the networkmanager GUI), both ping localhost and ping 127.0.0.1 return:

ping: sendmsg: Operation not permitted

I switched off iptables, iptables -L gives:

Chain INPUT (policy ACCEPT)

target prot opt source destination

Chain FORWARD (policy ACCEPT)

target prot opt source destination

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

What could be the problem?

share|improve this question

1 Answer 1

Run the command:

sudo ipmasq

Try to ping localhost and hopefully it should work.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.