The Design and Implementation of a Stateful Packet Filter and a Manager Tool of GateGod Firewall
- Author
- ZhaoHui
- Advisor
- LiTao
- School
- Sichuan University
- Major
- Computer Software and Theory
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2003
- Downloads
- 64
- Citations
- 1
- GateGod Firewal System
- Stateful packet filter
- Masquerading Port-mapping
- Log based on watermark
- minilinux
- DiskOnModule
Abstract
In the traditional firewall system, static packet filter technology is used. But there are many defects in this technology, one of which is that the efficiency of filtering is low. Moreover , with the static packet filter technology used, if you want the communication woks,you must keep some port open all the time,and then there is some security flaw, so the stateful packet filter technology is the trend at present. In this paper, a stateful packet filter subsystem that is part of the GateGod Firewall System is developed , and a manager tool of client that is used for manageing the GateGod Firewall System is implemented.Specifically, the contribution presented in this paper is as follows:1. The design and implementation of the stateful packet filter subsystem.2. The design and implementation of the Masquerading and the port-mapping subsystem.3. The design and implementation of the manager tool client of GateGod Firewall syste. In the subsystem, the C/S mode is introduced, and the client runs on Windows platforms, and the server runs on firewalls. Administrators can control the firewall by the client on Windows hosts, not on firewalls. It can exempt firewalls of risks. The graphic operational interface is introduced in the client, and the difficulty of administration and configuration falls greatly, and the possibility of configuration error reduces, and the security of firewalls increases.4. The customization of the Linux OS named MiniLinux, which GateGod Firewall runs on. Many insecure services have been ripped away, and the kernel has been customized. The minimum function has been provided, and firewalls run on the secure OS . The MiniLinux is based on DOM (Disk On Module),then the efficiency and the security is improved greatly.5. The design and implementation of log based on watermark technology in the GateGod Firewll log sysem. It can add watermark in log record, and protect log record’s originality and unchangeableness. It provides a powerful and undeniable proof for log audit.On April 25 2003, Disease Resume Centre (DRC) based on Internet passed the appraisement of Sichuan Science and Technology Department. Every member in the appraisal council appraises DRC like this: The System is the first disease resume system, which is based on Internet across zone and platform, and its technology is the first rank. In the DRC, the GateGod Firewall Syesem ensures the the security of the data center and remote data and is applaused by the expert.
Table of contents
1 Introduction 10-18
1.1 the status of the network and information security 10
1.2 user safety requirements 10-11
1.3 network security technology means and product conditions 11-15
1.3.1 Main technical means 12-15
1.3.2 existing products 15
1.4 this article work 15-16
1.5 The content of this arrangement 16-18
firewall's basic principles 18-28
2.1 firewall concept and working principle 18
2.2 firewall functionality 18-21
2.3 firewall's basic strategy 21
2.4 firewall technology 21 -24
2.4.1 static packet filtering firewall 21-22
2.4.2 Status monitoring firewall 22-23
2.4.3 application-level gateway firewall the 23-24
2.4.4 circuit level of gateway firewall 24
2.5 firewall architecture 24-28
2.5.1 Dual-homed / multi- 2.5.3 screened subnet mode, host mode (Dual-Homed/Multi-Homed Firewall) 25
2.5.2 screened host mode (Screened Firewall) 25-26
(Screened Subnet mode) 26-28
GATEGOD firewall, the overall design 28-31
3.1 design goals 28-29
3.2 Basic System structure 29-31
4 GATEGOD firewall of the state of the packet filter subsystem design and implementation 31-73
4.1 LINUX kernel firewall framework - NETFILTER introduction 31-38
4.1.1 Netfilter framework outlines are found; 31
4.1.2 Netfilter framework described are found; 31-33
4.1.3 the Netfilter framework for the realization of analysis nbsp ideas and principles; 33-38
4.2 NETFILTER framework to develop autonomous packet filtering firewall system 38-46
4.2.1 development 38-40
4.2 .2 packet filtering firewall system constitutes 40-42
4.2.3 masquerading and port mapping technology overview 42-46
4.2.3.1 address masquerading works 42-44
4.2.3.2 port mapping works 44-46
4.3 connection tracking module design 46-52
4.3. stateful packet filtering principle and the realization of the principle 46-47
4.3.2 Description of the data structure 47-50
4.3.3 functions 50 -52
4.3.3.1 tcp_pkt_to_tuple 50
4.3.3.2 tcp_inven_tuple 50-51
4.3.3.3 tcp_print_tuple 51
4.3.3.4 tcp_print_conntrack 51
4.3.3.5 tcp_packet 51-52
4.3.3.6 tcp_new 52
4.4 Check the filter module design and realization the logical filtering rules table 52-62
4.4.1 52-53
4.4.2 memory filtering rules table nbsp 53-58
4.4.3 functions ; 58
the 4.4.4 structure sk_buff structure device 58-59
4.4.5 function check_input 59-60
4.4.6 function check_output 60-61
4.4.7 the function check_forward 61
4.4.8 function rule_match 61-62
4.5 masquerading module design and realization 62-68
4.5.1 masquerading mechanism the 62-63
4.5.2 address masquerading rules sheet 63-64
4.5.3 masquerading dynamic control Table 64-66
4.5.4 Main functions 66-68
4.6 port mapping module design and realize 68-73
4.6. a logical port mapping rules 68-69
4.6.2 the memory port mapping rules 69-71
4.6.3 functions 71-73 <br / > Design and Implementation of 5 GATEGOD firewall configuration management subsystem client 73-120
5.1 design objectives and overall design the 73-74
5.1.1 Design goals 73
5.1.2 Overall design 73-74
5.2 GATEGOD configure the system client framework 74-76
5.2.1 Introduction 74 < br /> 5.2.2 overall structure the 74-76
5.3 client GATEGOD configure the system to achieve the main frame 76-120
5.3.1 program to achieve 76 -79
5.3.1.1 realization of the application class 76-77
5.3.1.2 main frame class to achieve 77-79
the 5.3.2 universal communication module achieve the 79-82
5.3.2.1 the Socket Introduction 79
5.3.2.2 program implementation 79-82
5.3.3 Network Configuration module achieve 82-85
5.3.3.1 CConfigNetMethod class' the 83-84
5.3.3.2 CADSLConfDlg classes 84-85
5.3.4 stateful packet filtering the the query configuration module to achieve 85-93
the 5.3.4.1 CFilterFwdRule class 88-89
5.3.4.2 CFilterFwdRuleDlg class' 89-91
5.3 the .4.3 CFilterFwdFormView class 91-93
query configuration module 5.3.5 masquerading and port mapping to achieve 93-99
the 5.3.5.1 CSNATRule class 95 -96
5.3.5.2 CSNATRuleDlg class 96-97
5.3.5.3 CSNATFormView classes nbsp the; 97-99
5.3.6 Intrusion Detection configuration management module 99-106
5.3.6.1 CIdsVarFrm class 99-102
5.3.6.2 CIDSSetTimeDlg class' 102-103
5.3.6.3 CIgnoreHostDlg classes nbsp the; 103-105
5.3.6.4 CIDSBootDlg class the 105-106
5.3.7 log function modules 106-120
of 5.3.7.1 CLogLevelToName class 106-107
5.3.7.2 CPreLog class' nbsp 107
of 5.3.7.3 CLogDownDlg class.; 107
5.3.7.4 CLogDownSocket class 107-111 < br /> 5.3.7.5 log database structure 111-113
5.3.7.6 CAVIDlg class' 113-114
the 5.3.7.7 CDBClass class 114
5.3.7.8 CLogShowFrame class 114-116
5.3.7.9 CWaterMarkDlg class' 116-120
DOM disk MINILINUX the design and implementation 120-123 < br /> 6.1 principle the systems structure 120
6.2 MINILINUX 120
6.3 nbsp environment; the 120-121
6.4 process 121-123
system characteristics and advantages of the GATEGOD firewall 123-124
Conclusion nbsp,; to References 124-125
125-129 < br /> Appendix 1 of postgraduate research experience 129-130
Appendix 2 of postgraduate Papers 130-131
originality statement 131-132
Acknowledgements 132