External scripts with PF.

Tom Uffner tom at uffner.com
Mon Dec 21 09:03:16 UTC 2009


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.


More information about the freebsd-pf mailing list