Date: Tue, 27 Aug 2013 13:25:15 +0200 From: Patrick Lamaiziere <patfbsd@davenulle.org> To: "Mike." <the.lists@mgm51.com> Cc: freebsd-pf@freebsd.org Subject: Re: formatting script for pfctl -v -s rules Message-ID: <20130827132515.13aca0b4@mr129166> In-Reply-To: <201308261223420296.00BDCCA4@smtp.24cl.home> References: <201308261223420296.00BDCCA4@smtp.24cl.home>
next in thread | previous in thread | raw e-mail | index | archive | help
Le Mon, 26 Aug 2013 12:23:42 -0400, "Mike." <the.lists@mgm51.com> a écrit : Hello, > 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 Thanks, I think my colleagues will like this. The script does not work on OpenBSD 5.3 because cut(1) does not handle the '-' file. I think it is not needed at all : sed s/" *"/" "/g | \ cut -d' ' -f3,5,7,11- | \ Regards,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130827132515.13aca0b4>