From owner-freebsd-questions@FreeBSD.ORG Fri May 20 04:11:36 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAAC516A4CE for ; Fri, 20 May 2005 04:11:36 +0000 (GMT) Received: from hotmail.com (bay104-f15.bay104.hotmail.com [65.54.175.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8541243DA2 for ; Fri, 20 May 2005 04:11:36 +0000 (GMT) (envelope-from acharn_666@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 19 May 2005 21:11:36 -0700 Message-ID: Received: from 65.54.175.200 by by104fd.bay104.hotmail.msn.com with HTTP; Fri, 20 May 2005 04:11:36 GMT X-Originating-IP: [65.54.175.200] X-Originating-Email: [acharn_666@hotmail.com] X-Sender: acharn_666@hotmail.com From: "Wisut Ponpattana" To: questions@freebsd.org Date: Fri, 20 May 2005 04:11:36 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 20 May 2005 04:11:36.0447 (UTC) FILETIME=[03BCC0F0:01C55CF2] Subject: Can't run natd after upgrade to 5.4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 04:11:36 -0000 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.