Re: Logging issue!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Johan Cimen wrote:

Hi!

I want to log incomming packets at PREROUTING. Packets destinated to a
specific port on my box and with UDP protocol. Informations within those
packets that I am interested of is TOS and TTL fields.

I have been looking at ulog-acctd using the ULOG target in iptables, but
this daemon does not logg TOS and TTL.

Using LOG target in iptables will logg my packets among other syslog
information. Isn't it correct? I want a seperate file for my loggs.

I have also been looking at syslogd, but this seems to be complicated.

Is there a way that I can logg information using LOG/ULOG target to a
specific file, where there will only be my selected information that I
later can grep?



Yes. An easy way to do this is to specify log level 'debug' and then modify syslog.conf to write debug entries to a separate file. Another way is to use a script to parse /var/log/messages directly pulling out the iptables entries. If you search the archives you should find several exchanges between myself and Chris Brenton where we describe our different approaches in some detail.


Jeff




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux