Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 11:43:53 +0545
From:      Gaurav Ghimire <gaurav@subisu.net.np>
To:        freebsd-pf@freebsd.org
Subject:   External scripts with PF.
Message-ID:  <4B2F0E9D.7020603@subisu.net.np>

next in thread | raw e-mail | index | archive | help
Hi all,

Are there any possibilities that I could run a script (bash, perl) when
any rule is matched.

For example, I have some distinct rule and want to get an alert email
each time any connection threshold is crossed on it from a singe IP. Say
I want one IP only have 1 http connection to a web service in my server,
if it goes 2 pf would update a table or run a external script that would
alert me about that IP.

This is just a concept and I am not doing it in real.

Just wanted to know if there are any possibilities that I could run
external scripts or invoke them when a rule is matched.

I would appreciate any hints or references.

Regards,

-- 
Gaurav Ghimire
System Administrator - Systems (R&D)
Subisu Cablenet (P.) Ltd.
148 Thirbum Sadak
Baluwatar, Kathmandu
Nepal


T: 00977 1 4429616/17 Ext.: 121
F: 00977 1 4430572

http://www.subisu.net.np

(An ISO 9001:2000 Certified Company)




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