Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Julian Gomez <kluivert@tm.net.my>
To: netfilter@lists.netfilter.org
Subject: Re: how to got  lasting time about one connection from iptable log?
Date: Wed, 4 Jun 2003 18:49:05 +0800	[thread overview]
Message-ID: <20030604104905.GE1477@floyd> (raw)
In-Reply-To: <E19NOOU-0001Jt-00@kashyyyk.netfilter.org>

On Wed, Jun 04, 2003 at 10:51:51AM +0800, gbj spoke thusly:
> time                      in   pro    src         spt      dest        dpt
>Jun 02 07:59:31   ACCEPT  eth0  tcp  192.168.6.26  4278  64.215.164.33  80  
>Jun 02 07:59:32   ACCEPT  eth0  tcp  192.168.6.26  4278  64.215.164.33  80  
>Jun 02 07:59:32   ACCEPT  eth0  tcp  192.168.6.26  4278  64.215.164.33  80  
>
>but in fact, this connection information perhaps belonge to one
>connection,I want to know how to combine this information to one
>connection message and got the duration time of the connection,just like

Really, HTTP/1.0 connection ?

>this: start  time        duration       src         spt     dest       dtp
>
>    Jun 02 07:59:30        128         192.168.6.26  4269  64.215.164.33
>    80 

You'll need to write a script to perform the calculations and joining for
you. 

Personally, from the above output, I think that would be quite easy, but
not entirely correct because I reckon you'll have to ignore the source
ports, or at least have some match going on, to determine that if your
start and end source ports are close enough, then they are part of the same
connection, if everything else (src, dst IP && dst port) are the same. [*]

[*] -- This of course also depends on the fact that you don't have any
       kernel patches (grsecurity comes to mind) which performs automatic
       randomization of the source port (ala OpenBSD).

(snip various bits)


      reply	other threads:[~2003-06-04 10:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-04  2:51 how to got lasting time about one connection from iptable log? gbj
2003-06-04 10:49 ` Julian Gomez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030604104905.GE1477@floyd \
    --to=kluivert@tm.net.my \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox