文档介绍:分类号: U D C:D10621-408-(2007)5878-0
密级:公开编号:2003032062
成都信息工程学院
学位论文
Windows简单防火墙的设计与实现
论文作者姓名:
李书琴
申请学位专业:
网络工程
申请学位类别:
工学学士
指导教师姓名(职称):
闫丽丽
论文提交日期:
2007年07月25 日
Windows简单防火墙的设计与实现
摘要
随着互连网的高速发展,网络给我们带来了极大的方便。人们的学习、工作以及生活越来越依赖于计算机网络,随之也出现了许多网络安全问题,因此当前网络安全产品备受人们的重视。防火墙是保障系统安全的一种有效手段,它可以将个人电脑与不完全的网络隔离开,按照预先设定的规则决定是否允许数据包通过,以此保障了个人电脑的安全。
本毕业设计是基于Windows 2000操作系统、DDK for Windows2000工具开发包及Visual C++。系统主要分为两个模块:过滤钩子驱动模块和用户操作界面模块。过滤钩子驱动模块主要功能是注册过滤钩子回调函数,并按照用户提供的过滤规则进行数据包的过滤;用户操作界面模块的主要功能是实现用户添加、删除过滤规则,同时允许用户以文件的形式保存所添加的过滤规则。
关键词:防火墙;包过滤;钩子;回调函数
The Design and Realization of Simple Firewall for Windows
Abstract
With the rapid development of , it brings us great convenience. We e more and more dependent on the , but it brought a lot of questions work security, thereby the products work security attract much attention. Firewall is an effective means to secure the system. It can separate puter from work, according to the preset rules to decide whether to let the packet through. It guarantees the safety of puter.
This paper is based on Windows 2000, DDK for Windows 2000 and Visual C++ platform to develop simple firewall system. There are two parts in the system, which are hook filter driver module and the module of user interface. The main function of hook filter driver module is to register hook callback function and filter packet according to rules. The main function of user interface module is to add or delete filter rules, and save filter rules as file.
Key words: firewall; packet-filtering; hook; callback function
目录
论文总页数:20页
1 引言 1
课题背景 1
国内外研究现状 1
本课题研究的意义 1
本课题的研究方法 2
2 相关理论技术基础 2
防火墙技术简介 2
防火墙简介 2
2
防火墙的局限性 3
Visual C++ 3
3 总体设计方案 4
设计过程 4
设计方案 4
4 过滤钩子驱动的实现 5
Filter_Hook Driver概述 5
过滤钩子驱动的实现 6
创建内核模式驱动 6
设置和清除过滤钩子 8
过滤器钩子的I/O控制 10
11
5 客户端应用程序 12
界面设计 12
编码规则 14
主要的类 14
核心代