LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   a command or way to log time of iptables LOG entries? (http://www.linuxquestions.org/questions/linux-security-4/a-command-or-way-to-log-time-of-iptables-log-entries-646818/)

dividingbyzero 06-03-2008 09:23 PM

a command or way to log time of iptables LOG entries?
 
Hi.
Just wondering if there's a way to log the time
of entries that are being logged by iptables, like how Zonealarm shows you the time of each entry?


thanks :)

gilead 06-03-2008 11:12 PM

I haven't seen zonealarm, but how are you doing your logging? All of my log targets go to syslog which adds a date/time stamp when it logs the info.

win32sux 06-04-2008 12:42 AM

To add an illustration to what gilead said, here's a random iptables entry from my log file:
Code:

May 27 15:39:17 candystore kernel: [ 4317.423655] INPUT DROP: IN=eth0 OUT= MAC=00:08:43:cc:6c:03:00:30:c5:c8:b8:50:08:00 SRC=123.123.123.123 DST=234.234.234.234 LEN=91 TOS=0x00 PREC=0x00 TTL=117 ID=28191 PROTO=UDP SPT=32158 DPT=14412 LEN=71

dividingbyzero 06-06-2008 01:23 AM

thanks guys! Maybe i'm looking at output of dmesg and expecting log times. I'll look in syslog.

Thanks.


All times are GMT -5. The time now is 10:06 PM.