Skip to contentSkip to conversation

slog target status

DISCUSSION Antti Siiskonen 2 participants 2 messages Dec 31, 2002 – Jan 7, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

Hello.

There was a message on this list dated

Quoted 1 line

Date: Tue, 01 Oct 2002 10:53:51 +0200

stating that

Quoted 7 lines
Quoted 2 lines

Would it be possible, in the near future, to use a "ctnetlink" interface to get at the final counters when a conntrack is destroyed? :-)

Roman has done something like that already for our company, the patch (not the final version, but enough to have a glance at it) can be fetched at:
http://www.drugphish.ch/patches/roman/slog-kernel-2.4.18.diff

The patch adds a slog target to the kernel which provides exactly the functionality requested in the quoted mail. All connections matching the rule with slog target are logged with connection specific byte and packet counters when the connection is deleted from the connection tracking mechanism.

I'm very interested in this patch. I'm curious if the patch has been updated in any way and also if the user space tools have been patched to include this target. All information on the subject is very welcome, I'd love to play around with this. Also if there are other patches with the same objectives, please let me know.

Signature · 1 line
//Antti
#1 lore raw

Hello Antti,

Sorry for the late reply but I took a hiatus after having spent several weeks in the hospital.

Quoted 8 lines
Quoted 1 line

http://www.drugphish.ch/patches/roman/slog-kernel-2.4.18.diff

The patch adds a slog target to the kernel which provides exactly the functionality requested in the quoted mail. All connections matching the rule with slog target are logged with connection specific byte and packet counters when the connection is deleted from the connection tracking mechanism.

Quoted 5 lines

I'm very interested in this patch. I'm curious if the patch has been updated in any way and also if the user space tools have been patched to include this target. All information on the subject is very welcome, I'd love to play around with this. Also if there are other patches with the same objectives, please let me know.

Yes, Roman has sent me an update to that patch which addresses most of the issues Harald and me were having at the time of its first drop. He's currently doing his diploma thesis and sitting some exams so I will be responsible for the patch.

Unfortunately I also have different priorities at the moment so I can't do much work on the SLOG target. I've made the latest drop available at:

http://www.drugphish.ch/patches/roman/slog-kernel-devel11.diff
http://www.drugphish.ch/patches/roman/slog-userspace-r3.diff

Unfortunately we haven't forward ported it to newer kernels and the user space patch is against 1.2.6a of iptables. Another problem is that I lost track of the ctnetlink status so I don't know how quick I can adapt the changes into the SLOG patch. Nevertheless it should give you something to play with. Your testing and reporting would be very valuable to me.

Sorry for the inconvenience and best regards,
Roberto Nibali, ratz

Signature · 1 line
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc