LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Thread Tools
Old 11-04-2009, 10:18 PM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 455
Thanked: 0
iptables log


[Log in to get rid of this advertisement]
HI,

how to identify iptables log that are related to previous connection.

Code:
Nov  5 08:17:41 gateway kernel: IN=eth0 OUT=eth0 SRC=10.10.10.71 DST=192.43.244.18 LEN=76 TOS=0x00 PREC=0xC0 TTL=248 ID=24731 PROTO=UDP SPT=9876 DPT=123 LEN=56
Nov  5 08:17:41 gateway kernel: [IPTABLES DROP] : IN=eth0 OUT=eth0 SRC=10.10.10.71 DST=192.43.244.18 LEN=76 TOS=0x00 PREC=0xC0 TTL=248 ID=24731 PROTO=UDP SPT=9876 DPT=123 LEN=56
Nov  5 08:17:41 gateway kernel: IN=eth0 OUT=eth0 SRC=10.10.10.72 DST=192.43.244.18 LEN=76 TOS=0x00 PREC=0xC0 TTL=248 ID=35364 PROTO=UDP SPT=9876 DPT=123 LEN=56
Nov  5 08:17:41 gateway kernel: [IPTABLES DROP] : IN=eth0 OUT=eth0 SRC=10.10.10.72 DST=192.43.244.18 LEN=76 TOS=0x00 PREC=0xC0 TTL=248 ID=35364 PROTO=UDP SPT=9876 DPT=123 LEN=56
Nov  5 08:17:42 gateway kernel: IN=eth0 OUT=eth0 SRC=10.10.10.152 DST=72.14.203.100 LEN=40 TOS=0x00 PREC=0x00 TTL=126 ID=54193 DF PROTO=TCP SPT=3458 DPT=443 WINDOW=64934 RES=0x00 ACK URGP=0
Nov  5 08:17:42 gateway kernel: IN=eth0 OUT=eth0 SRC=10.10.10.119 DST=64.94.18.201 LEN=89 TOS=0x00 PREC=0x00 TTL=126 ID=19850 DF PROTO=TCP SPT=52470 DPT=443 WINDOW=260 RES=0x00 ACK PSH URGP=0
windows_vista Ammad is offline     Reply With Quote
Old 11-05-2009, 03:32 PM   #2
bertl
LQ Newbie
 
Registered: May 2004
Location: Amsterdam, Holland
Distribution: Ubuntu, Redhat (others in the past)
Posts: 28
Thanked: 10
What do you really want to know? This is what I read from the piece of log you posted:


Quote:
Nov 5 08:17:41 gateway kernel: IN=eth0 OUT=eth0 SRC=10.10.10.71 DST=192.43.244.18 LEN=76 TOS=0x00 PREC=0xC0 TTL=248 ID=24731 PROTO=UDP SPT=9876 DPT=123 LEN=56
Nov 5 08:17:41 gateway kernel: [IPTABLES DROP] : IN=eth0 OUT=eth0 SRC=10.10.10.71 DST=192.43.244.18 LEN=76 TOS=0x00 PREC=0xC0 TTL=248 ID=24731 PROTO=UDP SPT=9876 DPT=123 LEN=56
Nov 5 08:17:41 gateway kernel: IN=eth0 OUT=eth0 SRC=10.10.10.72 DST=192.43.244.18 LEN=76 TOS=0x00 PREC=0xC0 TTL=248 ID=35364 PROTO=UDP SPT=9876 DPT=123 LEN=56
Nov 5 08:17:41 gateway kernel: [IPTABLES DROP] : IN=eth0 OUT=eth0 SRC=10.10.10.72 DST=192.43.244.18 LEN=76 TOS=0x00 PREC=0xC0 TTL=248 ID=35364 PROTO=UDP SPT=9876 DPT=123 LEN=56
These are about internal hosts 10.10.10.71 and 10.10.10.72 trying to time sync using NTP from 192.43.244.18 (time.nist.gov). Would be safe I think to allow, if you wanted to.

Quote:
Nov 5 08:17:42 gateway kernel: IN=eth0 OUT=eth0 SRC=10.10.10.152 DST=72.14.203.100 LEN=40 TOS=0x00 PREC=0x00 TTL=126 ID=54193 DF PROTO=TCP SPT=3458 DPT=443 WINDOW=64934 RES=0x00 ACK URGP=0
Nov 5 08:17:42 gateway kernel: IN=eth0 OUT=eth0 SRC=10.10.10.119 DST=64.94.18.201 LEN=89 TOS=0x00 PREC=0x00 TTL=126 ID=19850 DF PROTO=TCP SPT=52470 DPT=443 WINDOW=260 RES=0x00 ACK PSH URGP=0
These are probably about internal hosts 10.10.10.152 and 10.10.10.119 trying to open SSL (HTTPS) pages at 72.14.203.100 and 64.94.18.201.

All of this is apparently logged (and likely blocked) by your iptables ruleset.

-Bert
linuxubuntu bertl is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Firewall log file, how to make several different log files with IPTables? newtovanilla Linux - Newbie 5 11-28-2008 01:39 PM
a command or way to log time of iptables LOG entries? dividingbyzero Linux - Security 3 06-06-2008 02:23 AM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 05:03 PM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 07:08 AM
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 02:50 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration