Monday, February 09, 2009

I dropped into a Starbucks this afternoon, all prepared to get some emails written and to get some work done between my Sunday afternoon and evening commitments. Everything was fresh in my mind and ready to go via the keyboard and onto the screen. I fetched my grande two-pump sugar-free vanilla skinny latte and sat down in the chair, opened the laptop and watched it wake up and connect to the AT&T wireless access point.

But much to my dismay nothing would load over the network. The AirPort icon in the status bar showed the name of the network and indicated that I was connected to the access point, but I had no connection to the Internet.

After a brief bit of trying over and over to load a web page, I checked the network preferences in the apple system preferences panel and found that I was not getting an IP address. The Mac was self-assigning a 169.* address, which is a non-routable local-only address. I tried restarting the AirPort card in the Mac, but that didn't help. I then found I was able to connect normally with my iPhone to the AT&T WiFi network and get a "real" IP address (192.x), so I quickly deduced that something was wrong with my Mac.

I had to give up on troubleshooting and head back out into the world, but I spent the rest of the day wondering if maybe there was something about the MAC address for my wireless card that AT&T had chosen to hate. After finishing my day of activities, I drove home this evening and fired my laptop back up. It connected to my home wireless network. But again, no IP address assigned. Hmm, definitely the laptop.

I started thinking now. What could be happening? Powering the AirPort on and off, shutting down the Mac and powering it back up, manually telling the network stack to renew it's DHCP lease - all these things did no good.

I finally decided to take a look at the Mac firewall logs. You'd think that would be the first place I'd look, being a security guy. They're kind of hidden in plain sight, a few layers deep in the Mac's preferences dialogs. You go to the System Preferences panel, in the Security section, then the Firewall tab, then click the Advanced button, and finally click the Open Log button. If logging isn't already turned on, you can enable it there, as well.

Sure enough, I looked in the log and found several examples of this (emphasis mine):

Feb 8 23:02:04 greg-hughess-macbook-air Firewall[39]: Deny configd data in from 192.168.0.1:67 uid = 0 proto=17
Feb 8 23:02:26: --- last message repeated 2 times ---

Ah hah... Apparently the firewall was refusing inbound connections initiated by the router as it tried to set up the DHCP address being requested by the laptop. The configd daemon is a service that handles configuration changes for various pieces of the system, mostly all network-related. Great, I had something to fix!

I first confirmed configd was in fact running, then deleted the firewall configuration file (located at /Library/Preferences/com.apple.alf.plist) and configured the firewall to temporarily allow all connections, and then back to allowing essential services. Sure enough, as soon as I made the changes the Mac was able to get a DHCP address from the router, and the network was back up and working.

I have no real idea how the firewall got messed up. At one point I had it set to configure access for specific services and apps, so that might have had something to do with it. But it's strange that this problem only started today. It's possible the configd process was denied by a rule, I suppose. Perhaps I hit a key on a pop-up dialog to deny firewall access to the daemon without even realizing it while typing?

At any rate, it seems to be working now (as evidenced by the fact that I am able to post this blog entry, of course) and hopefully it will continue to work as expected. Maybe this will help someone else troubleshoot a similar issue.



Add/Read: Comments [18]
Apple | IT Security | Tech
Monday, February 09, 2009 12:04:44 AM (Pacific Standard Time, UTC-08:00)
#  Trackback

