Re: External scripts with PF.

2009-12-21 Thread Gaurav Ghimire
Peter Maxwell wrote: > 2009/12/22 Gaurav Ghimire : > > >> thinking if I could be informed via an email alert that a new IP has >> been added to the table abusive_ips. It seems this would have been >> possible if there was a possibility that I could trigger an external >> script on the rule 3rd

Re: External scripts with PF.

2009-12-21 Thread Peter Maxwell
2009/12/22 Gaurav Ghimire : > thinking if I could be informed via an email alert that  a new IP has > been added to the table abusive_ips.  It seems this would have been > possible if there was a possibility that I could trigger an external > script on the rule 3rd rule I have. And the external sc

Re: External scripts with PF.

2009-12-21 Thread Gaurav Ghimire
Kevin wrote: >> For tracking source IPs and adding them to a table, you can already do >> this, c.f. max-src-conn and overload in the pf.conf man page. >> >> >> If you use the overload keyword to dump the bad IPs into a table then >> as a quick and dirty solution for scripting you can the run a scr

RE: External scripts with PF.

2009-12-21 Thread Kevin
> For tracking source IPs and adding them to a table, you can already do > this, c.f. max-src-conn and overload in the pf.conf man page. > > > If you use the overload keyword to dump the bad IPs into a table then > as a quick and dirty solution for scripting you can the run a script > from cron e

Re: External scripts with PF.

2009-12-21 Thread Peter Maxwell
2009/12/21 Gaurav Ghimire : > 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

Re: External scripts with PF.

2009-12-21 Thread Peter Maxwell
2009/12/21 Tom Uffner : > 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 > perf

Re: External scripts with PF.

2009-12-21 Thread Tom Uffner
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. _

External scripts with PF.

2009-12-20 Thread Gaurav Ghimire
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 se