Research and Implementation of Linux operating system - based keyword filtering firewall
- Author
- DangYu
- Advisor
- LuXianLiang
- School
- University of Electronic Science and Technology
- Major
- Computer System Architecture
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 310
- Citations
- 0
Abstract
\Design and Implementation of the system is a Netfilter firewall based on prepackaged Linux 2.4 kernel version after new framework architecture. By keyword filtering function registered in the Netfilter framework, content filtering packets transmitted over the network. Packages containing illegal information (referred to herein keywords) will trigger the correlation function of the firewall security policy unit, then these functions in accordance with the customers' pre-customized processing rules package to perform actions (discarded or queued to the user space for further processing ), at the same time some of the other information of this package will be logging system record for network administrators to view. On the basis of the theoretical part, the paper first introduces the classic ISO seven-layer protocol model and practical TCP / IP model, and today's popular several types of firewall are analyzed and compared. Next, a brief introduction to the Linux kernel programming and device driver knowledge. Then, the principle of the received packet and send packets in the Linux network protocol stack. Finally, an overview of the Netfilter firewall framework introduced since version 2.4 of the Linux kernel architecture. Subsequently, four modules were discussed the keyword filtering firewall is how to achieve it. The registration unit module to complete the initialization firewall, which is responsible for security policy unit processing function registered to the Netfilter firewall frame, and the entire firewall key data structure is initialized. The character driver module kernel space and user space data exchange interface, all data transfers go through it can be successfully completed. Security policy unit module is the core of keyword filtering, flowing through the network interface packets through it after the test in order to smooth the flow of the destination, otherwise it will trigger events that deal with \Log information module to ensure that the network administrator is able to obtain sufficient packet information in accordance with the established strategy: it will record some of the fields of the packets containing illegal keywords. In addition, the user-space daemon module will be responsible to read the log from the log information module, and credited to the disk location we specify; daemon module will also back-end database and search engine with the role of the security policy unit to prohibit the list of IP addresses. Preliminary testing of the system, indicating that the system design goals, to work properly, and has better performance.
Table of contents
Abstract 4-5
Abstract 5-7
directory 7-9
Chapter Introduction 9-13 <br / > 1.1 issue Source 9-10
1.2 Research and development status 10-12
1.3 Future trends 12-13
Chapter foundation theory and related technical background knowledge 13-31
2.1 OSI seven layer model and TCP / IP network model 13-18
2.1.1 OSI seven layer model 13-15
2.1.2 TCP / IP interconnection model 15-18
2.2 firewall technology 18-22
2.2.1 Firewall Profile 18 -21
2.2.1.1 firewall functionality 18
2.2.1.2 Firewall Category 18-21
2.2.2 firewall applications 21-22 < br /> 2.3 Linux kernel programming techniques introduced 22-24
2.3.1 kernel module with the application of contrast 22-23
2.3.2 Introduction nbsp modular programming techniques ; 23-24
2.3.3 Proc File System Introduction 24
2.4 device driver introduction 24-31
2.4.1 Memory 26
2.4.2 device driver interfaces with the core 26-28
2.4.2.1 character device 27-28
2.4.2.2 block device 28
2.4.3 Network Equipment 28-31
Chapter Linux operating system firewall framework 31-40
3.1 network protocol stack 31 - 32
3.2 receive packets in the protocol stack process 32-36
3.2.1 and receiving data from the network device to the receiver pending queued packet queues 32-34
3.2.2 process the received packet queue 34-36
3.3 in the protocol stack to send a packet 36-37
3.4 Firewall framework 37 -40
3.4.1 general framework 37-38
3.4.2 netfilter return value 38-39
3.4.3 netfilter brief analysis 39-40
Chapter keyword filtering firewall module design and implementation 40-65
4.1 Firewall overall framework 40-41
4.2 module unload function and module loading function 41-42
4.3 Registration unit module 42-50
4.3.1 Proc file system registered 42-44
4.3. 2 character drivers registered and unloading 44-46
4.3.3 Rules prohibit tree trees and debut of 46-50
4.4 character device driver modules 50-55
4.5 security policy unit module 55-58
4.6 log unit 58-62
4.7 daemon module 62-65 < br /> CHAPTER test reports as well as areas for improvement 65-71
5.1 test environment 65
5.2 test 65-66
5.3 Test results and performance comparisons 66-70
5.3.1 on security policy unit testing 66-69
5.3.2 other miscellaneous test 69 -70
5.4 pending improvements 70-71
5.4.1 keyword (word) search algorithm 70
5.4.2 for logging system taking a step forward to improve 70-71
Chapter VI Conclusion 71-72
References 72-73
Thanks 73-74
Resume 74
Related dissertations
- On Analytical Techniques of Monitoring P2P IM Junk Information
- Based on Netfilter checksum word filtering firewall design and implementation
- The Design and Implementation of SMS spam filtering system
- Research and Design of Intelligent Web Filtering System
- Technology Research of Text Filtering Firewall