Another target to log packet
An another target is available on https://sourceforge.net/projects/nflog to log packet via a virtual device (take the idea of pflog under OpenBSD).
Quoted 2 lines · On Thu, Dec 01, 2005 at 04:20:57PM +0100, [email protected] wrote:
An another target is available on https://sourceforge.net/projects/nflog to log packet via a virtual device (take the idea of pflog under OpenBSD).
Thanks for letting us know.
Unfortunately the names "nf_log" and "NFLOG" are already used in 2.6.15+ kernels, so we have a name overlap here. I strognly recommend that you rename your code, since both kernel and iptables userspace side use exactly that name for something different :(
Also, it is not the right way to implement this as an iptables target. Instead, I suggest reimplementing it as a nf_log backend (i.e. something that registers as nf_logger at 'nf_log_register().
This way all you need is the virtual interface code - and it is not related to iptables at all. In fact, even ipv6/bridge/arptables/... logged packets can end up at that interface.
btw: we give out people.netfilter.org accounts, just in case you're interested (I'm a sourceforge-hater, but that's just a personal thing).
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie