Skip to contentSkip to conversation

cleaning and build feature

PATCH Applied Eric Leblond 2 participants 3 messages Sep 11, 2008 – Sep 12, 2008 netfilter

lore
Share & tools
lore
#0 lore raw

cover cleaning and build feature

Hello,

This small patchset contains some cleaning and implement conditionnal compilation of NFLOG and NFCT input plugins. This feature was contained in the TODO list and I think it could be useful on system where one of the NFCT or NFLOG plugin can not be used.

Las tpatch update the TODO list. The remaining item in this TODO list are:
- add support for capabilities to run as non-root: It could be interesting but I don't know if we could achieve it with libnetfilter_log or libnetfilter_conntrack.
- support for static linking: As ulogd2 is plugin based, it may be strange but some embedded system could use it.
- issues with ulogd_BASE and partially copied packets (--ulog-cprange): Has somebody encounter the problem ?
- problem with ulogd_BASE and fragments: same remark
- port SQLITE3 plugin: Holger's work could be reused but the code was not really clean.
- convert db layer and pgsql + mysql plugin to a 'parameter bind' scheme for efficiency:
I don't understand the point.
- autoconf detection of SCTP / DCCP support: Well, why not ;)

Quoted 1 line

From my point of view, there is no other thing in the TODO list before a RC release.

Am I missing something ?

BR,
--
Eric Leblond
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/

#1 lore raw
Quoted 10 lines · Eric Leblond

Hello,

This small patchset contains some cleaning and implement conditionnal compilation of NFLOG and NFCT input plugins. This feature was contained in the TODO list and I think it could be useful on system where one of the NFCT or NFLOG plugin can not be used.

Las tpatch update the TODO list. The remaining item in this TODO list are:
- add support for capabilities to run as non-root: It could be interesting but I don't know if we could achieve it with libnetfilter_log or libnetfilter_conntrack.

The binding and the sending requires CAP_NET_ADMIN, so we can initially bind as root and them change to a non-root user to receiver messages, this seem feasiable with libnetfilter_log. However, the problem here is the resynchronize routine that I have introduced in NFCT: we request a dump when we hit ENOBUFS and that's a sending.

Let me think about, maybe we can do something with a fork and a pipe.

Quoted 5 lines

- support for static linking: As ulogd2 is plugin based, it may be strange but some embedded system could use it.
- issues with ulogd_BASE and partially copied packets (--ulog-cprange): Has somebody encounter the problem ?
- problem with ulogd_BASE and fragments: same remark

Probably outdated comment? We can ask Harald during workshop days.

Quoted 1 line

- port SQLITE3 plugin: Holger's work could be reused but the code was not really clean.

We can recover that work. We also have to add a change to db.c since SQLITE3 has no procedures IIRC.

Quoted 2 lines

- convert db layer and pgsql + mysql plugin to a 'parameter bind' scheme for efficiency:
I don't understand the point.

Probably Harald can put some light on it.

Quoted 5 lines

- autoconf detection of SCTP / DCCP support: Well, why not ;)

From my point of view, there is no other thing in the TODO list before a RC release.

Am I missing something ?

I have added BSF support to libnetfilter_conntrack. This could be interesting to filter ctnetlink event messages from kernel-space. You can find an example in the configuration file of conntrackd, see the Filter clause.

The problem is the current configuration file format which is quite cryptic. Using something flex/bison-based would be more flexible, but we have to think about the file format before.

I have other concerns, I'm willing to schedule some time for ulogd to make a new TODO list, we can probably discuss them during the workshop.

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers
#2 lore raw
Quoted 7 lines · Pablo Neira Ayuso
Quoted 1 line

Am I missing something ?

I have added BSF support to libnetfilter_conntrack. This could be interesting to filter ctnetlink event messages from kernel-space. You can find an example in the configuration file of conntrackd, see the Filter clause.

Quoted 6 lines

The problem is the current configuration file format which is quite cryptic. Using something flex/bison-based would be more flexible, but we have to think about the file format before.

I have other concerns, I'm willing to schedule some time for ulogd to make a new TODO list, we can probably discuss them during the workshop.

I forgot to mention that the IPFIX plugin is currently broken.

Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers