From: Ivan Draga <idraga@gmail.com>
To: netfilter-devel@lists.netfilter.org
Subject: Connection tracking: snooping RELATED connections
Date: Thu, 13 Jan 2005 22:20:28 +0300 [thread overview]
Message-ID: <cf4ab3d505011311202b5c13e1@mail.gmail.com> (raw)
Hi,
I have the following question about connection tracking.
Suppose I have a specific application-level protocol that uses a
number of cascading tcp connections to operate. Say it works as
follows: client connects to world-known port on server and sends
port number (e.g. as text). Server connects back to specified
client's port (where client is already listening) and sends another
(server) port number, which client must finally connect to.
Suppose I want to implement connection tracking helper module for
such a strange protocol. I can register helper to detect and snoop the
first connection. When it's created, appropriate expectation for
second (incoming) connection may be queued (so this connection
will be classified as RELATED). And when this expected connection
is created (if it is created at all) I have to spy it to get information
about the third upcoming connection.
But how to do it? Should I register one more ip_conntrack_helper that
will be waiting for the only (second) connection and unregister it
immediately when connection is detected? Would not it be too time /
resource consuming? And what if something goes wrong and the
connection expected is never created, so that expectation will die on
timeout - how would I know to unregister correspondent handler?
Maybe there are simpler ways to do such a things using ip_conntrack
framework?
With best regards,
Ivan
reply other threads:[~2005-01-13 19:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=cf4ab3d505011311202b5c13e1@mail.gmail.com \
--to=idraga@gmail.com \
--cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.