Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 04:03:06 -0500
From:      Tom Uffner <tom@uffner.com>
To:        Gaurav Ghimire <gaurav@subisu.net.np>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: External scripts with PF.
Message-ID:  <4B2F39CA.5060805@uffner.com>
In-Reply-To: <4B2F0E9D.7020603@subisu.net.np>
References:  <4B2F0E9D.7020603@subisu.net.np>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



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