All of lore.kernel.org
 help / color / mirror / Atom feed
* where is the right entry point for matching a tracked related connection?
@ 2004-05-26 23:47 Matthias Dettling
  2004-05-27 10:45 ` Henrik Nordstrom
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Dettling @ 2004-05-26 23:47 UTC (permalink / raw)
  To: netfilter-devel

Hello developers,

I am searching the right place in my linux kernel source (v 2.4.26) for 
extending the iptables command to match in a packet "RELATED" to a 
specific connection, informations that were tracked before.

In detail I want to use this for a FTP-connection.
My aim is to open a FTP control-connection on port 21 in passive mode. 
In the so opened channel, the port for the real data transfer is 
negotiated. This negotiated connection is tracked by the 
ftp-helper-module and is allowed, because it corresponds to the related 
connection on port 21 (FW-Rule: "iptables -A INPUT -p tcp --sport 1024: 
--dport 1024: -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT").

But there is no possibility to test wheter the related connection is 
really on port 21.
So I want to modify the matching module "conntrack" (ipt_conntrack.c) 
written by Marc Boucher to do so.

The thing i should know for doing this, is how i can get access to the 
information of a tracked "RELATED" connection.
After reading the hacking-howto i thought that access is gained through 
the pointer "nfct" of the "sk_buff" structure, but with this i can't 
find anywhere port informations of the originating packet (of the 
related connection).
Can somebody help me?

best regards

M. Dettling

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-27 10:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-26 23:47 where is the right entry point for matching a tracked related connection? Matthias Dettling
2004-05-27 10:45 ` Henrik Nordstrom

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.