Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-03-2008, 10:23 PM   #1
Registered: May 2008
Location: Earth
Distribution: Slackware 12.2
Posts: 52

Rep: Reputation: 16
a command or way to log time of iptables LOG entries?

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?

Old 06-04-2008, 12:12 AM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,124

Rep: Reputation: 164Reputation: 164
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.
Old 06-04-2008, 01:42 AM   #3
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
To add an illustration to what gilead said, here's a random iptables entry from my log file:
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= DST= LEN=91 TOS=0x00 PREC=0x00 TTL=117 ID=28191 PROTO=UDP SPT=32158 DPT=14412 LEN=71

Last edited by win32sux; 06-04-2008 at 01:43 AM.
Old 06-06-2008, 02:23 AM   #4
Registered: May 2008
Location: Earth
Distribution: Slackware 12.2
Posts: 52

Original Poster
Rep: Reputation: 16
thanks guys! Maybe i'm looking at output of dmesg and expecting log times. I'll look in syslog.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 05:13 PM
Opennms Logs - where are web.log, web_rtc.log and webauth.log referenced? not_much_of_a_guru Linux - Networking 0 07-12-2006 11:28 AM
/var/log/auth.log entries buehler Linux - Security 1 04-23-2005 05:45 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 05:03 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 09:38 PM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration