Date: Tue, 17 May 2005 15:20:54 -0700 From: Jon Simola <jsimola@gmail.com> To: KrzychK2 <krzychk2@o2.pl> Cc: freebsd-isp@freebsd.org Subject: Re: Net statistics for single user Message-ID: <8eea04080505171520f2b19ae@mail.gmail.com> In-Reply-To: <43330830.20050517234412@o2.pl> References: <43330830.20050517234412@o2.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5/17/05, KrzychK2 <krzychk2@o2.pl> wrote:
> I'm using FreeBSD 5.4 with pf/altq config (earlier ipfw/dummynet).
> The problem is - how can generate statistics for signle IP?? The
> output grapher is mrtg. When there was ipfw there was a simple
> solution. Now I'm looking and looking.... Someone has any idea for
> solution of this problem?? Now I use ipfm but this promisc mode agrrr.
Use tables:
table <throttled_ips> persist file "/etc/pf/throttled_ips"
pass out quick on em0 from <throttled_ips> to any keep state queue throttle_ext
pass out quick log on vlan100 from any to <throttled_ips> keep state
queue throttle_int
bash-3.00# pfctl -vv -T show -t throttled_ips
208.x.x.y
Cleared: Fri Apr 15 11:05:10 2005
In/Block: [ Packets: 0 Bytes: 0 ]
In/Pass: [ Packets: 4597083 Bytes: 3437770858 ]
Out/Block: [ Packets: 0 Bytes: 0 ]
Out/Pass: [ Packets: 4469268 Bytes: 2122475624 ]
208.x.x.x
Cleared: Fri Apr 15 11:05:10 2005
In/Block: [ Packets: 0 Bytes: 0 ]
In/Pass: [ Packets: 4475325 Bytes: 3199113496 ]
Out/Block: [ Packets: 0 Bytes: 0 ]
Out/Pass: [ Packets: 4889424 Bytes: 1520235573 ]
--
Jon Simola
Systems Administrator
ABC Communications
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8eea04080505171520f2b19ae>
