Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / February 2005

Tip: Looking for answers? Try searching our database.

firewall

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Skur - 24 Feb 2005 21:52 GMT
i need to know if it's possible to write a full firewall with c#. Not just
closing/opening ports , but application capable of what can be achieved by
using norton firewall, zone alarm, kerio etc. , or EVEN iptables (linux
:> ). Please, answer me. All knowledge will be extremely precious.
slawekg
p.s.
sorry for cross-posting
DalePres - 24 Feb 2005 23:17 GMT
Sure, you can do it with C# along with a generous portion of Platform Invoke
.  But why would you want to?  Those organizations have teams of developers
who are experts in the field.  What their team of a dozen people can do in 2
years, would take you at least 24 years.  Imagine how that would look if you
compare to an organization like Norton who may have 100 or more engineers
writing firewall products.

DalePres

>i need to know if it's possible to write a full firewall with c#. Not just
>closing/opening ports , but application capable of what can be achieved by
[quoted text clipped - 3 lines]
> p.s.
> sorry for cross-posting
Willy Denoyette [MVP] - 24 Feb 2005 23:34 GMT
Decent Firewall's operate at the driver level, and you can't use C# or any
other managed language at that level, so the answer is no.

Willy.

>i need to know if it's possible to write a full firewall with c#. Not just
>closing/opening ports , but application capable of what can be achieved by
[quoted text clipped - 3 lines]
> p.s.
> sorry for cross-posting
Skur - 25 Feb 2005 06:46 GMT
ok, what about managed c++ ?
and i sure know i can't compare with norton, i was more asking for
possibility to achieve the same abilities.
thanks!!

> Decent Firewall's operate at the driver level, and you can't use C# or any
> other managed language at that level, so the answer is no.
>
> Willy.
Willy Denoyette [MVP] - 25 Feb 2005 12:30 GMT
Managed C++ is also a managed language, right?
The core of a Firewall is a Packet filter driver, so your only option on
Windows is C/C++ and the DDK.

Willy.

> ok, what about managed c++ ?
> and i sure know i can't compare with norton, i was more asking for
[quoted text clipped - 5 lines]
>>
>> Willy.
uru - 25 Feb 2005 13:49 GMT
> Managed C++ is also a managed language, right?
> The core of a Firewall is a Packet filter driver, so your only option on
> Windows is C/C++ and the DDK.

sorry! i didn't see that, my fault...
if it's only about packet filter, why can't use the one from windows 2000?
this articles it all:
http://www.codeproject.com/tools/firewallpapi.asp
http://www.codeproject.com/managedcpp/packetfilteringnet.asp

http://www.txakynetwork.tk/

so again: if it only would be packet filter, it wouldn't be a problem. but
it's not. for example, what's the way to open/close ports (have all the
control over them)...
so Willy?
Willy Denoyette [MVP] - 25 Feb 2005 16:43 GMT
>> Managed C++ is also a managed language, right?
>> The core of a Firewall is a Packet filter driver, so your only option on
[quoted text clipped - 12 lines]
> control over them)...
> so Willy?

No it's not simply about packet filtering. What you should do is develop a
NDIS Intermediate driver (what I called a Packet Filter Driver). Such driver
sits between the protocol driver and the NDIS miniport driver, anything else
runs to high in the network protocol stack to be effective.
The articles you are refering to expain how one can use the W2K/W2K3 Packet
filter API's to edit the blocked IP/Port tables in the "Protocol Filter
Driver" (only available on W2K/W2K3), this is however not enough to
implement a decent firewall. This is the reason why W2K3 SP1 will include a
Firewall just like Windows XP SP2.
So, why would you write one yourself?

Willy.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.