(no subject)
Hello!
First of all, I am new to Linux and iptables, but I am currently developing (or trying to develop) a match module for iptables. To be short, my problem is the following:
I must track outgoing SYN+ACK packets (confirmation of connection request) and incoming ACK packets acknowledging the SYN+ACKs. With this, the module would be able to calculate the ratio of half open connections.
It is easy to track outgoing SYN+ACKs, but to decide if an incoming ACK is a response to a former SYN+ACK I have to track the state of the TCP connection. Of course I dont want to do this, because the TCP conntrack module makes this - It would be a nonsense and a source of inconsistency to track the state in both modules.
Please tell me, how could my module interact with the TCP conntrack module to get the connection state information.
Thank you!
(a student from Hungary)
Hi,
Quoted 10 lines · Varga Endre
To be short, my problem is the following:
I must track outgoing SYN+ACK packets (confirmation of connection request) and incoming ACK packets acknowledging the SYN+ACKs. With this, the module would be able to calculate the ratio of half open connections.
It is easy to track outgoing SYN+ACKs, but to decide if an incoming ACK is a response to a former SYN+ACK I have to track the state of the TCP connection. Of course I dont want to do this, because the TCP conntrack module makes this - It would be a nonsense and a source of inconsistency to track the state in both modules.
You could rely on event notification from the nfnetlink-ctnetlink-0.13 patch from patch-o-matic-ng. Unfortunately it seems to me nfnetlink-ctnetlink's a little bit out of sync compared to the recent kernel trees.
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary
Hi,
2005-02-16, sze keltezéssel 09.14-kor Jozsef Kadlecsik ezt írta:
Quoted 11 lines
Quoted 10 lines
To be short, my problem is the following:
I must track outgoing SYN+ACK packets (confirmation of connection request) and incoming ACK packets acknowledging the SYN+ACKs. With this, the module would be able to calculate the ratio of half open connections.
It is easy to track outgoing SYN+ACKs, but to decide if an incoming ACK is a response to a former SYN+ACK I have to track the state of the TCP connection. Of course I dont want to do this, because the TCP conntrack module makes this - It would be a nonsense and a source of inconsistency to track the state in both modules.
Quoted 4 lines
You could rely on event notification from the nfnetlink-ctnetlink-0.13 patch from patch-o-matic-ng. Unfortunately it seems to me nfnetlink-ctnetlink's a little bit out of sync compared to the recent kernel trees.
The event notification part of ctnetlink is available for 2.6 kernels
as well (from the netfilter-ha patchset, for example), thanks to Pablo Neira's work.
Signature · 1 line
KOVACS Krisztian <[email protected]>