Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Getting a signal from iptables

by mr.nick (Chaplain)
on Dec 20, 2011 at 19:57 UTC ( [id://944460] : note . print w/replies, xml ) Need Help??


in reply to Re: Getting a signal from iptables
in thread Getting a signal from iptables

You could potentially have a perl script that is executed every X minutes by cron (or that loops and sleeps) and compares the current set of rules to the last-known set to detect differences.

mr.nick ...

Replies are listed 'Best First'.
Re^3: Getting a signal from iptables
by paulc1976 (Novice) on Dec 20, 2011 at 21:36 UTC

    thanks for your replies guys, all good suggestions although i need something that will trigger immediately rather than polling at regular intervals. I wouldnt know where to start with hacking the linux kernel! I've found a few iptables modules on cpan, might see if i can use those.