Referred by:
http://www.facebook.com/notes/buy-mogadon/buy-mogadon-online... [Referral]
http://www.chatalaska.com/orderserax [Referral]
http://www.callforbail.com/blog/placentia-bail-bonds [Referral]
169 ip address fix for mac (www.google.com) [Referral]
http://www.chatalaska.com/klonopin-2-mgs-too-much [Referral]
http://www.nikeoutletcleats.com/nike-tiempo-legend-iv-c-168.... [Referral]
http://www.bootcleats.com/mercurial-superfly-iii-safari-c-19... [Referral]
http://www.nikeoutletcleats.com/nike-mercurial-indoor-shoes-... [Referral]
http://www.bootcleats.com/adidas-f50-adizero-ii-prime-fg-c-7... [Referral]
http://www.bootcleats.com/adidas-f50-adizero-fg-c-58.html [Referral]
http://www.bootcleats.com/adidas-f50-adizero-leather-fg-c-47... [Referral]
http://www.bootcleats.com/adidas-predator-soccer-shoes-c-83.... [Referral]
http://landscapingwilmingtonde.com/ [Referral]
http://www.chatalaska.com/buyimovane [Referral]
http://www.bootcleats.com/nike-mercurial-indoor-shoes-c-52.h... [Referral]
http://www.bootcleats.com/adidas-f50-adizero-trx-fg-c-89.htm... [Referral]
http://www.nikeoutletcleats.com/nike-mercurial-sl-c-9.html [Referral]
http://www.bootcleats.com/nike-total-90-laser-i-c-66.html [Referral]
http://www.bootcleats.com/adidas-f50-indoor-shoes-c-75.html [Referral]
http://www.chatalaska.com/ordernimetazepam [Referral]
http://landscapinghockessin.com/ [Referral]

More...
Sunday, May 17, 2009 8:19:46 PM (Pacific Standard Time, UTC-08:00)
Awesome find this just solved a problem one of my clients was having and they had talked to apple support for hours and no one thought of the firewall causing this issue!! thanks so much for posting this info!
Gina
Monday, May 18, 2009 5:54:06 PM (Pacific Standard Time, UTC-08:00)
This saved my sanity and my hair.
Rachel
Tuesday, May 19, 2009 10:05:41 AM (Pacific Standard Time, UTC-08:00)
Many thanks, this worked a treat.

Gareth
Tuesday, May 19, 2009 2:53:42 PM (Pacific Standard Time, UTC-08:00)
I'm having the same problem - but I never had the firewall enabled. I left home for about a week - and when I came back, my macbook (running 10.5.6) won't get an ip address. I'm having the same problem with both airport and ethernet connections to my cable modem or router. My friend's macbook, purchased at the same time and with the same updates installed, works fine (hence my ability to post). I've tried deleting all the relevant preferences files. I've tried rebooting. I've tried manually assigning an ip address. I've hit renew ip more times than I can count. Nothing seems to work. I've always been suspicious that there was something wrong with my airport card, as it takes my computer a long time (sometimes almost a minute) to recognize familiar networks - and even then won't connect automatically - but it didn't seem like that big a deal until it flat out stopped working. Any solutions I might not have thought of? Is it possible that I have a hardware problem?
Zach
Monday, June 01, 2009 9:25:42 AM (Pacific Standard Time, UTC-08:00)
Yep, I didn't go to the extent of this article but it worked!
Mike
Sunday, July 12, 2009 2:54:18 PM (Pacific Standard Time, UTC-08:00)
Many thanks, it helped!!
dg
Sunday, August 02, 2009 2:34:10 PM (Pacific Standard Time, UTC-08:00)
Great find! I turned stealth mode on because I could not find a way to disable it from local connections. I have been rebooting my router in order to make it go away, but it only worked for about a day or two. Hopefully, this will be the end of it.
Joseph
Sunday, August 02, 2009 2:37:06 PM (Pacific Standard Time, UTC-08:00)
I meant stealth mode off in my previous post.
Joseph
Tuesday, August 04, 2009 1:24:55 PM (Pacific Standard Time, UTC-08:00)
I found your website off google, after my computer was having the same problem as you discussed above. You are literally my hero. My school's tech department wasted five hours of my time and had no clue what was up. Thanks again, my computer is up and running!
Michelle
Monday, August 17, 2009 8:53:00 PM (Pacific Standard Time, UTC-08:00)
Thank you!! You saved me totally, I have tried everything, everything? EVERYTHING, but never thought about the firewall.
Johan
Thursday, August 27, 2009 6:16:22 PM (Pacific Standard Time, UTC-08:00)
To the other Gareth - hi !!

My brand new MaBook Pro 'decided' to start suffering from the Airport Self Assigned IP problem three days ago - refusing to cooperate with the wireless router.

