Skip to contentSkip to conversation

Log question

DISCUSSION Michael Sams 2 participants 2 messages Jun 7, 2004

lore
Share & tools
lore
#0 lore raw

Hi there... I am sorry if this questions has already been asked. I am try to understand some iptables logs. The one I have attached I don't really understand. Could someone point me in the right direction?

Any help is greatly appreciated!

1.2.3.4 = My server

Jun  7 02:23:48 myserver kernel: INVALID STATE:IN=lo OUT= MAC=00:00:00:00:00:00:00:00:00:00:00:00:08:00 SRC=1.2.3.4 DST=1.2.3.4 LEN=68 TOS=0x00 PREC=0xC0 TTL=64 ID=13447 PROTO=ICMP TYPE=3 CODE=1 [SRC=1.2.3.4 DST=219.141.107.<snip> LEN=40 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=TCP SPT=5554 DPT=4715 WINDOW=0 RES=0x00 ACK RST URGP=0 ]
#1 lore raw
Quoted 9 lines · Michael Sams

Hi there... I am sorry if this questions has already been asked. I am try to understand some iptables logs. The one I have attached I don't really understand. Could someone point me in the right direction?

Any help is greatly appreciated!

1.2.3.4 = My server

Jun 7 02:23:48

Date & time - pretty obvious :)

Quoted 1 line

myserver

Your server's hostname.

Quoted 1 line

kernel:

Kernel log message

Quoted 1 line

INVALID STATE:

The string you specified for "log-prefix"

Quoted 1 line

IN=lo

Packet came in on loopback interface

Quoted 1 line

OUT=

Packet is not going to go out on any interface

Quoted 1 line

MAC=00:00:00:00:00:00

Destination MAC address is blank (loopback doesn't use it).

Quoted 1 line

:00:00:00:00:00:00:

Source MAC address is blank (loopback doesn't use it)

Quoted 1 line

08:00

Protocol is IP over ethernet

Quoted 1 line

SRC=1.2.3.4

Source IP address

Quoted 1 line

DST=1.2.3.4

Destination IP address

Quoted 1 line

LEN=68

Packet length including headers.

Quoted 1 line

TOS=0x00

Type Of Service flags not set (= 0000 0000)

Quoted 1 line

PREC=0xC0

Precedence bits = 1100 0000

Quoted 1 line

TTL=64

Time to live = 64: another 64 hops to go before the packet expires

Quoted 1 line

ID=13447

ICMP ID number = 13447

Quoted 1 line

PROTO=ICMP

This is an ICMP packet

Quoted 1 line

TYPE=3

ICMP type = 3 (Destination Unreachable)

Quoted 1 line

CODE=1

ICMP code = 1 (Host Unreachable)

Quoted 2 lines

[SRC=1.2.3.4 DST=219.141.107.<snip> LEN=40 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=TCP SPT=5554 DPT=4715 WINDOW=0 RES=0x00 ACK RST URGP=0 ]

Snippet of the original packet which this ICMP error is referring to (a TCP packet from 1.2.3.4 to 219.141.107.<snip>, from source port 5554 to destination port 4715, with the reset flag set, therefore something was obviously trying to terminate an already-established connection).

See http://logi.cc/linux/netfilter-log-format.php3 for more details on netfilter's logging format.

Regards,

Antony.

Signature · 6 lines
There are only 10 types of people in the world:
those who understand binary notation,
and those who don't.

                                                     Please reply to the list;
                                                           please don't CC me.