Netfilter NAT & LOG
Sun, 12 Mar 2000 16:22:19 +0200
it would be nice to have customised logging, so that one could specify what exactly he/she needs to be logged. may be LOG module is proper place for this...
e.g. I need to log let's say every N-th packet from a tcp stream (may be with some statistics about previous packets).
customization could be done thru LOG module parameters (well, not very good idea, in this case there should be too many of them).
or it could be done this way: LOG module provides means to attach some user supplied logging function (i.e. additional module). LOG module itself does some general logging (should be possible to switch off) before/after which called user function (with access to packet headers and counters thru parameters) and then it can log whatever it wants.
i'm not sure if this is important for most people.
just wondering if it is possible at all...