Wednesday, May 13, 2009

ping: sendmsg: Operation not permitted in 9.04

Upgraded to Ubuntu Server 9.04 (Jaunty Jackalope) figuring that might fix a problem rendering a few Flash pages in Firefox. (It didn't.)

But when the machine came back up, the rest of the network (and the rest of the world) couldn't see it. Uh-oh.

So, I start at the beginning looking for network troubles: I make sure the network interface is recognized (ifconfig) and there's still a routing table (route). All OK. Then I try to ping the domain controller and get:

ping: sendmsg: Operation not permitted

Google pointed me to several helpful suggestions, which didn't work, and one which did: there was a problem with iptables (one that hadn't been there before the upgrade). What fixed it was the following magical incantation:

ipmasq

Don't know why it worked (or why ufw doesn't do the same thing), and I'm getting too old to care.

Thanks, Google!

10 comments:

Gordon said...

Awesome, thanks for the help. And the Letterman clip is pretty funny too;)

Rick said...

Man I've been beating my head against the wall on this!
I finally found YOUR recommendation by searching for the two phrases "ping: sendmsg" Operation not permitted" and 9.04 and it was on page 3 of my search listings!
I couldn't find anything listed on ipmasq and eventually had to resort to crossed fingers and closing my eyes ( yeah I'm getting too old for some of this crap too )
It worked - and I don't know why - and I don't like that... so now I have to dig some more.
Thank you ever so much for posting your solution... I'll try to get your word out about it ( with proper credit of course ) on my blog too.
Man it really shouldn't have been this hard or mysterious to find and fix!
Thanks again!

Rick

Jack Rose said...

Google is my friend.

-- Jack

rufus said...

I had lost a night before I've finally found your solution.. Thank you very much!

Anonymous said...

Great it works!! thanks

Muzzlehatch said...

Oh wow, thanks. This particular issue showed up for me a couple of days after installing 9.04, and I spent several hours of fruitless tinkering before I found your fix.

Anonymous said...

Thanks. I had the same problem and your solution works. The next step is to know what's happen in this case with iptables and ufw.

Regards.

Anonymous said...

Interesting but worked. Thanks for this hint. Can somebody explain the reason why it happened, please?

Anonymous said...

I bow to the magical incantation!!! but I am with the rest ...why did ipmasq (NAT) work and how did the network translation table get messed up in the first place?

But Thank You Thank You Thank You!!!

Paul D. said...

Thanks for the post! And that's a fact Jack! Following an upgrade to 9.04 of Ubuntu I thought Alzheimers was finally about to darken my aged door and after pulling out what little hair I had left Googled to your post. Now to determine the underpinnings of this issue. If I find anything concrete I'll post it here.