From owner-freebsd-pf@freebsd.org Wed Dec 23 08:32:31 2015 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8AFDA4FB71 for ; Wed, 23 Dec 2015 08:32:31 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6374B1B2A for ; Wed, 23 Dec 2015 08:32:31 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-lb0-x22a.google.com with SMTP id bc4so42927688lbc.2 for ; Wed, 23 Dec 2015 00:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0oOj0weojTZSBspY95D8qTv1Or/aQvN5IwpVALJ7dlQ=; b=LoRRV4nSt8ovI74evIpQ0UTyYvdG4J5792ljFENop0t1NUn+3eteCFXa2cAqKW9zdy TRKztsV9vdLDtCEc2+9ccVo1F4KnnBujpInSFNWQ8zZdJPUgpeOjAn6QQKaLrrY7msum K5xYePSwADukTNcNm752fSOhQu4xoUC6XsJiPCQGSRXDB+zIL0DU+iqrXKApJC0RfXv7 bC2LuBzBCy/2mflr5vdtWGly+ZRXx8UQHXsG7Kx0WtzG4GWvy2D+cwde9ECpXVneDKtD 2NwS6AHTCVSQ2mgrqps3SjYo0y/P2qvq9Who7KK5VQz1l6CE9y/uruVOBLapyi5anRCQ Ydrg== MIME-Version: 1.0 X-Received: by 10.112.168.70 with SMTP id zu6mr9786862lbb.26.1450859549362; Wed, 23 Dec 2015 00:32:29 -0800 (PST) Received: by 10.25.141.129 with HTTP; Wed, 23 Dec 2015 00:32:29 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Dec 2015 09:32:29 +0100 Message-ID: Subject: Re: How can get more details usage of traffic for each ips? From: Ben Woods To: Yavuz Maslak-Netiletisim Cc: "freebsd-pf@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2015 08:32:32 -0000 On Tuesday, 22 December 2015, Yavuz Maslak-Netiletisim < yavuz.maslak@netiletisim.net> wrote: > i use pf for fw rules. > > I have a table , i want to see statistics of each ip on the table using > pfctl -t tablename -vTsh > > But i only get ipaddress and theirs clear time. i can not more details > in/out bytes usage. But i can get for all tables as global. > > how can i fix that ? > I'm not sure if pfctl can give statistics on a per IP basis. For that, I have used one of the following methods (both of which require further programs and data collection of network traffic than what is built in to pf): 1. darkstat for simple (low volume) setups. 2. netflow export to a collector for analysis in high volume setups. Regards, Ben -- -- From: Benjamin Woods woodsb02@gmail.com