摘 要
隨著互連網(wǎng)的高速發(fā)展,網(wǎng)絡(luò)給我們帶來(lái)了極大的方便。人們的學(xué)習(xí)、工作以及生活越來(lái)越依賴于計(jì)算機(jī)網(wǎng)絡(luò),隨之也出現(xiàn)了許多網(wǎng)絡(luò)安全問(wèn)題,因此當(dāng)前網(wǎng)絡(luò)安全產(chǎn)品備受人們的重視。防火墻是保障系統(tǒng)安全的一種有效手段,它可以將個(gè)人電腦與不完全的網(wǎng)絡(luò)隔離開,按照預(yù)先設(shè)定的規(guī)則決定是否允許數(shù)據(jù)包通過(guò),以此保障了個(gè)人電腦的安全。
本畢業(yè)設(shè)計(jì)是基于Windows 2000操作系統(tǒng)、DDK for Windows2000工具開發(fā)包及Visual C++6.0平臺(tái)開發(fā)的簡(jiǎn)單防火墻系統(tǒng)。系統(tǒng)主要分為兩個(gè)模塊:過(guò)濾鉤子驅(qū)動(dòng)模塊和用戶操作界面模塊。過(guò)濾鉤子驅(qū)動(dòng)模塊主要功能是注冊(cè)過(guò)濾鉤子回調(diào)函數(shù),并按照用戶提供的過(guò)濾規(guī)則進(jìn)行數(shù)據(jù)包的過(guò)濾;用戶操作界面模塊的主要功能是實(shí)現(xiàn)用戶添加、刪除過(guò)濾規(guī)則,同時(shí)允許用戶以文件的形式保存所添加的過(guò)濾規(guī)則。
關(guān)鍵詞:防火墻;包過(guò)濾;鉤子;回調(diào)函數(shù)
The Design and Realization of Simple Firewall for Windows
Abstract
With the rapid development of Internet, it brings us great convenience. We become more and more dependent on the Internet, but it brought a lot of questions of network security, thereby the products of network security attract much attention. Firewall is an effective means to secure the system. It can separate personal computer from unsafe network, according to the preset rules to decide whether to let the packet through. It guarantees the safety of personal computer.
This paper is based on Windows 2000, DDK for Windows 2000 and Visual C++6.0 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