Netfilter-based Filtering of Application Protocols

Author
WangShaoWei
Advisor
WangHuiJin
School
Jinan University
Major
Computer Software and Theory
Classification
TP393.09 The application of computer network
Degree
Master's thesis
Year
2006
Downloads
296
Citations
1

Request the full text

Abstract

Network applications become increasingly widely makes various application layer protocols are emerging , but these agreements to facilitate the use of the network at the same time also with a variety of problems . For example : BT agreement in the case of multiple users to simultaneously download will take up a lot of network resources , seriously affected the normal network services . Therefore , these protocols and how to recognize the need to be filtered with a high practical value . Other hand, due to the widespread use of the HTTP protocol , our process it should not be limited to simply identify the disconnected or links , so filtering should be for the information content , wherein the content may include both the useful information, and may also contain harmful information . In this paper, a filtering model based on Linux Firewall Netfilter mechanism Agreement , the model is able to filter the application layer protocol for web content filtering , and URL, title field , keyword filtering . The model without re- compiling the kernel that can be installed in the terminal on the run on the Linux system can also be installed on a Linux server as a gateway .

Table of contents

Abstract 4-5 Abstract 5-9 Chapter Introduction 9-13 1.1 Background and Significance of papers 9 -10 1.2 content filtering software at home and abroad 10-11 1.3 content and purpose of the paper 11-12 1.4 dissertation chapters arranged 12 -13 Chapter Linux kernel related technical analysis 13-22 2.1 Linux kernel mechanism for packet capture analysis 13-16 2.1.1 Netfilter mechanism outlined 13-14 2.1.2 Linux 2.4 kernel Netfilter structure 14-15 2.1.3 Netfilter hook function 15-16 2.1. 4 Registration nuclear canceled hooks 16 2.2 Linux in network packet analysis 16-17 2.3 character file system 17-19 2.3. a major number and minor device numbers master 18 2.3.2 character device interface 18-19 2.4 Based on the / proc file system seq_file interface, 19 - 21 2.4.1 seq_file interface, 19-20 2.4.2 proc_dir_entry structure 20-21 2.5 Linux kernel timing mechanism 21-22 CHAPTER application layer protocol filtering model system structure 22-31 3.1 application layer protocol filtering model 22-23 3.2 application layer protocol filtering model Technical Features 23-24 3.3 application layer protocol filtering model describes the various components of 24-26 3.3.1 register and unregister kernel module 24 3.3.2 protocol identification module 24-25 3.3.3 Web content filtering 25 3.3.4 blacklist filtering 25-26 <br / > 3.3.5 log processing 26 3.4 Linux kernel network packet structure 26-27 3.5 feature matching method 27-29 <br / > 3.6 in Linux, create a logical bridge 29-30 3.7 Summary 30-31 Chapter filtration system design 31-46 <br / > 4.1 kernel space and user space communication design 31 4.2 protocol rule lists the design 31-33 4.2.1 rule description 32 <br / > 4.2.2 Rules in memory organization 32-33 4.2.3 regular character device driver design 33 4.2.4 protocol rule add and delete processes 33 4.3 URL ban list design 33-35 4.3.1 URL Description 34 4.3.2 URL in memory organization 34-35 4.3.3 URL add and delete processes 35 4.4 Keyword generation 35-36 4.4.1 keyword description 36 4.4.2 keyword list in memory organization 36 4.4.3 keywords add and delete processes 36 4.5 blacklist filtering module 36-37 4.6 protocol identification module 37-38 4.6.1 protocol match 38 4.7 web filtering module design 38-42 4.7.1 URL discriminant filter 38-39 4.7.2 Title discriminant filter 39 4.7.3 Content discriminating filter 39-42 4.8 logs are generated and read 42-45 4.8.1 Log File System Interface 42-43 4.8.2 logs in memory forms of organization 43 4.8.3 Design documents 43-45 4.9 Summary 45-46 Chapter filtration system implementation 46-60 5.1 protocol rules linked list implementation 46-49 5.1.1 Character Drivers 46-48 5.1.2 Protocol Structure 48-49 5.1.3 regular character node creation 49 5.2 URL prohibited linked list implementation 49-52 5.2.1 URL ban list node structure 50 5.2.2 URL ban list definition 50-51 5.2.3 URL prohibited list of the hash access 51-52 <br / > 5.2.4 URL to add and delete 52 5.2.5 Creating a Node 52 5.3 Keyword generation rules to achieve 52-53 5.3.1 Creating a Node 53 5.3.2 keyword list structure 53 5.4 log module implementation 53-54 5.4.1 write log files to achieve 54 5.4.2 Reading the log file to achieve 54 5.5 IP layer packets intercepted 54-55 5.6 protocol identification module implementation 55-57 5.7 web filtering module implementation 57-59 5.7.1 URL discriminant filter 57-58 5.7.2 Title discriminant filter 58 5.7.3 web content keyword filtering 58-59 5.8 Summary 59-60 Chapter Systems analysis and evaluation 60-62 6.1 Test 60-61 6.1.1 test environment 60 6.1.2 Functional Test 60-61 6.1.3 System test analysis 61 6.2 Focus and Innovation analyze 61 6.2.1 development 61 <br / > 6.2.2 Data structure design 61 6.3 Summary 61-62 Chapter Summary and Outlook 62-64 References 64-67 Thanks 67

Related dissertations

  1. The Research of Protocol Identification Based on the Linux Firewall
    WuLiEn ·Wuhan University of Technology ·2012 ·Master's thesis
  2. The Research and Development of Embedded Linux Device Drivers
  3. Debugging of Embedded System and the Development of Devices Drives
    QinJuan ·Tianjin University of Technology ·2006 ·Master's thesis
  4. Research and Design of Packet Classification Based on Netfilter
    LeiYuanMing ·Hunan University ·2009 ·Master's thesis
  5. Security Filtering Objected to Illegal Text
    YangMin ·Donghua University ·2009 ·Master's thesis
  6. ARM-based Linux driver development research
    WangXinYong ·Jiangxi University of Technology ·2011 ·Master's thesis
  7. Research and Application of Embedded Linux Device Driver on FPC
  8. Research and Implementation of Files Audit System for Instant Messenger
    DongPingPing ·Central South University ·2011 ·Master's thesis