adi_jinne

Dear Friends...

 

I am a student of RCPIT,Shirpur at INDIA and want to build a firewall in visual studio c# .net...

but where i block is i do not know how to start capturing packets from NET WORK CARD and then how to control the,m..

 means i know the flow that,,.. first i have to capture the packets ( but dont know how to do that in c#) and then stop them using some rules ( even dont know how to do this in c #)... and i want a little bit help...

 

mine contact mail id is : jinne_of_hearts@yahoo.com,adi_jinne@yahoo.com

 

So if any one knows how to do that i will be kind to them for helping me out...

 

Thanks,,




Re: .NET Framework Networking and Communication How to Start Building a firewall in c# .net

Mike Danes

You cannot build a firewall using C# and .NET. A firewall needs to run inside the operating system network stack and the only available option to do this is creating a kernel mode driver using Windows Driver Developer Kit and the C language (or eventually C++ language if you really know what you are doing).



Re: .NET Framework Networking and Communication How to Start Building a firewall in c# .net

Mike Flasko

Your best bet will be to look into developing a Layered Service Provider (see the Winsock reference page in MSDN).  This always you to build a firewall-like component in user space. 

For even more control, look into the Windows Filtering Platform that will be available in Kernel space in Longhorn.  See microsoft.com for more information.






Re: .NET Framework Networking and Communication How to Start Building a firewall in c# .net


Re: .NET Framework Networking and Communication How to Start Building a firewall in c# .net

experttech

I'd recommend doing it in a lower-level language like C using Windows SDK or VC++ or MFC. C# or .net is not a good choice simply because it can be disassembled easily. For a critical app like firewall, its not the best choice.