Skip to content

OS X Tip: Don’t Deny Incoming Connections to configd

Last night, we picked up Elina’s computer home from the Apple store; they replaced a faulty motherboard. As part of the pick-up process, the Apple service representative boots up the computer and demonstrates that it works fine; and it did. When we brought it home, though, we had a perplexing problem: the network connection seemed to work fine at first, but after the first time Elina put the computer to sleep, and then woke it up, it couldn’t obtain an IP address.

I was really stumped – it just seemed as though DHCP just wouldn’t work, no matter what. I could successfully connect the wifi to a few different networks, and a direct ethernet connection worked as well. And if I manually entered an IP address and the other pertinent TCP/IP settings, the connections worked just fine. But no matter what I did, OS X couldn’t get an IP address from our router (an Apple Airport Extreme Base Station); the connection status in Network Preferences just kept saying that it had a self-assigned IP address.

I tried a lot of things: upgrading the firmware, rebooting in safe mode, creating a new network location, deactivating and reactivating the connections — nothing worked. In the end, I found the answer with a combination of Google and sheer luck. As I was troubleshooting, all along I was searching with Google for some clue to what was going on — using phrases like “OS X DHCP won’t work”, “Mac can’t get IP address”, etc. Google usefully displays snippets of text from each search result below the result title. Luckily, in one of those, I noticed the name “configd”. That tickled my memory, so I searched for “configd”. The man page starts with “The configd daemon is responsible for many configuration aspects of the local system.” And after skimming this page, I developed a theory that configd was responsible for obtaining an IP address via DHCP. And I suddenly remembered that when we had first booted up the laptop when we brought it home, I had changed the Firewall mode to Set access for specific services and applications – and that it had immediately popped up a dialog asking whether we wanted to allow or deny incoming connections to configd! I surmised that we must have clicked “deny”, which must have broken configd.

The hypothesis was easy to test: I just turned the firewall off (the setting labeled Allow all incoming connections) and tried to obtain an IP address, and it worked. Problem solved! As usual, there was a reason — me!

So the moral of the story is: don’t deny incoming connections to configd.

A useful tip, found here: to reset the OS X 10.5 Leopard firewall back to factory settings, enter the following command in the Terminal: sudo cp /usr/libexec/ApplicationFirewall/com.apple.alf.plist /Library/Preferences/com.apple.alf.plist

Finally, I just want to say: the Leopard firewall confuses me. I have issues with it. Maybe it’s just me. But maybe it isn’t.

tags: , , , , , , ,

Comment Feed

8 Responses

  1. Thanks for posting this – I was aware configd had a role with network connectivity, though, now I know it deals with obtaining IP addresses via DHCP (and much more!)

    JeremyAugust 12, 2009 @ 13:43
  2. Hey, thanks for the tip. It proved hugely useful earlier today in explaining how I unknowingly reconfigured my firewall, leaving me disconnected from my router for two days of mystery and frustration.

    Michael,
    Seattle

    MichaelDecember 23, 2009 @ 14:11
  3. p.s.
    are you on the Readability team? I love it!

    MichaelDecember 23, 2009 @ 14:11
  4. Glad it helped!

    And re:Readability: yes, sort of. I’m a partner at Arc90; one of my co-partners created Readability, and the firm as a whole supports it now. I definitely pitch in from time to time. Glad you like it!

  5. I recently ran into this problem after having a motherboard replaced in my macbook pro. Copying over the default firewall settings seemed to fix my problem. Thanks!

    MichaelJanuary 6, 2010 @ 19:13
  6. I had the same problem … after waking up my powerbook G4 1.67Mhz with OS X 10.5.8 I lost the connections. It didn’t even worked with the ethernet cable so I tried to figure out what’s happening! … and I luckily found this blog post.

    I replaced the firewall settings with the described command and after a restart and some waiting it worked perfectly for me. Thanks a lot … seems still to be an issue …

    MichaelFebruary 25, 2010 @ 15:35
  7. Great post, you saved my day :D

  8. Fantastic! I’ve spent ages searching for mac os DHCP “airport has a self-assigned IP address”… How stupid that if configd is blocked by the firewall, you get a completely unhelpful set of messages in the GUI and nothing in the logs. This sort of problem is a major dent in Apple’s attempt to be a user-friendlier PC. (Don’t get me started on printing)

    Angry AndrewNovember 8, 2010 @ 18:28



Some HTML is OK

or, reply to this post via trackback.