Hi All,
I'm currently using the 'LOG' target of iptables to send information into the syslog which another program then reads (tail -f) to collect the MAC and IP of particular packets of interest.
What I'm wanting to do is short-cut this step of going into syslog as it's not necessary.
What I want to be able to do is create my own version of the 'LOG' target that will send the MAC and IP of the packets that match the rule to a custom process (or more likely a socket) on the machine.
I've had a read through this site
http://pudhumaijude.blogspot.com/201...-iptables.html and this PDF
http://inai.de/documents/Netfilter_Modules.pdf but unfortunately the part I can't work out is where the actual 'logging' takes place.
Is there someone out there who might be able to point me in the right direction?
Thanks
Anubis.