Click here to Skip to main content
15,881,882 members
Articles / Desktop Programming / MFC
Article

An Easy Firewall Application

Rate me:
Please Sign up or sign in to vote.
4.87/5 (50 votes)
9 Oct 2003 686.9K   21.5K   144   66
Firewall application developed using Packet Filtering API.

Sample Image - firewallpapi.jpg

Introduction

When I published my articles about firewall development, I received some e-mails about how to develop a complete firewall solution using the methods described. With this tool I want to give these users an easy example of packet filtering utility.

In this solution I have used Packet Filtering API for Microsoft Windows 2000 and above. I have developed a MFC class wrapper for this API. With this class, I make a simple MFC application that allows a user to set filter rules in local interfaces.

If you want to know more about Packet Filtering API, you can read my article Packet Filtering in .NET. Feel free to e-mail me if you want to know more about this application.

Update history

  • October 6, 2003.- Initial release. Version 1.0.
  • October 9, 2003.- Added support for "default action". Version 1.1.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Chief Technology Officer
Spain Spain
To summarize: learn, learn, learn... and then try to remember something I.... I don't Know what i have to remember...

http://www.olivacorner.com

Comments and Discussions

 
Generalfor linux firewall design Pin
abhikamune4-Mar-06 6:14
abhikamune4-Mar-06 6:14 
GeneralRe: for linux firewall design Pin
Brad Bruce4-Mar-06 7:20
Brad Bruce4-Mar-06 7:20 
GeneralRe: for linux firewall design Pin
Amit45123-Jul-07 23:51
Amit45123-Jul-07 23:51 
GeneralFirewall in vnisual c++ Pin
the_enginer20-Feb-06 3:34
the_enginer20-Feb-06 3:34 
Questionhow to drop packet Pin
eltaweel29-Jun-05 1:47
eltaweel29-Jun-05 1:47 
Questioncan this app works in bluetooth connection? Pin
Member 90391921-Mar-05 4:27
Member 90391921-Mar-05 4:27 
AnswerRe: can this app works in bluetooth connection? Pin
Maruf Maniruzzaman31-Jan-06 20:54
Maruf Maniruzzaman31-Jan-06 20:54 
GeneralAbout permitting some packet Pin
roversbig13-Jan-05 23:38
roversbig13-Jan-05 23:38 
GeneralRe: About permitting some packet Pin
Amit45123-Jul-07 23:54
Amit45123-Jul-07 23:54 
Generalpacket api Pin
Irish_GUI31-Mar-04 8:26
Irish_GUI31-Mar-04 8:26 
QuestionHow do I restore my setting after using this? Pin
biny2-Jan-04 19:06
biny2-Jan-04 19:06 
AnswerRe: How do I restore my setting after using this? Pin
Jesus Oliva5-Jan-04 9:00
Jesus Oliva5-Jan-04 9:00 
GeneralRe: How do I restore my setting after using this? Pin
biny5-Jan-04 21:45
biny5-Jan-04 21:45 
GeneralA Firewall in C# Pin
palamr1-Jan-04 1:58
palamr1-Jan-04 1:58 
GeneralRe: A Firewall in C# Pin
Jesus Oliva1-Jan-04 5:15
Jesus Oliva1-Jan-04 5:15 
GeneralRe: A Firewall in C# Pin
shunlong24-Apr-04 2:42
shunlong24-Apr-04 2:42 
GeneralRe: A Firewall in C# Pin
Jesus Oliva24-Apr-04 6:01
Jesus Oliva24-Apr-04 6:01 
Generalan Error Pin
raj_123k27-Dec-03 2:34
raj_123k27-Dec-03 2:34 
GeneralRe: an Error Pin
Jesus Oliva27-Dec-03 5:16
Jesus Oliva27-Dec-03 5:16 
GeneralDrop incoming packet. Pin
chainat20-Nov-03 1:13
chainat20-Nov-03 1:13 
GeneralRe: Drop incoming packet. Pin
Jesus Oliva20-Nov-03 6:44
Jesus Oliva20-Nov-03 6:44 
GeneralRe: Drop incoming packet. Pin
_tasleem8-Aug-06 1:05
_tasleem8-Aug-06 1:05 
GeneralRe: Drop incoming packet. Pin
pku200929-Dec-08 0:10
pku200929-Dec-08 0:10 
Generalclosing a port Pin
andrewgs7316-Nov-03 21:44
andrewgs7316-Nov-03 21:44 
GeneralRe: closing a port Pin
Jesus Oliva17-Nov-03 0:12
Jesus Oliva17-Nov-03 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.