Date: Sun, 18 Dec 2005 22:33:00 -0500 From: Parv <parv@pair.com> To: freebsd-questions@freebsd.org Subject: Re: Compacting the "pf -v -s rules" output similar to "ipfstat -ionh" Message-ID: <20051219033259.GA1159@holestein.holy.cow> In-Reply-To: <20051218214608.GA92198@scott.blazing.de> References: <20051218213501.GA72282@holestein.holy.cow> <20051218214608.GA92198@scott.blazing.de>
next in thread | previous in thread | raw e-mail | index | archive | help
in message <20051218214608.GA92198@scott.blazing.de>, wrote Frank Steinborn thusly... > > Parv wrote: > > > > Before i write it myself, has anybody got a already prepared way to > > compact the "pfctl -v -s rules" output ... > > > > pass in on lo0 all > > [ Evaluations: 22188 Packets: 10925 Bytes: 8392463 States: 0 ] > > pass out on lo0 all > > [ Evaluations: 19 Packets: 0 Bytes: 0 States: 0 ] ... > > ... to something like ... > > > > 22188 pass in on lo0 all > > 21850 pass out on lo0 all ... > Don't use -v, just pfctl -s rules. That, however, won't give you a > number of packets/bytes passed to the rules. Yes i am aware of that. Without '-v' all i get only the parsed/loaded rules which is not very useful to me. - Parv --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051219033259.GA1159>