TCP Filter

From: khaled@pacificpost.com
Date: Wed Dec 13 2000 - 13:11:44 EST


Hello Linux World,

I need to insert a TCP or socket filter that intercepts incoming
user-supplied buffers and do some processing on its contents if it
matches some criterion in the sender. The receiver should do similarly
in the reverse order on the other end of the connection.

I read the Linux Socket Filter Documentation and also the BPF packet
filter man pages and I am feeling that these facilities can not do what
is described above (but I am not sure). I want to use as much as
possible the facilities provided by the Linux Kernel. Ipchains/ipfw will
provide filtering on IP packets which is not what I would like to do. I
would like to intercept/filter traffic incoming into/going out a socket
descriptor through the read/write/send/recv system calls.

Please let me know what to read if what I want to do already exist in
the Socket Filter or other Linux kernel mechanisms.

Best regards

Khaled

PS: Please CC me on the replies since I am not a regular subscriber to
this list.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 15 2000 - 21:00:27 EST