firewall
-
i want to implement a simple software firewall by csharp with ability of filtering ip addresses and blocking som of ports i havent found yet any usefull solution koosha
-
i want to implement a simple software firewall by csharp with ability of filtering ip addresses and blocking som of ports i havent found yet any usefull solution koosha
C# is probably a bit high level for that kind of thing. Usually firewalls are implemented deep in OS. However, a product like WinPKFilter[^] could help as it performs the hooks into the NDIS layer and you can use P/Invoke to process the packets in C#. Does this help?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar The Second EuroCPian Event will be in Brussels on the 4th of September
-
C# is probably a bit high level for that kind of thing. Usually firewalls are implemented deep in OS. However, a product like WinPKFilter[^] could help as it performs the hooks into the NDIS layer and you can use P/Invoke to process the packets in C#. Does this help?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar The Second EuroCPian Event will be in Brussels on the 4th of September
I think this site maybe lead you to a wonder: Full firewall source code, please visit: http://www.filseclab.com/eng/products/sourcecode.htm.
-
I think this site maybe lead you to a wonder: Full firewall source code, please visit: http://www.filseclab.com/eng/products/sourcecode.htm.
How is this much different from using the NDIS Hook code availble in WinPKFilter that I mentioned? The source you site is written in C/C++ and would still require pinvoking for it to work with .NET.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar The Second EuroCPian Event will be in Brussels on the 4th of September Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way! My Blog