?
Solved

Developing a firewall application in C#

Posted on 2004-11-22
8
Medium Priority
?
640 Views
Last Modified: 2008-02-01
Hi,

I want to develop a firewall application in C#, but I don't have enough information on how to do that. If anybody can provide me with some resources (tutorials, articles, sample source code, books) I would be grateful.

Thanks in advance.

Best Regards,
Wessam Fathi
0
Comment
Question by:deserteagle_83
  • 4
  • 2
6 Comments
 
LVL 8

Expert Comment

by:tomvergote
ID: 12656738
that will be quite hard to do because AFAIK you won't be able to bind your c# apps to ports that are already in use etc.
You could look at the pcap lib or something like that but are you sure you want to write a firewall yourself when there are so many well tested solutions?
http://www.tcpdump.org/pcap.htm
0
 

Author Comment

by:deserteagle_83
ID: 12658555
Well I'm not writing a firewall to compete with other companies :) It's my graduation project (I'm a computer science student).
0
 
LVL 8

Expert Comment

by:tomvergote
ID: 12658640
I think you need to look for a packet capture library or write one on your own, preferably in a more low level language. Then use those captures in a c# app an check them against rulesets.
Watch out for buffer checking and strcpy etc in the low level lib if you write it yourself.

Did you pick that grad project yourself or was it assigned? Either you are a glutton for punishment or your teacher is crazy
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:deserteagle_83
ID: 12659014
Thanks for your replies, actually I did choose my graduation project and it was the firewall, and an antivirus application too.

I think it will be ok to write a packet capture library in a low level language, if you know any resources that can help me with that I will be grateful.

Thanks again,
Wessam Fathi
0
 
LVL 8

Expert Comment

by:tomvergote
ID: 12659040
I don't know about any good resources that you can't google up, the only lib's I know of are pcap and ethereal
0
 
LVL 8

Accepted Solution

by:
tomvergote earned 500 total points
ID: 12659089
you might want to look at this thread:
http://groups.google.be/groups?hl=nl&lr=&client=firefox-a&threadm=f23b01c2587f%243dcea940%24a5e62ecf%40tkmsftngxa07&rnum=13&prev=/groups%3Fq%3Dprogramming%2Bfirewall%26hl%3Dnl%26lr%3D%26client%3Dfirefox-a%26start%3D10%26sa%3DN

they are saying pcap only offers capturing packets and not rejecting connections based on it, and thatyou would have to use LSP or look at  this url
http://www.ndis.com/papers/winpktfilter.htm (which seems a good resource to me)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question