From owner-freebsd-questions Sun Jun 21 01:56:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA23186 for freebsd-questions-outgoing; Sun, 21 Jun 1998 01:56:35 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from evileye.rf.org (5200-ak1-47.ix.net.nz [203.97.96.47]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA23180 for ; Sun, 21 Jun 1998 01:56:17 -0700 (PDT) (envelope-from marki@ix.net.nz) Received: from ix.net.nz (localhost.rf.org [127.0.0.1]) by evileye.rf.org (8.8.8/8.8.8) with ESMTP id UAA04803; Sun, 21 Jun 1998 20:40:00 +1200 (NZST) (envelope-from marki@ix.net.nz) Message-ID: <358CC6DF.8420EA53@ix.net.nz> Date: Sun, 21 Jun 1998 20:39:59 +1200 From: Mark Ibell X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 3.0-980520-SNAP i386) MIME-Version: 1.0 To: Jeremy Spring , freebsd-questions@FreeBSD.ORG Subject: Re: natd References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jeremy Spring wrote: > > I am running 2.2.6 with pppd and am trying to get a small lan connected to > the inet via ppp dialup. I as the gateway can ping the computers on the > lan and the inet, and the lan can ping me, but the lan can't get to the > inet. > > I have enabled 'gateway_enable=yes' and 'default_router=localhost' > in rc.conf (might this be wrong?). You should keep default_router="NO" > I have setup ipfw rules, as follows: > 65533 divert natd ip from any to any via ed0 > 65534 allow ip from any to any, > > and I have run 'natd -n ppp0'. You want natd to alias packets over ppp0. If you thing about it, it should make sense. Therefore just change 'via ed0' to 'via ppp0'. Also unless you have a static ip address it might be best to include a -dynamic switch to natd to save having to restart it every time you dial. So you'll want to use 'natd -dynamic -n ppp0'. That should get you started. Good luck, Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message