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

Notices


Reply
  Search this Thread
Old 06-03-2008, 09:23 PM   #1
dividingbyzero
Member
 
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?


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
 
Old 06-03-2008, 11:12 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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, 12:42 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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

Last edited by win32sux; 06-04-2008 at 12:43 AM.
 
Old 06-06-2008, 01:23 AM   #4
dividingbyzero
Member
 
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.

Thanks.
 
  


Reply



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 04: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 10:28 AM
/var/log/auth.log entries buehler Linux - Security 1 04-23-2005 04:45 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:04 AM.

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