Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2005 05:37:24 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        JD Bronson <jbronson@wixb.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pflog summary script?
Message-ID:  <20051125033724.GA16668@flame.pc>
In-Reply-To: <6.2.5.6.2.20051124193206.00bf34b8@sixcompanies.com>
References:  <6.2.5.6.2.20051124193206.00bf34b8@sixcompanies.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-11-24 19:33, JD Bronson <jbronson@wixb.com> wrote:
> Does anyone have a simple shell/perl script that can take
> /var/log/pflog and parse it into a simple txt or html?
>
> I would like to cron a script that can clean up the output of pflog
> and put it into something more readable...
>
> Basically something that looks like:
>
> Time - SourceIP - Destination Port
>
> or a count of these as well.

I think what you want is something like the scripts included in these posts:

http://keramida.serverhive.com/weblog/archives/2004-12-28/switching-from-ipfilter-to-pf
http://keramida.serverhive.com/weblog/archives/2005-01-04/more-fun-with-the-pf9-firewall

They are far from perfect and definitely not what I'd call "production
quality", but they will serve fine as a starting point while you write
your own, I guess ;)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051125033724.GA16668>