Design and Implementation of Linux Firewall
- Author
- TuZuo
- Advisor
- YinZhiBen
- School
- Southwest Jiaotong University
- Major
- Computer Software and Theory
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 567
- Citations
- 3
Abstract
Nowadays the computer network technology is developing rapidly, people pay more and more attention to firewall technology while the network security problems are increasing prominent. It is necessary to design and develop our own firewall system for special requirements in the sensitive department. Linux provides the Netfilter framework based on kernel with generic and scalability features. The developers can implement their firewall systems depending on different network security requirements.First of all, the theory of building a firewall based on Linux Netfilter is presented in this thesis. Then the technology and theory referred in design and implementation of the firewall is introduced. Finally, the design and implementation of HiPF(High Performance Firewall) with functions of packet filtering, anti-DoS(Denial of Service) attacks, logging, event notification, configuration management are presented in this thesis. HiPF has the following features compared with the traditional firewalls:1. The traditional linux firewalls have little ability to associate with other system, it can’t send notification to user-space processes from kernel-space process when detecting events. The function of event notification is implemented in HiPF, HiPF will send notification to user-space processes while finding expected events to achieve emergency, alarm, association.2. The traditional linux firewalls have a lack of diagnosising consistency of rule sets. The security of firewall may be reduced because of inconsitency rule sets. HiPF supports rule consistency diagnosis and provides the best procedure to remove conflicting rules to make the rule set be consistent.3. The packets are classified inefficiently when the rule set has mass rules and flows under heave traffic by linear search in the traditional linux firewalls. Most firewalls make use of HASH algorithm to realize fast classification. But the attack to HASH algorithm will bring the classification rate down. A packet classification algorithm named GEM(Geometric Efficient Matching) based on computational geometry is implemented in HiPF to keep high throughput under the load of mass rules and heavy flows. A building algorithm for data structure of GEM is proposed in this thesis, the time and space complexity are feasible through the experiments.The configuration of test environment is introduced in this thesis. A test tool called NetTest based on winpcap is developed for testing. The tool can send packets according to the config files flexibly and its sending performance is stable. Finally the gem searching algorithms and the linear searching algorithm are tested with NetTest. The GEM is proved to have a higher performance and better practicality. The function of event notification is tested to verify that the firewall will execute corresponding commands correctly to alarm or work with other systems under attack.Test results show that the anticipation of the firewall has been achieved. The ideas, design methods, algorithms mentioned in this thesis is valuable for developing firewalls on platform of linux.
Table of contents
Summary 6-7
Abstract 7-12
first chapter 12-16
1.1 Background and Significance of topics 12 < br /> 1.2 firewall technology development status 12-14
1.2.1 firewall classification 12-13
1.2.2 Linux firewall current development status 13-14
1.2.3 new firewall technology 14
1.3 The main contents 14-15
1.4 papers structural arrangements 15-16
Article two chapters firewall technology and theoretical foundation 16-29
2.1 Construction of the foundation of existing firewall 16-18
2.1.1 Netfilter based firewall solution 16 -18
2.2 user mode and kernel mode data interactively 18-20
2.2.1 character-based device drivers interact with the kernel 18-19
2.2.2 Netlink -based approach to interact with the kernel 19-20
2.3 consistency rules diagnosis algorithm 20-24
2.3.1 consistency concepts 20-21
2.3.2 diagnostics 21-24
2.4 packet classification algorithms 24-29
2.4.1 packet Classification Algorithm Overview 24 - 25
2.4.2 GEM geometric algorithm based 25-29
Chapter firewall requirements and design 29-66
3.1 functional requirements analysis 29-30
3.1.1 functional Requirements 29-30
3.1.2 HiPF design goals 30
3.2 design 30-33 < br /> 3.2.1 firewall system architecture 30-32
3.2.2 HiPF function modules 32-33
3.3 messaging design 33-39 < br /> 3.3.1 related to important data structures 33-34
3.3.2 kernel creates Netlink Socket 34-35
3.3.3 HiPF achieve kernel_function_call 35-37
3.3.4 HiPF achieve kernel_unisend security safeguards 37-38
3.3.5 messaging 38-39
3.4 event Notification design 39-41
3.4.1 registration event 39-40
3.4.2 delete events 40-41
3.4.3 export event 41
3.5 anti- DoS attacks designed 41-43
3.5.1 common DoS attacks achieve 41
3.5.2 anti common attacks 41-43
3.6 ACL filtering rules designed 43-46
3.6.1 rule format designed 43-44
3.6.2 validation Rules format 44-45
3.6.3 application rules 45-46
3.7 log module design 46-53
3.7.1 printk based implementations 46-47
3.7.2 realize buffers and file system based 47-50
3.7.3 ULOG -based implementation 50-51
3.7. 4 HiPF log solution 51-53
3.8 diagnostic function design consistency rules 53-58
3.8.1 using vector / map diagram showing 53 - 55
3.8.2 experiment based on the time complexity analysis achieve 55-58
3.9 GEM algorithm 58-62
3.9.1 construction Algorithm 58-61
3.9.2 search algorithm 61-62
3.10 configuration Management 62-66
3.10.1 Save Configuration 62-63
3.10.2 recovery configuration 63-64
3.10.3 automatically load HiPF 64
3.10.4 stop HiPF 64-65 <br / > 3.10.5 exception handling strategies 65
3.10.6 configure security safeguards 65-66
Chapter IV firewall test 66-83
4.1 test Environment 66-68
4.1.1 test logical topology 66-67
4.1.2 hardware and software environment 67
4.1.3 three layer forwarding configuration 67-68
4.2 NetTest test program development 68-77
4.2.1 winpcap concepts 68-69
4.2. 2 sends a single message 69
4.2.3 send a large packet 69-74
4.2.4 according to the configuration file sending packets 74
4.2.5 supports filtering rules to verify the correctness 74-75
4.2.6 NetTest performance 75-77
4.3 matching algorithm test 77-81 < br /> 4.3.1 to verify the correctness 77-78
4.3.2 performance testing and analysis 78-81
4.4 event notification function test 81-83
summary 83-85
Thanks 85-86
References 86-89
CVs 89 <br / > published during the master's degree thesis 89
Related dissertations
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- Research and Design of Embedded Building Security System
- The Softeware Design and Implement on Integrated Intelligent Camera Platform Based on Davinci DM6446
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Research and Design of Intelligent Video Surveillance System Based on ARM
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- Study on Embedded Data Acquisition System Application
- Embedded Software Design of AC Field Detection Instrument Based on ARM
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- Based on the Samsung2440Embedded Home Furnishing Design and Implementation of Intelligent Control System
- Design of Industrial Ethernet Motion Controller Based on ARM
- Research on Pulsating Vacuum Pressure Steam Sterilization Control System Based on ARM
- The software design of intelligent control Home Furnishing gateway based on ARM11
- The System Design and Implementation of Smart Home Control Terminal Based on Linux
- Movement Gait Control Research of Six Feet Bionic Robot
- Research on Embedded Control System for Palletizing Robot
- Control system design of robot based on ARM
- AGV car design and development of image recognition and motion control technology based on