Research and Implementation of e-mail filtering system based on the Linux kernel
- Author
- LinZuo
- Advisor
- QinZhiGuang
- School
- University of Electronic Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP393.098 E-mail ( E -mail )
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 237
- Citations
- 1
Abstract
With the development and popularization of Internet, E-mail became widely used. Apart from the convenient it bought to people, a new problem had arisen, that is the emergence of junk mails. Those junk mails not only consume great amount of web resources, but also spread bad information which do a lot of harm to the society. So the study of how to filtrate those junks has great significance. At first, a brief introduction is given to E-mail and its filtration technology, and then the related technology of Linux kernel is analyzed which includes packet capture technology, packet structure and operational functions in Linux operating system, definition of kernel space and user space, and basic method of kernel programming. On these bases, a mail filtration model is proposed with the main functional module running in Linux kernel space to analyze and filtrate E-mails efficiently. The general structure of the E-mail filtration model is described with the introduction of the component modules and functions of submodules. The design of various modules is defined in detail. At last, the test environment and methods of mail filtration system and its conclusion is been referred to with a prospect to the future. The final production of the study is the design and implementation of an E-mail filtration system which based on Linux kernel. With this system the content of E-mail can be analyzed quickly and then those match the rules can be interdicted simultaneously. The system had already been put into use and showed good result.
Table of contents
Summary 4-5
Abstract 5-6
directory 6-9
main symbol table 9-10
list of illustrations and tables 10-11
Chapter Introduction background and significance of the topic 11-15
1.1 11
1.2 Literature Review 11-13
1.3 of the main work 13
1.4 thesis chapters arranged 13-14
1.5 Summary 14-15 <br / > e-mail messages and filter Technical Overview Email Overview are found in 15-23
2.1; 15-18
2.1.1 e-mail works 15 -16
2.1.2 e-mail format and protocol introduced 16-17
2.1.3 e-mail encoding 17-18
2.2 spam Overview 18-20
the 2.2.1 of spam historical 18
2.2.2 spam characteristics and classification 18-19
2.2.3 the SPAM status of 19-20
2.3 e-mail filtering technology overview 20-22
2.3.1 common spam filtering technology 20
2.3.1.1 black and white list filtering technology 20
2.3.1.2 e-mail filtering technology automatically 20
the 2.3.2 mail filtering location 20-22
2.3 the .2.1 MTA filter 21
2.3.2.2 MDA filter the
2.3.2.3 MUA on the 21st filtering 21-22
2.4 Summary 22 -23
Chapter the Linux kernel Technical Analysis 23-34
3.1 using Linux kernel mechanism for packet capture analysis 23-27
3.1.1 Linux firewall Overview 23-24
3.1.2 IPv4 hook point distribution 24-25
3.1.3 Netfilter hook function 25-27
3.1. 3.1 in the form of the organization of the hook function 25
3.1.3.2 nf_hook_ops Structure 25-26
3.1.3.3 hook function register and unregister interface functions 26-27
3.2 Linux network packet analysis the structure 27-30
3.2.1 packet 27-28
3.2.2 data packet transfer protocol stack 28-29
3.2.3 packet used manipulation functions the 29-30 3.3 Linux kernel programming
introduced 30-33
3.3.1 user space and kernel space 30
3.3.2 kernel module the 3.3.3 kernel programming note 30-31
31-32
3.3.4 kernel programming debugging 32-33
3.4 Summary 33-34
Chapter mail filtering system structure model 34-45
4.1 mail filtering model architecture 34-35
4.2 mail filtering system topology 35-36
the 4.2.1 filter outside the network and within the network between Mail 35-36
4.2.2 protect mail servers are found; 36
4.3 mail filtering technical characteristics of the model 36-37
4.4 mail filtering model component of introduced 37-40
4.4.1 kernel module registration and cancellation function 37-38
4.4.2 rule processing 38
4.4 .2.1 rules classification 38
4.4.2.2 kernel space and user space rules processing 38
4.4.3 log processing 38-39
4.4 .4 blacklist filter 39
4.4.5 linked list management 39-40
4.4.6 message content filtering 40
4.5 mail filtering. technology 40-44
4.5.1 protocol analysis technology 40-41
4.5.2 Rules of pattern matching techniques 41-43
4.5. 3 Creating a Linux logical bridge 43-44
4.6 Summary 44-45
Chapter mail filtering system design and implementation 45-77
5.1 kernel space and user space communication design 45-52
5.1.1 communication need 45
5.1.2 write character device rules 45-50
the 5.1.2.1 the character device interface 46
5.1.2.2 the organizational form of the rules in the memory 46-48
5.1.2.3 Rules character devices to achieve 48-49
the 5.1.2.4 user space rules write the log 49-50
5.1.3 with / proc file system read 50-52
the 5.1.3.1 / proc file system interface 50-51
5.1.3.2 log in the form of organization in memory 51
5.1. 3.3 / proc file procforfilter is to achieve the 51-52
the 5.1.3.4 user space log generated 52
5.2 linked list management 52-63
5.2 .1 few basic linked list 53-54
5.2.2 important data structures 54-59
5.2.2.1 hash table data structure 54 - 55
5.2.2.2 e-mail link head 55-57
5.2.2.3 original packet nbsp the; 57
5.2.2.4 intermediate data head 57-58
5.2.2.5 intermediate packet 58
5.2.2.6 Parts structure 58-59
of 5.2.3 a mail linked list examples nbsp the; 59-61
5.2.4 link management timer design 61-63
5.2.4.1 kernel Timer's mechanism 61-62
5.2.4.2 link release timer 62
5.2.4.3 the dynamic blacklist Timer 62-63
5.3 mail data reduction 63-64
5.4 message content analysis filtering 64-76
5.4.1 analysis of the message flow the 65-71
5.4.1.1 Mail analysis of the overall process 65-66
5.4.1.2 Mail header analysis module the 66-68
5.4.1.3 single-part message analysis module 68-69 5.4.1.3
multi-part message analysis module 69-71 < br /> 5.4.1.4 blacklist processing module 71
5.4.2 packet positioning the nbsp basic data structure of 71-73
5.4.2.1 positioning; 71 - 72
5.4.2.2 positioning function 72
5.4.2.3 take character function and location of the mobile function 72-73
5.4.3 Mail decoding module 73-75
5.4.3.1 Base64 decoding 73-74
5.4.3.2 Q codec 74-75
5.4.4 rule matching module 75-76
5.5 Summary 76-77
Chapter VI system testing and analysis 77-79
the 6.1 mail filtering system test environment 77 -78
6.1.1 mail filtering system configuration 77
the 6.1.2 testing environment 77-78
6.2 Functional Test The 78 <br / > 6.3 performance test 78
6.4 test results 78-79
Chapter VII summarizes a References 79-80
80 - 82
Acknowledgements 82-83
biographical, research during the study period and awards 83-84
Related dissertations
- Study and Implementation of the Anti-Spam System Based on Bayesian Algorithm
- The Design and Implementation of Flow Monitor and Tactics Route System in Linux
- Linux-based anti- DDoS Firewall Design and Implementation
- Research and Implementation of Network Intrusion Detection and Protection Technology Based on HTTP-Flood Attack
- Research and Realization of Fieldbus Conversion and Monitoring System Based on ARM
- The Research of CANopen Protocol Based on Embedded Systems
- Research and Realization of Embedded Wireless Sensor Networks
- Research and Application of Multi-Processing Load Balancing Technology Based on Multi-Core in Cloud Computing
- Design and Implementation of Server Monitoring System Based on Traffic Information
- The Research and Design of the Internet Behavior Management System Traffic Management
- The Tailoring of Linux Kernel Based on Testing Coverage
- Porting and Research on Android Based on CK810
- Reseacrh and Realization of Steam Turbine Bearing Temperature Monitoring and Recording Embedded System Based on ARM
- Research and Application of Multifunctional Industrial Gas Manufactuirng Monitoring System Based on ARM Platform
- Research and Implementation of Audit Monitor Firewall Based on the Framework of the Netfilter
- Research of Intrusion Prevension System in IPv6Transition Environment
- The Design and Implementation of the Netfilter-Based Content Filtering System
- Configration and Analysis of Netfilter/Iptables in Linux Kernel
- The Design and Implement of Internet Monitoring Equipment
- The Design and Implematation of P2P Traffic Monitoring System