Re: Net statistics for single user

From: Jon Simola (jsimola_at_gmail.com)
Date: 05/18/05

  • Next message: Jim Flowers: "Antispam solutions"
    Date: Tue, 17 May 2005 15:20:54 -0700
    To: KrzychK2 <krzychk2@o2.pl>
    
    

    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
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    

  • Next message: Jim Flowers: "Antispam solutions"