From owner-freebsd-isp Wed Nov 5 16:24:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA22005 for isp-outgoing; Wed, 5 Nov 1997 16:24:47 -0800 (PST) (envelope-from owner-freebsd-isp) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA21982; Wed, 5 Nov 1997 16:24:34 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.5) with ESMTP id XAA03948; Wed, 5 Nov 1997 23:58:47 GMT Message-Id: <199711052358.XAA03948@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Ruslan Shevchenko cc: freebsd-questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG Subject: Re: Help with Natd, pls. In-reply-to: Your message of "Wed, 05 Nov 1997 12:53:19 GMT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 05 Nov 1997 23:58:47 +0000 From: Brian Somers Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > 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 , , Don't _EVER_ lose your sense of humour....