From owner-freebsd-questions Wed Jan 28 16:37:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA00766 for questions-outgoing; Wed, 28 Jan 1998 16:37:25 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA00416 for ; Wed, 28 Jan 1998 16:36:55 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id UAA09574; Wed, 28 Jan 1998 20:39:01 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199801282039.UAA09574@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: Christoph Kukulies cc: Brian Somers , freebsd-questions@FreeBSD.ORG, chrisa@commlet.com Subject: Re: natd/libalias question In-reply-to: Your message of "Wed, 28 Jan 1998 10:13:30 GMT." <19980128101330.57483@gil.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 28 Jan 1998 20:39:00 +0000 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk [.....] > It works! > > With the following /etc/rc.firewall: > > /sbin/ipfw -f flush > /sbin/ipfw add divert natd all from any to any via le0 > /sbin/ipfw add divert natd all from any to any via ipi0 > /sbin/ipfw add pass all from any to any > > And the following natd start line: > > natd -redirect_address 192.168.1.114 0.0.0.0 -n ipi0 > > I still have to understand why this natd line makes it work for any > host on my local network, though :-) I'm surprised the first line doesn't break things :-| It's not necessary and shouldn't really be there. All natd is doing is altering all outgoing packets so that their src address is that of the interface, and then un-altering packets that come back in. > -- > Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de -- Brian , , Don't _EVER_ lose your sense of humour....