From owner-freebsd-isp Wed Feb 16 22:50:23 2000 Delivered-To: freebsd-isp@freebsd.org Received: from builder.freebsd.org (builder.FreeBSD.ORG [204.216.27.24]) by hub.freebsd.org (Postfix) with ESMTP id 7EEDE37B651 for ; Wed, 16 Feb 2000 22:50:21 -0800 (PST) (envelope-from luigi@info.iet.unipi.it) Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by builder.freebsd.org (Postfix) with ESMTP id 12193132F2 for ; Wed, 16 Feb 2000 22:49:36 -0800 (PST) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id HAA73293; Thu, 17 Feb 2000 07:50:00 +0100 (CET) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200002170650.HAA73293@info.iet.unipi.it> Subject: Re: IP Accounting In-Reply-To: <20000217144200.A1383@tirad.internal.iphil.net> from "Miguel A.L. Paraz" at "Feb 17, 2000 02:42:01 pm" To: "Miguel A.L. Paraz" Date: Thu, 17 Feb 2000 07:50:00 +0100 (CET) Cc: freebsd-isp@FreeBSD.ORG, et-users@etinc.com X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hi all, > > I'm currently using an ETINC HSSI card on FreeBSD 3.3. > > I would like to do accounting close to the way the Ciscos do Netflow > Accounting. I would need data on source and destination IP address and port. > We use this for traffic engineering. you have several alternatives, but one is to use dummynet with dynamic pipes ipfw pipe 1 config mask all buckets 256 ipfw add pipe 1 ip from any to any and then ipfw pipe 1 show will show you per-flow traffic (the number of flows you can monitor is the 'buckets' times the sysctl variable net.inet.ip.dummynet.max_chain_len which defaults to 16. I think you can raise buckets to 1K, and the sysctl var. to any value you want. cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message