*BSD News Article 99561


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!news.ci.com.au!brian.telstra.net!act.news.telstra.net!vic.news.telstra.net!news.mira.net.au!pumpkin.pangea.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.direct.ca!news.he.net!dimensional.com!flatland.dimensional.com!not-for-mail
From: mfuhr@dimensional.com (Michael Fuhr)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help with natd configuration
Date: 13 Jul 1997 09:19:50 -0600
Organization: Dimensional Communications
Lines: 23
Message-ID: <5qarmm$cu6@flatland.dimensional.com>
References: <33C8807B.41C67EA6@silas.cc.monash.edu.au>
NNTP-Posting-Host: flatland.dimensional.com
X-Newsreader: NN version 6.5.1 (NOV)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44351

David Henshaw <dhenshaw@silas.cc.monash.edu.au> writes:

> My main box is allocated an IP of 10.0.0.1 and connects to an ISP using
> kermit and a pppd connection.  My ISP allocates an IP address
> dynamically.

--snip--

> rc.firewall contains as per the man pages
> 	ipfw add 0100 divert 6668 all from any to any via ed0
> 	ipfw add 65000 allow all from any to any
>
> rc.local contains natd -interface ed0

Don't you want to alias to the address of the PPP interface?  Try using
ppp0 instead of ed0 in both places.  If you get a dynamic IP address from
your ISP, you probably want to specify "-dynamic" as well.  Beware that
"-dynamic" had problems in earlier versions of natd, so make sure you
have a recent copy.

-- 
Michael Fuhr
http://www.dimensional.com/~mfuhr/