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

Request the full text

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

  1. Remote Control of Smart Home Network Based on Embedded Internet
    ChenZhenHua ·Dalian University of Technology ·2008 ·Master's thesis
  2. Research and Realization of Fieldbus Conversion and Monitoring System Based on ARM
    ZhaoBo ·Dalian Polytechnic University ·2012 ·Master's thesis
  3. The Research of CANopen Protocol Based on Embedded Systems
  4. Research and Realization of Embedded Wireless Sensor Networks
    ZhangJiPing ·Dalian Polytechnic University ·2013 ·Master's thesis
  5. Research and Application of Multi-Processing Load Balancing Technology Based on Multi-Core in Cloud Computing
    WuHeSheng ·Nanjing University ·2013 ·Doctoral dissertation
  6. Hierarchical Network Routing Implementation in Family Gateway
    TangLiangHong ·Hunan University ·2013 ·Master's thesis
  7. The Design and Implementation of Dual Stack Lite Tunnel
  8. The Tailoring of Linux Kernel Based on Testing Coverage
    GuoRui ·University of North ·2014 ·Master's thesis
  9. Porting and Research on Android Based on CK810
    YuChaoJun ·Zhejiang University ·2014 ·Master's thesis
  10. Design and Implementation of Smartappliance Control System
  11. Reseacrh and Realization of Steam Turbine Bearing Temperature Monitoring and Recording Embedded System Based on ARM
    CuiHongLiang ·Dalian Polytechnic University ·2013 ·Master's thesis
  12. Research and Application of Multifunctional Industrial Gas Manufactuirng Monitoring System Based on ARM Platform
  13. Smart Home Control System Based on Embedded Technology
    WangLiuSong ·Zhongyuan Institute of Technology ·2012 ·Master's thesis
  14. The Design and Implementation of Embedded Smart Home Gateway
  15. The Design and Realization of Wireless System of Smart Home
    DuDeFei ·South China University of Technology ·2012 ·Master's thesis
  16. Design and Implementation of Remote Control Software Based on Windo
    HuHaiBo ·Shandong University ·2012 ·Master's thesis
  17. The Research of Intelligent Home Appliances and Remote Monitoring System Based on Wince
    SunXiuZuo ·Taiyuan University of Technology ·2012 ·Master's thesis
  18. Design of Embedded Wireless Intelligent Home Gateway Based on ARM9
    HanYuWen ·Dalian Maritime University ·2012 ·Master's thesis
  19. High Availability Campus Network Routing virtualization solution and Implementation Based on
    ZuoTianChao ·Fudan University ·2011 ·Master's thesis
  20. The Planning and Implementation of the Provincial Internet Network Construction
    MengHui ·Dalian University of Technology ·2013 ·Master's thesis