From owner-freebsd-questions@FreeBSD.ORG Fri Jan 30 20:42:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0288210656EA for ; Fri, 30 Jan 2009 20:42:25 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id A8DD48FC19 for ; Fri, 30 Jan 2009 20:42:24 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so256512yxb.13 for ; Fri, 30 Jan 2009 12:42:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=LWbzSMvQscKrhRNfraD0feZG2ZRtqnxdIZg2mNoowEI=; b=jb5e1ggkJ6TVMqvGTUs37/swyMUhjXK67kfLgrmBmY5vqZEHRQfhdbGMV9gMHhKoc0 xFi2RfBx2SnmvG2mIAUe35JCjqicaSYHttPjE50kzlew3reYxHy7JiH8QemPyUpPdlh7 j/qH3DpKPWjpIQyXtNVdPQc4hxjRQy22G59/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=BfYlymeLHuv2r+ofbfJGsYO1VIWb9YRbrwshgSMEuAIwfyFItRDllMFJy7UdWdPGqu zhz1sL5Czfh/4Jp8WhmuGRs6AiPv68qbzMfrOTJHGEevOyhLxRhuKPFcrVactQ+C1xsh M+lddWVP0gqlwFIHan9SLuJSbEhcthQSUccnU= MIME-Version: 1.0 Received: by 10.231.20.2 with SMTP id d2mr219414ibb.37.1233348143757; Fri, 30 Jan 2009 12:42:23 -0800 (PST) In-Reply-To: <4981A577.6090002@gmail.com> References: <4981A577.6090002@gmail.com> Date: Fri, 30 Jan 2009 13:42:23 -0700 Message-ID: From: Tim Judd To: Gunther Mayer Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions Mailing List Subject: Re: Saving pf state for accounting X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2009 20:42:25 -0000 And the numbers automatically wrap at 4GB, due to the i386 architecture if you're using such an arch. I have no clue if the amd64 arch will keep it any longer. And yes, I am topposting. On Thu, Jan 29, 2009 at 5:47 AM, Gunther Mayer wrote: > Hi guys, > > My server uses up tons of bandwidth every month and I'd like to start > recording what traffic volumes my different services chew up on a monthly > basis. My firewall utility of choice is pf and I've recently come across its > neat "label" facility so that I can do a simple "pfctl -sl" to get the > latest readings. > > That's all fair and well but I lose all that lovely accounting information > upon reboot so how do I go about saving this? I've googled quite a bit to > look for a solution but have found nothing useful so far, just unanswered > posts in the past. > > From what I can tell so far I'd have to write a custom rc script which > redirects "pfctl -sl" into some sort of logfile which then may be retrieved > at a later stage (and added to current counter output). Is there an easier > way perhaps? > > Gunther > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >