Design and Implementation of Port Triggering Function on NAT Gateway
- Author
- DaiBing
- Advisor
- LiuXiaoFeng
- School
- Huazhong University of Science and Technology
- Major
- Software Engineering
- Classification
- TP393.08 Computer Network Security
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 2
- Citations
- 0
Abstract
To solve the problems of shortage in IPv4 address space and enhancement in LAN security, a methond was adopted in ADSL routers to connect to the Internet for most of the small office and home users. The method based on the NAT(network address translation) mode. The Linux system is a free open source operating system, and also for the easiness to extend and reduction in the kernel, high efficiency and many other advantages, so most embedded systems, such as NAT Gateway, is based Linux Kernel .Althought the method of adopting NAT mode in network gateway solved the shortage of IPv4 addresses and also increased LAN security to some certain degree, at the same time the method also bring some problems to the host computer which hidden behind the NAT Gateway, and some software in the Lan hosts which behind the NAT routers will not work very well, because in this way the communication between the external network and local Lan hosts can only be initiated by the internal host, and the external network host is unable to take the initiative to communicate with the host in the Lan network.For example, when using a software named IRC, in the first the IRC client behind the NAT Gateway will connect to the server located in the external network on TCP port 6667 for IRC server to assure the user account’s username and password, and after confirmation the server will connect to the IRC client on TCP port 113 to establish a connections to exchange data. Normally it’s ok, but in NAT mode, the server’s data can’t reach to the IRC client behind the NAT Gateway.Based on the Linux Kernel in version 2.6, a method was designed and implemented in this paper——the Port Priggering kernel module. This Kernel module was based on the NETFILTER framework in Linux kernel, and it use the hook functions in NETFILTER and CONNTRACK module to detect the outward flow of data packets, and after detecting the datagram, it will use NAT module to translate the datagram from external network data packets to reach the Lan network. Comparing to current resolvent ,this implementation is more concise , and if for some while, the NAT Gateway can’t detect the flow of outward datagram, the external server’s datagram can’t reach to the internal host, and the connection from the external server to internal host will be closed to ensure the internal network security.
Table of contents
Abstract 3-4
Abstract 4-8
1 Introduction 8-14
1.1 Background and significance 8-10 < br /> 1.2 at home and abroad research situation 10-12
1.3 thesis research 12-14
2 LINUX kernel technology basis 14-25 < br /> 2.1 Linux kernel NETFILTER mechanism 14-19
2.2 connection tracking module CONNTRACK . ; 19-24
2.3 Chapter Summary 24-25
PORT TRIGGERING analysis and design of the kernel module 25-38
3.1 the NAT principle 25-28
3.2 NAT gateway environment 28-31
3.3 the PORT the TRIGGERING analysis and design 31-37
3.4 of this chapter Summary 37-38
PORT TRIGGERING kernel module 38-54
4.1 kernel module write 38-44 54
4.2 module to achieve 44-53
4.3 Summary 53-54
5 user-space test -60
5.1 module test environment 54-55
5.2 module testing processes and results 55-59
5.3 Summary 59-60
6 summary and Outlook 60-62
6.1 summarize 60-61
6.2 Looking 61-62
thank 62-63
References 63-65
Related dissertations
- Remote Control of Smart Home Network Based on Embedded Internet
- 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
- Hierarchical Network Routing Implementation in Family Gateway
- The Design and Implementation of Dual Stack Lite Tunnel
- The Tailoring of Linux Kernel Based on Testing Coverage
- Porting and Research on Android Based on CK810
- Design and Implementation of Smartappliance Control System
- 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
- Smart Home Control System Based on Embedded Technology
- The Design and Implementation of Embedded Smart Home Gateway
- The Design and Realization of Wireless System of Smart Home
- Design and Implementation of Remote Control Software Based on Windo
- The Research of Intelligent Home Appliances and Remote Monitoring System Based on Wince
- Design of Embedded Wireless Intelligent Home Gateway Based on ARM9
- High Availability Campus Network Routing virtualization solution and Implementation Based on
- The Planning and Implementation of the Provincial Internet Network Construction