From owner-freebsd-isp Sun May 21 22:13:37 2000 Delivered-To: freebsd-isp@freebsd.org Received: from llama.va.com.au (llama.va.com.au [203.15.106.2]) by hub.freebsd.org (Postfix) with ESMTP id CCF0B37B57A for ; Sun, 21 May 2000 22:13:32 -0700 (PDT) (envelope-from jesse@va.com.au) Received: from localhost (jesse@localhost) by llama.va.com.au (8.9.3/8.9.3) with ESMTP id OAA38600; Mon, 22 May 2000 14:42:57 +0930 (CST) (envelope-from jesse@va.com.au) X-Authentication-Warning: llama.va.com.au: jesse owned process doing -bs Date: Mon, 22 May 2000 14:42:57 +0930 (CST) From: jesse reynolds To: chip@chocobo.cx Cc: "D. W. Piper" , freebsd-isp@FreeBSD.ORG Subject: Re: Interface alias accounting? In-Reply-To: <20000519121531.A73613@setzer.chocobo.cx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org `netstat -i` is probably what you're talking about, yes? cheers jesse On Fri, 19 May 2000, Chip Marshall wrote: > On May 19, 2000, D. W. Piper sent me the following: > > Thank you to everyone who replied. :) > > > > I'm afraid I'm still a bit confused though. I thought I'd recently seen > > mention here of a relatively simple method that would allow netstat to > > show the specific packet counts for each IP address assigned to the > > interface, as opposed to showing the interface total for them all. > > > > Maybe it was wishful thinking though. :) > > I'm not sure if someone else already mentioned this, but you could > setup ipfw rules for each of the IP addresses you wanted to watch, > something along the lines of: > 00100 count ip from any to 205.181.254.163 via de0 > 00200 count ip from 205.181.254.163 to any via de0 > > so that when you do an ipfw show, it will show the following: > 00100 4 350 count ip from any to 205.181.254.163 via de0 > 00200 5 414 count ip from 205.181.254.163 to any via de0 > > Where the second column is the number of packets, and the third is the > number of bytes. The first rule shows incoming, and the second should > outgoing. > > -- > Chip Marshall http://www.chocobo.cx/chip/ Finger for PGP > GCM/CS d+(-) s+:++ a18>? C++ UB++++$ P+++$ L- E--- W++ N+@ o K- w O M+ V-- > PS PE Y? PGP++ t+@ 5 X R>+ tv+() b++>+++ DI++++ D(-) G++ e>++ h!>++ r-- y- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > -- Jesse Reynolds, Virtual Artists Pty Ltd jesse@va.com.au http://www.va.com.au To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message