Computing.Net > Forums > Security and Virus > Programming your own firewall

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Programming your own firewall

Reply to Message Icon

Name: Whisky Bob
Date: April 3, 2003 at 11:14:41 Pacific
OS: WIN98 and Redhat Linux
CPU/Ram: Duron 800Mhz 128MB RAM
Comment:

I was wondering how to make your own
firewall in C++.
I have a number of good books wich teaches
about computer security.
They explain the theory behind TCP/IP and
UDP, encryption, VPN etc. , but they
explain from an administrators point of view,
not from the programmers.
I want to make my OWN firewall,
just as i usually like writing my own
software instead of using an API.
Makeing your own stuff requires time and
patience, but its worth in the end.

Now where should i begin?
I know in general how a TCP-package looks
like, but how do i generate them?
I can write a function that creates a
TCP-package, but what do i do with it then?
Should i save it as a file or send it to the
OS? And how do i send it to the OS?
Is there and API for that?

And more importantly, how do i let my program
check incomeing packages and connections?
Do i have to communicate with my modem
or network-card direclty? (and i have NO
idea on how to do that! :) )

I know a good amount of C++, but im not
a master programmer (its a hobby, not a
job for me).


Any help would be greatly appriciated!!



Sponsored Link
Ads by Google

Response Number 1
Name: Jake
Date: April 3, 2003 at 11:45:26 Pacific
Reply:

I would suggest using Linux or BSD (probably OpenBSD, otherwise Free). Everything is open-source, so you can examine the current firewall code.

This story should give you a little hope and direction.


0

Response Number 2
Name: Whisky Bob
Date: April 5, 2003 at 09:38:30 Pacific
Reply:

Thanks Jake,
that interview was interesting but:
A: I dont have and cant get OpenBSD
B: Its very hard to learn how a program
works by looking at the source if you
dont know the theory behind that type of
program (a firewall in this case).

Thanks for your help, but isnt there a
tutoriol i can read somewhere?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Security and Virus Forum Home


Sponsored links

Ads by Google


Results for: Programming your own firewall

NIS Live Update kills firewall www.computing.net/answers/security/nis-live-update-kills-firewall/14491.html

NV Firewall www.computing.net/answers/security/nv-firewall/19826.html

firewalls www.computing.net/answers/security/firewalls/130.html