Skip to contentSkip to conversation

Another target to log packet

DISCUSSION [email protected] 2 participants 2 messages Dec 1, 2005 – Dec 6, 2005 netfilter

lore
Share & tools
lore
#1 lore raw
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