All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables target for libnetfilter_log
@ 2006-02-24 22:37 Gregor Maier
  2006-02-25  8:39 ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Gregor Maier @ 2006-02-24 22:37 UTC (permalink / raw)
  To: netfilter-devel

-----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
gregor@net.in.tum.de                              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-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: iptables target for libnetfilter_log
  2006-02-24 22:37 iptables target for libnetfilter_log Gregor Maier
@ 2006-02-25  8:39 ` Patrick McHardy
  2006-02-25 13:18   ` Gregor Maier
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick McHardy @ 2006-02-25  8:39 UTC (permalink / raw)
  To: Gregor Maier; +Cc: netfilter-devel

Gregor Maier wrote:
> Hi,
> 
> I was wondering if there's already a target for the new libnetfilter_log
> mechanism 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 ..

> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: iptables target for libnetfilter_log
  2006-02-25  8:39 ` Patrick McHardy
@ 2006-02-25 13:18   ` Gregor Maier
  0 siblings, 0 replies; 3+ messages in thread
From: Gregor Maier @ 2006-02-25 13:18 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: netfilter-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrick McHardy wrote:

> 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.

>>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.
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
gregor@net.in.tum.de                              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-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-25 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-24 22:37 iptables target for libnetfilter_log Gregor Maier
2006-02-25  8:39 ` Patrick McHardy
2006-02-25 13:18   ` Gregor Maier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.