Click here to Skip to main content
15,881,248 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

 
GeneralRe: closing a port Pin
Jesus Oliva17-Nov-03 0:12
Jesus Oliva17-Nov-03 0:12 
GeneralRe: closing a port Pin
andrewgs7318-Nov-03 1:01
andrewgs7318-Nov-03 1:01 
GeneralRe: closing a port its important plz [modified] Pin
_tasleem8-Aug-06 0:56
_tasleem8-Aug-06 0:56 
GeneralRe: closing a port Pin
_tasleem8-Aug-06 1:09
_tasleem8-Aug-06 1:09 
Generalcompilation error Pin
sherrytang23-Oct-03 16:42
sherrytang23-Oct-03 16:42 
GeneralRe: compilation error Pin
Jesus Oliva24-Oct-03 1:48
Jesus Oliva24-Oct-03 1:48 
GeneralRe: compilation error Pin
chainat21-Nov-03 3:52
chainat21-Nov-03 3:52 
GeneralHelp me Pin
Mourad DEBBAH21-Oct-03 5:44
Mourad DEBBAH21-Oct-03 5:44 
Hi, I want to stop internet access in a local network
from the client not from the server(with is the access
point), can i do this with all windows os.
info : the internet access is realized with proxy
or connection sharing (int win2k, winxp).
Thank for you for advance.
GeneralRe: Help me Pin
Jesus Oliva22-Oct-03 2:44
Jesus Oliva22-Oct-03 2:44 
GeneralRe: Help me [modified] Pin
_tasleem8-Aug-06 1:15
_tasleem8-Aug-06 1:15 
QuestionPure C# Version? Pin
IgDev21-Oct-03 4:00
IgDev21-Oct-03 4:00 
AnswerRe: Pure C# Version? Pin
Jesus Oliva22-Oct-03 2:51
Jesus Oliva22-Oct-03 2:51 
Generaljust information :) Pin
ceris13-Oct-03 16:56
ceris13-Oct-03 16:56 
GeneralRe: just information :) Pin
Irish_GUI1-Apr-04 3:00
Irish_GUI1-Apr-04 3:00 
GeneralRe: just information :) Pin
sreeju22-Apr-07 8:23
sreeju22-Apr-07 8:23 
GeneralDrop (packet) vs. Forward question Pin
JonTampa8-Oct-03 6:52
JonTampa8-Oct-03 6:52 
GeneralRe: Drop (packet) vs. Forward question Pin
Jesus Oliva9-Oct-03 5:53
Jesus Oliva9-Oct-03 5:53 
GeneralRe: Drop (packet) vs. Forward question Pin
_tasleem8-Aug-06 1:19
_tasleem8-Aug-06 1:19 
GeneralStateful firewall Pin
Jörgen Sigvardsson7-Oct-03 2:25
Jörgen Sigvardsson7-Oct-03 2:25 
GeneralRe: Stateful firewall Pin
Jesus Oliva7-Oct-03 2:54
Jesus Oliva7-Oct-03 2:54 
GeneralVery useful tool Pin
0 rc6-Oct-03 20:44
0 rc6-Oct-03 20:44 
GeneralRe: Very useful tool Pin
Anonymous6-Oct-03 23:29
Anonymous6-Oct-03 23:29 

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.