Results 1 to 3 of 3

Thread: /var/log/messages: log entry analysis

Hybrid View

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    /var/log/messages: log entry analysis

    Hi,

    I was looking at my /var/log/messages log and found this entry repeaditly.
    It looks like DST was trying to connect to DPT.
    I looked up the port (TCP 1433) and it's ms-sql. Im not running ms-sql of course. Im kinda new to iptables but, is this where the packets get logged? can anyone do more analysis on this log entry.
    TOS? PREC? WINDOW? RES? SYN?

    thanx,
    ----------
    Aug 28 18:05:40 cvd-bs3-8 kernel: gShield (default drop) IN=eth0 OUT= MAC=00:01:02:83:de:73:00:10:67:00:50:21:08:00 SRC=66.64.20.87 DST=MY_IP LEN=48 TOS=0x00 PREC=0x00 TTL=106 ID=40680 DF PROTO=TCP SPT=22486 DPT=1433 WINDOW=16384 RES=0x00 SYN URGP=0
    ----------

  2. #2

    Re:/var/log/messages: log entry analysis

    [quote author=Blaqb0x link=board=5;threadid=4797;start=0#47735 date=1030792998]
    Hi,

    I was looking at my /var/log/messages log and found this entry repeaditly.
    It looks like DST was trying to connect to DPT.
    I looked up the port (TCP 1433) and it's ms-sql. Im not running ms-sql of course. Im kinda new to iptables but, is this where the packets get logged? can anyone do more analysis on this log entry.
    TOS? PREC? WINDOW? RES? SYN?

    thanx,
    ----------
    Aug 28 18:05:40 cvd-bs3-8 kernel: gShield (default drop) IN=eth0 OUT= MAC=00:01:02:83:de:73:00:10:67:00:50:21:08:00 SRC=66.64.20.87 DST=MY_IP LEN=48 TOS=0x00 PREC=0x00 TTL=106 ID=40680 DF PROTO=TCP SPT=22486 DPT=1433 WINDOW=16384 RES=0x00 SYN URGP=0
    ----------
    [/quote]

    It looks like a packet from ip 66-64.20.87 was trying to connect to a mysql server on your box. You original assumption was correct. Really there's nothing else to report about it.

    TOS = (type of service) An 8 bit field in the IP header that provides prioritization information. Basically this flags tells recieving hosts to give an IP packed higher priority than others waiting to be processed. This field is rarely used.

    PREC = I would like to say this field is part of the type of service portion of the ip header, but I'm not sure.

    Window = A 16 bit field of the TCP header used for flow control. In a nut shell it is the amount of data that a a sending host's buffer can recieve based upon the amount of room availible in the buffer, the frequency at which the buffer is drained and other factors.

    RES = (reserved) A 6 bit field of the tcp header that should remain unused and set to zero.

    SYN = (syncronize) Means that the syn flag was set in the incoming packet header. The syn flag is the first part of the tcp/ip three-way-handshake and usually is a tell-tale sign of a host trying to establish a session with a service on your box.


    As far as I can tell, all those fields are zeroed out (meaning no flags are set in them) so the packet simply appears to be a reqular old packet sent from a sql client (or something else probing that port on your box). See if you can find out who is at that ip. They may have just misconfigured their box. I would grep /var/log/messages for other packets from that source to see what else that ip is up to. Also grep messages to see if other src ips are trying to connect to that port. Chances are--if you have nothing running on that port and are getting tons of establishment requests from the same host--its simply a misconfigured client somewhere. Have you nmapped your box to see what ports are open?

  3. #3

    Re:/var/log/messages: log entry analysis

    I know this is waaaaaay after the fact, but I thought this might be interesting for anyone interested in deciphering their iptables logs:


    http://logi.cc/linux/netfilter-log-format.php3

    [edit:gorn]fixed url[/edit]

Similar Threads

  1. Sendmail Log Analysis Report
    By kdnyazema in forum Tutorials
    Replies: 2
    Last Post: 12-20-2011, 02:07 AM
  2. disk r/w and server performance analysis tools
    By lovewadhwa in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 09-20-2006, 05:47 PM
  3. Crond messages on /var/log/messages
    By trickster in forum Linux - General Topics
    Replies: 4
    Last Post: 05-31-2005, 10:22 PM
  4. Code analysis software?
    By ndogg in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 02-26-2002, 08:28 PM
  5. strange entry in /var/log/messages
    By civ1492 in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 12-07-2001, 03:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •