iptables target for libnetfilter_log
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I was wondering if there's already a target for the new libnetfilter_log mechanism or if anyone is currently writing one?
If not I'd write one.
cu
Gregor
- --
Gregor Maier Lehrstuhl Informatik 8
[email protected] Tel: +49 89 289-18010
http://www.net.in.tum.de TU Muenchen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFD/4qmdGiwgbikMYMRAjfSAJ4gku69IpQ6IYVtR0jD3rTi7vMwyQCfa4Iq OIpV3NUm/Wx3k9txHodrxYg=
=A1Pg
-----END PGP SIGNATURE-----
Quoted 4 lines · Gregor Maier
Hi,
I was wondering if there's already a target for the new
libnetfilter_logmechanism or if anyone is currently writing one?
The LOG target uses is as a backend if it is loaded, but this is IMO actually a mistake, the LOG target should keep working the same way as it always did. Which reminds me that I wanted to restore the old way before 2.6.16 is out ..
Quoted 1 line
If not I'd write one.
Mhh maybe we could add a flag to the LOG target to use whatever nf_log backend is registered. I'd prefer that to a full new target.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 4 lines · Patrick McHardy
The LOG target uses is as a backend if it is loaded, but this is IMO actually a mistake, the LOG target should keep working the same way as it always did. Which reminds me that I wanted to restore the old way before 2.6.16 is out ..
The LOG target uses the nf_log mechanism and tries to register a logger to nf_log. Problem is, that userspace apps can unregister this LOG logger and register the netlink logger.
Quoted 3 lines
Quoted 1 line
If not I'd write one.
Mhh maybe we could add a flag to the LOG target to use whatever
nf_logbackend is registered. I'd prefer that to a full new target.
The problem is, that packets that should be logged to syslog take log-level, log-prefix, log-tcp-sequence, log-tcp-iptions, ... as parameters, whereas a target for logging to userspace must provide a group/queuenum and a prefix.
If there's a only one target, the userland iptables must check if the packet should be queued to userspace or logged to syslog.
If its syslog, then accept log-prefox, log-level, log-tcp-sequence et. al parameters. If it should be queued to userspace it should only accept log-prefix and log-group. I think that's awful semantics from a userspace point of view.
IMHO having the LOG target log directly to syslog and having e.g. NFLOG log/queue to userspace (as ULOG) is straighter.
Furthermore a new NFLOG target could use xtables.
cu
Gregor
- --
Gregor Maier Lehrstuhl Informatik 8
[email protected] Tel: +49 89 289-18010
http://www.net.in.tum.de TU Muenchen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFEAFiddGiwgbikMYMRAgKNAJ9Ppxlh5ZHAf2gg2SSZSTQf4gZb4QCfQahY T/3L6Or9LNFY0k4gC5JkoMg=
=irGk
-----END PGP SIGNATURE-----