Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.