From owner-freebsd-small Tue Oct 13 11:58:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA00996 for freebsd-small-outgoing; Tue, 13 Oct 1998 11:58:03 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from oldyeller.comtest.com (comtest.hits.net [206.127.244.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA00935 for ; Tue, 13 Oct 1998 11:57:57 -0700 (PDT) (envelope-from randal@comtest.com) Received: from graphics.comtest.com (graphics.comtest.com [206.127.245.194]) by oldyeller.comtest.com (8.8.8/8.8.8) with SMTP id IAA09536; Tue, 13 Oct 1998 08:44:26 -1000 (HST) (envelope-from randal@comtest.com) Message-Id: <199810131844.IAA09536@oldyeller.comtest.com> From: "Randal S. Masutani" Organization: ComTest Technologies, Inc. To: Chris Johnson Date: Tue, 13 Oct 1998 09:03:31 -1000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: PicoBSD router/natd/ipfw Reply-to: randal@comtest.com CC: freebsd-small@FreeBSD.ORG In-reply-to: <19981012195014.A28161@palomine.net> X-mailer: Pegasus Mail for Windows (v3.01b) Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 12 Oct 98, at 19:50, Chris Johnson wrote: > This is my first experience with natd (I currently use Linux masquerading). > Here's what I did: > > natd -n de0 (de0 is the interface connected to the outside world). > ipfw -f flush > ipfw add divert natd ip from any to any via ed0 > > The last line results in: > ipfw: setsockopt(IP_FW_ADD): Invalid argument You must make sure you have a kernel built with options IPFIREWALL If you are using the GENERIC kernel, then it is not enabled by default. You must rebuild a custom kernel with the above line added. Randal Masutani ------------------------------------------------------------------------- ComTest Technologies, Inc. 3049 Ualena St., Suite 1005 Honolulu, Hawaii 96819 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message