From owner-freebsd-questions Mon Feb 14 18:56:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by builder.freebsd.org (Postfix) with ESMTP id 6A6A543AD for ; Mon, 14 Feb 2000 18:55:32 -0800 (PST) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id WAA42023; Mon, 14 Feb 2000 22:00:58 -0500 (EST) (envelope-from cjc) Date: Mon, 14 Feb 2000 22:00:58 -0500 From: "Crist J. Clark" To: Adam Wiggins Cc: freebsd-questions@FreeBSD.ORG Subject: Re: divert Message-ID: <20000214220058.C41631@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <200002141135.SM00233@adam> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200002141135.SM00233@adam>; from wiggins@treyarch.com on Mon, Feb 14, 2000 at 11:27:29AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Feb 14, 2000 at 11:27:29AM -0800, Adam Wiggins wrote: > > I'm having trouble getting NAT working with 3.4. Previously I had it > working fine with 2.2.7, and I'm setting both the systems up identically. > Mainly I set the proper options for natd_* in rc.conf, but the rc.firewall > command to add the divert line is failing. Doing it manually I see: > > # ipfw add 100 divert natd all from any to any via mx1 > 00100 divert 8668 ip from any to any via mx1 > ipfw: setsockopt(IP_FW_ADD): Invalid argument > # > > I'm running the stock kernel, which appears to have all the options I need > compiled in (namely, IPFIREWALL and IPDIVERT). > Natd is running fine using mx1 as the interface; so what's going on? If you mean the GENERIC kernel by "stock kernel," I don't know what you are looking at, but it does _not_ have IPFIREWALL and IPDIVERT included. That error also sure looks like you're missing ipfw(4) support in the kernel. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message