* Connection tracking: snooping RELATED connections
@ 2005-01-13 19:20 Ivan Draga
0 siblings, 0 replies; only message in thread
From: Ivan Draga @ 2005-01-13 19:20 UTC (permalink / raw)
To: netfilter-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-13 19:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-13 19:20 Connection tracking: snooping RELATED connections Ivan Draga
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.