Solved

Firewalls (filtring) programming

Posted on 2004-08-17
2
232 Views
Last Modified: 2010-04-01
Hi all,
I'm a student, I want to  build a firewall (even basic) for Windows OS, I want to use C++ (Builder) can you help me in:
-understanding the firewall (fitring) mechanism under Widows
-geting some source code in C++
any Idea or links are appreciated,

I tried to do it but I found it very diffecult for windows, I ound some sourec code but they aren't well explained,

thank you in advance,
0
Comment
Question by:a_hic
2 Comments
 
LVL 22

Expert Comment

by:grg99
ID: 11821877
I'd say FORGET IT!

It's a many-month project at least.  And you have to know a whole lot about TCP/IP protocols, down to the bit level.

AND if it doesnt work first-time, yo have no idea why, because TCP/IP never returns any error messages if it receives a mal-formed packet.  Makes it nearly impossible to debug your code.

If you must, I'd look at the source code from the Linux firewall, ipfilters, available with any of the Linux distros.  It's rather huge, don't say I didnt warn you.

0
 
LVL 3

Accepted Solution

by:
str_ek earned 250 total points
ID: 11826596
it's not so hard if you aim for a simple project

take look at these ...
http://sourceforge.net/projects/firewallpapi/ - that's quite advanced one. source aviable

and consult further with this tcp/ip resources bible
http://www.private.org.il/tcpip_rl.html

it will not be a pleasure, and a 5 min snap-code... prepare for some decent reseach on actual tcp/ip basis...

for more advanced info about nowdays tendences in firewall development i advocate the http://www.netfilter.org/ it's home of iptables project - currently most common filtering software for linux os... there's a lot of info down there, just dig it up!

just a friend to friend suggestion..if it's not to late, change the projet ;)
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now