From: Srinivasa T N <seenutn@linux.vnet.ibm.com>
To: Clemens Eisserer <linuxhippy@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: [NFLOG] How to determine the connection a packet belongs to?
Date: Tue, 07 Jun 2011 17:55:02 +0530 [thread overview]
Message-ID: <4DEE189E.8070403@linux.vnet.ibm.com> (raw)
In-Reply-To: <BANLkTi=7eDTNM+OEuDnZucX2sc4Bck_Q6w@mail.gmail.com>
On 06/07/2011 04:10 PM, Clemens Eisserer wrote:
> Hi,
>
>> You can build the tuple from the packet in user-space to look up the
>> conntrack via libnetfilter_conntrack.
>
> How can I do that?
>
> Assuming there are two open connections:
> IP1:80<----> IP2:39678
> IP1:39678<-----> IP2:80
>
> How can I know which packet belongs to which connection?
>
> Thanks, Clemens
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Am not an expert, but can't you match the src and dst address/port in
each packet?
Regards,
Seenu.
prev parent reply other threads:[~2011-06-07 12:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 14:26 [NFLOG] How to determine the connection a packet belongs to? Clemens Eisserer
2011-06-06 23:39 ` Pablo Neira Ayuso
2011-06-07 10:40 ` Clemens Eisserer
2011-06-07 11:59 ` Jan Engelhardt
2011-06-07 12:25 ` Srinivasa T N [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=4DEE189E.8070403@linux.vnet.ibm.com \
--to=seenutn@linux.vnet.ibm.com \
--cc=linuxhippy@gmail.com \
--cc=netfilter@vger.kernel.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