From owner-freebsd-pf@FreeBSD.ORG Mon Aug 26 16:23:48 2013 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5407BD66 for ; Mon, 26 Aug 2013 16:23:48 +0000 (UTC) (envelope-from the.lists@mgm51.com) Received: from oneyou.mcmli.com (oneyou.mcmli.com [IPv6:2001:470:1d:8da::100]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 15DAA2EF0 for ; Mon, 26 Aug 2013 16:23:48 +0000 (UTC) Received: from sentry.24cl.com (sentry.24cl.com [IPv6:2001:470:89e9:1:feed::1]) by oneyou.mcmli.com (Postfix) with ESMTPS id 3cNz6n5LLGz1DNr for ; Mon, 26 Aug 2013 12:23:45 -0400 (EDT) Received: from BigBloat (bigbloat.24cl.home [10.20.1.4]) by sentry.24cl.com (Postfix) with ESMTP id 3cNz6l6Sv9z1nZm for ; Mon, 26 Aug 2013 12:23:43 -0400 (EDT) Message-ID: <201308261223420296.00BDCCA4@smtp.24cl.home> X-Mailer: Courier 3.50.00.09.1098 (http://www.rosecitysoftware.com) (P) Date: Mon, 26 Aug 2013 12:23:42 -0400 From: "Mike." To: freebsd-pf@freebsd.org Subject: formatting script for pfctl -v -s rules Content-Type: text/plain; charset="ISO-8859-1" X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.14 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: Mon, 26 Aug 2013 16:23:48 -0000 I've written a quick script to format the output of pfctl -v -s rules into a one-line-per-rule format. For me, this format is more useful. The script and sample output are available here: http://archive.mgm51.com/sources/pfstats.html I use this script with FreeBSD 8.4 and 9.1