Date: Mon, 21 Dec 2009 14:57:57 +0000 From: Peter Maxwell <peter@allicient.co.uk> To: Tom Uffner <tom@uffner.com>, freebsd-pf@freebsd.org Subject: Re: External scripts with PF. Message-ID: <7731938b0912210657q756fa0fcve69ce02afdd36bca@mail.gmail.com> In-Reply-To: <4B2F39CA.5060805@uffner.com> References: <4B2F0E9D.7020603@subisu.net.np> <4B2F39CA.5060805@uffner.com>
next in thread | previous in thread | raw e-mail | index | archive | help
2009/12/21 Tom Uffner <tom@uffner.com>: > Gaurav Ghimire wrote: >> >> Are there any possibilities that I could run a script (bash, perl) when >> any rule is matched. > > make sure the rule you want to trigger your script includes "log". > > have your script tail pflog, and watch for your trigger rule before > performing its action. Erm, not to sound completely ignorant but I'm assuming that implies he has to write a perl script to parse binary output? He can't pipe it though tcpdump as that would be a seriously bad idea.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7731938b0912210657q756fa0fcve69ce02afdd36bca>