Click here to Skip to main content
14,920,872 members
Articles / Desktop Programming / MFC
Posted 5 Oct 2003


143 bookmarked

An Easy Firewall Application

Rate me:
Please Sign up or sign in to vote.
4.86/5 (49 votes)
9 Oct 2003
Firewall application developed using Packet Filtering API.

Sample Image - firewallpapi.jpg


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.


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


About the Author

Jesus Oliva
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...

Comments and Discussions

QuestionNot working on win7!!! Pin
Member 907371830-Jun-12 12:52
MemberMember 907371830-Jun-12 12:52 
QuestionWindows7 Pin
carlito_brigante29-Oct-11 1:18
Membercarlito_brigante29-Oct-11 1:18 
GeneralMy vote of 1 Pin
Dave Kreskowiak11-Oct-11 3:35
mveDave Kreskowiak11-Oct-11 3:35 
QuestionWorks in XP and not Win7 Pin
Member 776618018-Jun-11 16:32
MemberMember 776618018-Jun-11 16:32 
GeneralCan't drop the income packet!! Pin
pku200929-Dec-08 0:15
Memberpku200929-Dec-08 0:15 
Questionimp plzzzz help me Pin
vivekpandey264-Dec-08 7:25
Membervivekpandey264-Dec-08 7:25 
AnswerRe: imp plzzzz help me Pin
Dhaann21-Feb-09 21:37
MemberDhaann21-Feb-09 21:37 
GeneralFirewall inoperative in this situation Pin
AlGeorge29-Feb-08 10:05
MemberAlGeorge29-Feb-08 10:05 
GeneralRe: Firewall inoperative in this situation Pin
AlGeorge29-Feb-08 10:16
MemberAlGeorge29-Feb-08 10:16 
GeneralSample in VB.Net Pin
Member 428824426-Feb-08 3:11
MemberMember 428824426-Feb-08 3:11 
GeneralFltdefs.h and Iphlpapi.h Pin
Member 14612587-Dec-07 2:09
MemberMember 14612587-Dec-07 2:09 
GeneralPlease tell me why Pin
MD842-Jul-07 22:03
MemberMD842-Jul-07 22:03 
GeneralRe: Please tell me why Pin
ModMa4-Sep-07 11:21
MemberModMa4-Sep-07 11:21 
QuestionApplication name? Pin
Chemically Yours20-Jun-07 20:06
MemberChemically Yours20-Jun-07 20:06 
Questionmfc application design? Pin
arefix8-Feb-07 20:40
Memberarefix8-Feb-07 20:40 
GeneralCan't load DLL in other computer Pin
Satchitananda2-Feb-07 0:43
MemberSatchitananda2-Feb-07 0:43 
GeneralWindows 98 Pin
Arkadiusz z Krakowa20-Dec-06 4:49
MemberArkadiusz z Krakowa20-Dec-06 4:49 
Generalport filtering on LAN Pin
_tasleem8-Aug-06 1:25
Member_tasleem8-Aug-06 1:25 
Generalcannt Filter port Pin
_tasleem8-Aug-06 0:39
Member_tasleem8-Aug-06 0:39 
GeneralIf you know... Pin
Ralph Varjabedian29-Mar-06 21:14
MemberRalph Varjabedian29-Mar-06 21:14 
Generalfor linux firewall design Pin
abhikamune4-Mar-06 6:14
Memberabhikamune4-Mar-06 6:14 
GeneralRe: for linux firewall design Pin
Brad Bruce4-Mar-06 7:20
MemberBrad Bruce4-Mar-06 7:20 
GeneralRe: for linux firewall design Pin
Amit45123-Jul-07 23:51
MemberAmit45123-Jul-07 23:51 
GeneralFirewall in vnisual c++ Pin
the_enginer20-Feb-06 3:34
Memberthe_enginer20-Feb-06 3:34 
Questionhow to drop packet Pin
eltaweel29-Jun-05 1:47
Membereltaweel29-Jun-05 1:47 

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.