Date: Wed, 05 Nov 1997 23:58:47 +0000 From: Brian Somers <brian@awfulhak.org> To: Ruslan Shevchenko <rssh@cam.grad.kiev.ua> Cc: freebsd-questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG Subject: Re: Help with Natd, pls. Message-ID: <199711052358.XAA03948@awfulhak.demon.co.uk> In-Reply-To: Your message of "Wed, 05 Nov 1997 12:53:19 GMT." <Pine.BSF.3.96.971105124214.491A-100000@cam.grad.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
> > I have: > ISP (user-level ppp) > 10.0.0.50 = ep0 FreeBSD tun0 ---------> > / \ > | > | > Local net > > I can't setup natd, (during this nigth). > > I want, that mashines in 10.0.0. -- was be abble > connect with news-server outside my, > as i think, natd must change 10.0.0. address to address of my mashine, > during request from client to outside mashine, and do back substitute, > as proxy. > > > According to documentation I included all options in kernel, > > in /etc/rc.firewall: > /sbin/ipfw -f flash > /sbin/ipfw add 1000 pass all from 127.0.0.1 to 127.0.0.1 > /sbin/ipfw add divert 6668 all from any to any via ep0 > /sbin/ipfw add 6500 pass all from any to any. > > > in /etc/rc.local: > /usr/sbin/natd -n ep0 > > > what I doing wrong ? > You're masquerading on the wrong interface. You should remove natd altogether (along with your divert rules) and use the -alias switch to ppp. -- Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org> <http://www.Awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711052358.XAA03948>