From owner-freebsd-small Mon Oct 12 21:48:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA26932 for freebsd-small-outgoing; Mon, 12 Oct 1998 21:48:40 -0700 (PDT) (envelope-from owner-freebsd-small@FreeBSD.ORG) Received: from shemp.palomine.net (shemp.palomine.net [205.198.88.200]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id VAA26927 for ; Mon, 12 Oct 1998 21:48:29 -0700 (PDT) (envelope-from cjohnson@palomine.net) Received: (qmail 29096 invoked by uid 1000); 13 Oct 1998 04:48:13 -0000 Message-ID: <19981013004813.A29082@palomine.net> Date: Tue, 13 Oct 1998 00:48:13 -0400 From: Chris Johnson To: insane@oneinsane.net, freebsd-small@FreeBSD.ORG Subject: Re: PicoBSD router/natd/ipfw References: <19981012195014.A28161@palomine.net> <19981012212309.A14640@oneinsane.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19981012212309.A14640@oneinsane.net>; from Ron 'The Insane One' Rosson on Mon, Oct 12, 1998 at 09:23:09PM -0700 Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Oct 12, 1998 at 09:23:09PM -0700, Ron 'The Insane One' Rosson wrote: > On Mon, Oct 12, 1998 at 07:50:14PM -0400, Chris Johnson wrote: > > I've got the router version of PicoBSD running, and I've configured de0 and > > de1. What I'm trying to do is run natd to masquerade my private LAN over my > > public IP address. > > > > 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 > > > > I'm reasonably certain that my divert command was correct, so I suspect that > > there may be a problem with ipfw in PicoBSD 0.41 (not built from the same > > source as the kernel?). > > > > Can someone confirm these results, or can someone prove me wrong and tell me > > what mistake I'm making? > > > You show you did ed0 when you said you have de0 and de1 ??? Sorry--that was a typo. I was copying stuff off of my console onto another computer to send the message, and copied it wrong. In any case, I typed it in there about a zillion times, sometimes leaving out the "via de0" bit, and the same error message always ensued. Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message