From owner-freebsd-net Wed Apr 7 1:18:34 1999 Delivered-To: freebsd-net@freebsd.org Received: from osku.suutari.iki.fi (unknown [195.165.67.179]) by hub.freebsd.org (Postfix) with ESMTP id 025CC155FF for ; Wed, 7 Apr 1999 01:18:21 -0700 (PDT) (envelope-from ari@suutari.iki.fi) Received: from suutari.iki.fi (mocha.intranet.syncrontech.com [192.168.2.3]) by osku.suutari.iki.fi (8.9.1/8.9.1) with ESMTP id LAA23867; Wed, 7 Apr 1999 11:15:42 +0300 (EEST) (envelope-from ari@suutari.iki.fi) Message-ID: <370B152D.ACEF8847@suutari.iki.fi> Date: Wed, 07 Apr 1999 11:19:57 +0300 From: ari X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Keith Newton Cc: freebsd-net@FreeBSD.ORG Subject: Re: IP accounting and NATD References: <370AAB14.D93409F2@grafica.co.nz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Keith Newton wrote: > > > /sbin/ipfw add 1001 divert natd all from 192.168.2.1 to any via de0 > /sbin/ipfw add 1002 divert natd all from any to 192.168.2.1 via de0 I guess that incoming packets will not match this line, since they are not coming to 192.168.2.1 but to the address of de0. So you'll need something like 'divert natd all from any to any via de0 in' and something else to do accounting for incoming packets. Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message