Based on Netfilter checksum word filtering firewall design and implementation
- Author
- HuLianYong
- Advisor
- LuXianLiang , JiangJingGui
- School
- University of Electronic Science and Technology
- Major
- Computer technology
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 284
- Citations
- 1
Abstract
\This system is in Linux2.4 kernel version Netfilter firewall framework architecture based on the design and implementation. We are registered in the Netfilter framework checksum word filtering firewall module, the transmission of packets to the local host deep packet filtering. First on the packet source address and destination address ip filter, through the filter of the package if it contains illegal information (ie, referred to herein checksum word), it will trigger the firewall security policy unit correlation function, then these functions are pre-customized according to customer the packet processing rules to perform actions (dropped or queued to the user space for further processing), while some of the other information on this package will be documented logging system for network administrators view it later. In the basic theoretical part, we first introduce the classic seven-layer ISO reference model and practical TCP / IP protocol, and TCP / IP implementation in Linux, and today's popular several types of firewalls are analyzed and compared. After the introduction of the Linux kernel programming and device drivers some basic knowledge of the basic theory. Then, we introduce the Linux network stack to receive packets and send the package works. Finally, we introduce a Netfilter firewall implementation mechanisms and techniques. In the design and implementation section, we discuss four modules respectively checksum word filtering firewall is implemented. First, the registration unit module initialization complete the firewall, which is responsible for security policy unit handler registered to the Netfilter firewall frame, and the entire firewall critical data structures are initialized. Second, the character driver module is kernel space and user space interface for data exchange, all data transfer work to go through it in order to successfully complete. Third, the security policy is to achieve parity unit module is the core of the word filtering, packets flowing through the network interface through which the flow can be successfully after the test destination, otherwise it will trigger the \Fourth, the log information module is guaranteed network administrators to obtain sufficient information in the package, it will follow the established policy on illegal package, we are interested in field recording. In addition, in user space daemon module will be responsible for reading the logs from the log information module, and stored to disk location we specify; it will also back-end database and search engine linked to the security policy unit to provide disabled list of IP addresses. The overall design idea which firewall and test LAN design and test procedures for the preparation by my classmates and I have completed, but the main part of the preparation work is done independently by me. We passed a preliminary test of the system, indicating that the system is designed to achieve the established objectives, to work properly, and has better performance.
Table of contents
Abstract 4-5
Abstract 5-9
Chapter Introduction 9-14
1.1 topics in accordance 9-10
1.2 Research and development status 10-12
1.3 Future trends 12-14
Chapter 2 Technical Background and Theoretical Basis 14-45 < br /> 2.1 ISO / OSI standards and TCP / IP protocol 14-27
2.1.1 ISO / OSI standards 14-17
2.1.2 TCP / IP protocol 17-27
2.1.2.1 DoD model structure 17-19
2.1.2.2 TCP / IP protocol 19-24
2.1.2.3 TCP / IP implementation on Linux 24-27
2.2 Firewall Technical Overview 27-32
2.2.1 Definition of Firewall 27-28
2.2 .2 Firewall history 28-29
2.2.3 Firewall Category 29-31
2.2.4 firewall tasks 31-32
2.3 Linux kernel programming foundation 32-35
2.3.1 kernel space and user space 32-33
2.3.2 Linux kernel Description 33-34 < br /> 2.3.3 Virtual File System 34-35
2.4 Linux device driver 35-45
2.4.1 polling and interrupt 37-38 < br /> 2.4.2 Direct Memory Access (DMA) 38-39
2.4.3 Memory 39
2.4.4 device classification 39-45 < br /> 2.4.4.1 character device 40-41
2.4.4.2 block device 41-42
2.4.4.3 network equipment 42-45 <br / > Chapter Netfilter implementation mechanism and technology 45-55
3.1 sk_buff data structure 45-47
3.2 packet reception and transmission 47-51
3.2.1 packet receiving process 47-50
3.2.2 packet transmission process 50-51
3.3 Netfilter firewall framework 51-55 < br /> 3.3.1 overall structure 51-52
3.3.2 NF_HOOK () macro function call 52-55
Chapter Checksum filtering firewall module design and implementation 55-73
4.1 Firewall overall design 55-56
4.2 module loading and unloading 56
4.3 registered unit module 56-64
4.3.1 Proc file system registered 57-59
4.3.2 character drivers registered 59
4.3.3 Rules trees and prohibit tree initialization 59-64
4.4 character device driver modules 64-67
4.5 security policy unit module 67-70
4.6 log unit module 70-73
Chapter Test Report 73-76
5.1 test 73
5.2 Test results 73 - 76
5.2.1 on security policy unit testing 73-75
5.2.2 for other miscellaneous tests 75-76
Chapter VI Conclusion 76-78
6.1 pending improvements 76-78
6.1.1 Checksum matching algorithm 76
6.1.2 for logging system Improvements 76-77
6.1.3 backend database linkage 77-78
Thanks 78-79
References 79 -81
biographical 81-82
Thesis modify outline 82-83