lkml.org 
[lkml]   [2000]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectTCP Filter
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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.021 / U:6.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site