Skip to contentSkip to conversation

question about log kernel modules and log of iptables

DISCUSSION gailya 2 participants 2 messages Oct 4, 2004 netfilter

lore
Share & tools
lore

gailya

author
#0 lore raw

Hello!

I'm working on log audit of firewall recently. The firewall is based on netfilter framework. Now I'm finding a way to collect the log info. However, I don't know how iptables generates log messages and how it deals with it. I wonder whether I should alter the log kernel module if I want more detailed info, and how. Anyone can give me some help or hints. Any related information and hints would be appreciated.

Thank you.

Regards:
Gailya

-------------------------------------------------------------------------------------
周杰伦在"第一现场"与你面对面 http://smspop.163.com/special/jay200408/index2.html

#1 lore raw
Quoted 1 line · On Mon, 4 Oct 2004, [gb2312] gailya wrote:

However, I don't know how iptables generates log messages and how it deals with it.

Normally via the kernel message rinbugger processed by klogd.

There is also the ULOG target which sends log messages via netlink to a log deamon of your choice.

Quoted 1 line

I wonder whether I should alter the log kernel module if I want more detailed info, and how. Anyone can give me some help or hints. Any related information and hints would be appreciated.

See the ipt_LOG.c file for the normal log function. Nothing strange there..

Regards
Henrik