From owner-freebsd-isp Tue Aug 24 13:36:59 1999 Delivered-To: freebsd-isp@freebsd.org Received: from proteus.eclipse.net.uk (proteus.eclipse.net.uk [195.188.32.118]) by hub.freebsd.org (Postfix) with ESMTP id 8A38515125 for ; Tue, 24 Aug 1999 13:36:54 -0700 (PDT) (envelope-from stuart@eclipse.net.uk) Received: from eclipse.net.uk (elara.eclipse.net.uk [195.188.32.31]) by proteus.eclipse.net.uk (Postfix) with ESMTP id 5EAAE9B20; Tue, 24 Aug 1999 21:36:50 +0100 (BST) Message-ID: <37C302EC.45A675B8@eclipse.net.uk> Date: Tue, 24 Aug 1999 21:39:08 +0100 From: Stuart Henderson Organization: Eclipse Networking Ltd. X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: en-GB MIME-Version: 1.0 To: Dominik Brettnacher Cc: freebsd-isp@FreeBSD.ORG Subject: Re: IP Accounting References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I want to account the traffic between two of our systems by using a > third box that is connected to the same ethernet that the other two > are using. How do I set up this? One way is to route _through_ the accounting box, then you can simply do, ipfw a 100 pass ip from %%% to ### ipfw a 200 pass ip from ### to %%% and you can do "ipfw s" to show how many bytes and packets passed through. If this is for stats for your own boxes rather than billing, you could just add ipfw rules on the boxes themselves. I haven't investigated this in depth yet but it is likely that software like /usr/ports/net/trafshow might help as well, though that would require you to put the network card in promiscuous mode. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message