Skip to contentSkip to conversation

Establish new connection.

DISCUSSION Rowan Reid 2 participants 2 messages Oct 16, 2000 – Oct 16, 2002

lore
Share & tools
lore

Rowan Reid

author
#0 lore raw

I'm writing a small script to parse through my logs and filter nodes trying to establish new connections to filtered ports. Below is a typical entry what part of that log entry tells me that this person is trying to establish a new connection.

Oct 16 05:42:57 s3a-www kernel: IN=eth1 OUT=

MAC=00:04:75:b1:3d:6c:00:60:49:01:5a:de:08:00 SRC=216.99.233.253 DST=**.**.76.66 LEN=72 TOS=0x00 PREC=0x00 TTL=241 ID=8598 DF PROTO=UDP SPT=53 DPT=1592 L
EN=52

Rowan Reid
Job Captain,
Systems Administrator
STUDIO 3 ARCHITECTS
909 982 1717

#1 lore raw
Quoted 9 lines · Rowan Reid

I'm writing a small script to parse through my logs and filter nodes trying to establish new connections to filtered ports. Below is a typical entry. What part of that log entry tells me that this person is trying to establish a new connection ?

Oct 16 05:42:57 s3a-www kernel: IN=eth1 OUT=

MAC=00:04:75:b1:3d:6c:00:60:49:01:5a:de:08:00 SRC=216.99.233.253 DST=**.**.76.66 LEN=72 TOS=0x00 PREC=0x00 TTL=241 ID=8598 DF PROTO=UDP SPT=53 DPT=1592 LEN=52

Nothing does.

This is a UDP packet, and UDP is a connectionless protocol, therefore there is no concept of setting up a new connection, different from continuing an
existing one. All UDP packets are the same, whether they're the first,
middle, or last packets of a communication between machines.

If it were a TCP packet, on the other hand, you could tell from the flags whether it was an initial request to set up a new connection (SYN flag set), or a reply to that request (SYN and ACK flags set) or part of an established connection (ACK flag only).

Antony.

Signature · 4 lines
Success is a lousy teacher.   It seduces smart people into thinking they 
can't lose.

 - William H Gates III