Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 1998 03:34:09 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Doug White <dwhite@resnet.uoregon.edu>
Cc:        Ruslan Ermilov <ru@ucb.crimea.ua>, ?ukasz Misiuda <luk@albion.albion.pl>, freebsd-questions@FreeBSD.ORG
Subject:   Re: natd not working 
Message-ID:  <199811180334.DAA08254@woof.lan.awfulhak.org>
In-Reply-To: Your message of "Tue, 17 Nov 1998 09:18:09 PST." <Pine.BSF.4.03.9811170915400.6774-100000@resnet.uoregon.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.  :)  

Natd must be given all packets that pass through the *public* 
interface.
-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811180334.DAA08254>