I can't wait to get home and try this fix. Scary thing for me is the hundreds of sufferers out there but the lack of a definitive fix (or anything really) from the big Apple?

Wish me luck!!! Will let you know how I went.
Gareth
Sunday, August 30, 2009 5:48:05 PM (Pacific Standard Time, UTC-08:00)
:((

Apparently I am like ONE other person who suffered from this self assigned IP problem who does NOT have an ALF.PLIST (in /Library/Preferences/com.apple.alf.plist) to delete.

So the blissful three week honeymoon (with my first ever MAC) is over and divorce looms large. Worse still, I may have to go crawling back to the ex (Microsoft and Vista) all because of this.........

Very, very, very sad now.

Anyone from Apple can chime in anytime they like.
Gareth
Friday, December 04, 2009 2:50:30 AM (Pacific Standard Time, UTC-08:00)
What amazes me is how RAMPANT this problem is with Leopard (seems like a software update or forced reboot or something sets it off) and yet despite spending huge amounts of time searching the Internet, there are no obvious answers as to WHY this problem occurs and it's maddening that on Apple's own support sites, you NEVER *EVER* see someone from Apple chime in and answer the question/problem/whatever. They're absolutely USELESS for support and doubly so for "geniuses" at the Apple stores who seem to think they know 1000x more than they actually do. Yes, disabling the firewall temporarily will get the problem fixed for a single boot, but it usually comes back on a reboot. That's not a "fix" guys. That's a freaking BAND-AID on a gaping wound. We are now at freaking SNOW LEOPARD (although my PowerMac I'm typing on now cannot run that so I do not know if it's any better at all in that regard) and there is no solution to this problem and no answer from Apple as to why it exists. And so I find it hard to swallow the total BS that is "it just works" from Apple when clearly "it's just broke" fits so much better. I never had such issues with Tiger, but then Tiger sucks for enabling SMB for things like XBMC on AppleTV. It's just so much easier in Leopard and some software doesn't support Tiger anymore anyway (soon will be true for regular Leopard, I'm sure). But all I want to know is why Apple sucks so darn hard for supporting actual customer issues. They take "secretive" to all new levels and just IGNORE all feedback, bug reports and anything else you might have to say and hope you'll just go away forever (or they'll ban you if you get too loud on their own forums). Windows sucks, but Apple support REALLY REALLY sucks. So now I have to do that firewall off/on trick every time I reboot to get my networking working. Meanwhile my MBP running the same version of Leopard boots fine...what's the difference? No one knows..... Screw Apple.
ExtremeDisappointment
Tuesday, December 22, 2009 4:01:39 PM (Pacific Standard Time, UTC-08:00)
Thank you! Just fixed my friend's mac. They didn't even have the firewall turned on. I turned it on and it fixed the problem. Something somewhere is getting corrupted.
Grr
Thursday, February 25, 2010 1:32:57 AM (Pacific Standard Time, UTC-08:00)
Thanks a lot. That problem drove me crazy.
D.
Thursday, March 25, 2010 3:53:16 PM (Pacific Standard Time, UTC-08:00)
Gareth you aren't looking for alf.plist in the right place. You probably were looking in your User Library instead of your root dir Library - yes there are 2 Library dirs.
Friday, April 09, 2010 9:29:53 PM (Pacific Standard Time, UTC-08:00)
Greg,
About a couple of weeks ago, I had the same story (self-assigned IP addresses and so on) and scoured the web for some answers. At first I thought it might be our connection, but my wife's Macbook was having no problems. Playing around with the IP addresses in the network preferences file had occasional success, but it just got worse and yesterday, decided not to connect at all. Happily my wife's machine works. After a lot of looking, I hadn't found anything that looked like it would resolve the problem until I stumbled on your "rant". I followed your recipe and I'm back in action. Many thanks for a clearly outlined explanation and solution. This is definitely one reference to keep. Barry
Barry
Tuesday, August 03, 2010 7:01:42 AM (Pacific Standard Time, UTC-08:00)
THANK YOU!!!!! I was going goin crazy the last 3 weeks. The fix was easy.
Elizabeth Turner
Comments are closed.