Re: c# sniffer filter



Hello,

There are many ways of traffic interception. But in general, the most
popular techniques are the following. In user mode: LSP component. In
kernel mode: filters for TDI or NDIS layer.

For sure writing a device driver in C# is impossible [for now of course,
Singularity is coming ;) ] . However, you can struggle with writing an LSP
in C# and .NET framework. This will require much work on P/Invoke API
functions and marshalling structures. I do not recommend to do it in managed
environment. C++ and unmanaged world is more preferable way to solve this
task. If your project is purely managed, you can take a look into direction
of making a small C++ LSP which is communication with managed applications
regarding the rules, etc.

--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"enzeez" <nospam@xxxxxxxxxxxxxxxxx> wrote in message
news:%23dCEgoEsIHA.3632@xxxxxxxxxxxxxxxxxxxxxxx
Hello,

I need to develop a windows service or application that will detect all
outgoing network traffic.

for E.g, when user requests a webpage in browser, or wants to connect to
FTP server etc.

I need to obtain the server, IP address that the user has requested and my
application will then intervene and decide if the request must be allowed
or rejected.

Can someone please point me how to approach this problem.

I am not so good at network programming and need some help in this area.

i need to develop in c#.

Thanks

NZ


.