From owner-freebsd-questions Tue Nov 17 09:20:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA09429 for freebsd-questions-outgoing; Tue, 17 Nov 1998 09:20:56 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA09415 for ; Tue, 17 Nov 1998 09:20:52 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id JAA16024; Tue, 17 Nov 1998 09:18:09 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Date: Tue, 17 Nov 1998 09:18:09 -0800 (PST) From: Doug White To: Ruslan Ermilov cc: ?ukasz Misiuda , freebsd-questions@FreeBSD.ORG Subject: Re: natd not working In-Reply-To: <19981117092934.A1897@ucb.crimea.ua> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 17 Nov 1998, Ruslan Ermilov wrote: > On Mon, Nov 16, 1998 at 04:47:20PM -0800, Doug White wrote: > > On Mon, 16 Nov 1998, [ISO-8859-2] Łukasz Misiuda wrote: > > > > > LAN - ed0 - ethrnet > > > WAN - ppp0 - leased line (pppd) > > > > Standard issue. > > > > > I followed all suggestions in 'man', e.g.: > > > > > > -kernel with IPFIREWALL, and IPDIVERT > > > -ip forwarding > > > -ipfw rule: ipfw add divert natd all from any to any via ppp0 > > > -starting natd (from console): natd -v -n ppp0 > > ^^^^ > > > > Oops, this should be ed0. See the natd man page. > > > > Why it should be ed0? Bother to explain? Sure. You want the packets to be translated from the outside world's address to your internal network. The -n (aka -interface) option takes the IP address and netmask of the named interface for the destination translation address. You want the LAN hidden from the rest of the world, not the rest of the world hidden by the LAN. :) > In my mind, there is only one requirement: start natd after ppp0 > has been configured. It doesn't matter since natd is runing through ipfw anyway. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message