Vulnerability Development mailing list archives

Re: TCP


From: R.Argentini () STUDENT TUDELFT NL (Ranieri Argentini)
Date: Mon, 6 Mar 2000 15:35:34 +0100


 I'm having trouble setting up a TCP connection manually in a program.  I'm
sending the packets manually, but can't seem to get anywhere after the
SYN, and
ACK reply. Does anyone know where to look?  Can it be found in a RFC?

Maybe your problem is that your kernel resets the connection
just after the SYN/ACK is received. If is the case, filter the
outgoing resets, since your kernel doesn't know that the SYN/ACK
refers to your raw connection.

I had similar problems while coding the stack for JOS (jos.org).
It can be solved by adding an appropriate ipchains rule to drop (-j DENY)
all packets matching a certain host and port for example. This way the
kernel will not act on them, and you are in full control.
Hope this helps.

Ranieri.


Current thread: