Date: Fri, 20 May 2005 04:11:36 +0000 From: "Wisut Ponpattana" <acharn_666@hotmail.com> To: questions@freebsd.org Subject: Can't run natd after upgrade to 5.4 Message-ID: <BAY104-F155FCEC5BD7DE49CEAA659B1090@phx.gbl>
next in thread | raw e-mail | index | archive | help
After keeping an eye on the stable- list for a couple of weeks, I hadn't seen any threads that were obviously general problems, so I cvsupped again yesterday. Did a regular build world: "make buildworld" "make buildkernel KERNCONFIG=KEPLER" "make installkernel KERNCONFIG=KEPLER" "make installworld" "mergemaster" "reboot". OK, the machine is running, uname -a returns FreeBSD 5.4 STABLE #2. ??? That's funny, this is the first time I've compiled this kernel, shouldn't that be #0? Oh well, everything seems all right, until I go to one of the client machines and try to get on the World Wide Web. "Trying to resolve..." Hit the STOP button. To cut it short, I discoverthat natd is not running. In the boot-up messages I see "ipfw ... divert disabled..." My rule "100 divert natd all from any to any via ed0" isn't being added. natd won't run. Try entering "ipfw add 50 divert natd all from any to any via ed0", I get the message: ipfw: getsockopt(IP_FW_ADD): Invalid argument". Look back at my configuration file. Sure enough, at the bottom are options IPFIREWALL options IPDIVERT just like it says in the natd man page, just like they've been for years. Spend a couple of hours searching google. I find a couple of similar problems, but nobody describes the solution. So I cvsup back to 5.3 and rebuild everything. No effect. natd won't run, same error message when I try to add the divert rule. So at this point I nuke the contents of /usr/src and start cvsup again (well, I did save my configuration file). Now I'm starting to buildworld again. Can anybody tell me how to fix this? I'd kind of like to know what went wrong, too, but that's less important to me. By the way, because of this I can't access my regular e-mail account, so please either reply or cc me at this hotmail account, as well as replying to the list.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY104-F155FCEC5BD7DE49CEAA659B1090>