Enable the Linux system NAT server to support UPnP

Source: Internet
Author: User
Let the Linux system NAT server support UPnP-Linux Enterprise Application-Linux server application information. The following is a detailed description. Note: If you have a high requirement on network security or a high requirement on Controllable networks, do not install and configure UPnP support. Otherwise, the network NAT ing will be chaotic, leading to many problems. We recommend that you use UPnP for a small network or a home network.

Recently, some P2P software is often used. It is very troublesome to manually set NAT on a Linux server. However, it seems that many P2P software support UPnP, if you can enable Linux to support UPnP, it will be much easier! So I searched for an article on how to enable Linux to support UPnP on the Internet, so I wrote this article.

1. What is UPnP?

1. Introduction to UPnP

The UPnP (Universal Plug and Play) technology expands Plug and Play, which simplifies the networking process of smart devices in the home or enterprise. After devices connected to the network physically by using UPnP technology, they can automatically connect to each other through the network, and the connection process does not require user participation.

The UPnP specification is based on the TCP/IP protocol and other Internet protocols for communication between devices. This is why it is called "Universal"-UPnP technology does not rely on specific device drivers, but uses standard protocols. UPnP devices can automatically configure network addresses, declare their presence in a network subnet, and exchange descriptions of devices and services. Windows XP-based computers can act as an UPnP control point to discover and control devices through the program interface.

Compared with the previous plug-and-play, this technology does not seem to have any revolutionary significance. Adding plug-and-play technology to the operating system makes it easier to install, configure, and add peripherals on a single computer. However, UPnP brings a more delicious "big meal" to family users or non-professional users in small office environments. They can use UPnP to play multiplayer games for real-time communication (Internet calls, teleconference) and other technologies such as remote assistance using Windows XP.

2. NAT traversal Technology

NAT traversal technology allows network applications to detect whether they are located after an UPnP-capable NAT device. Then, these programs will get the shared global routable IP address, configure port ing to forward data packets from the NAT external port to the internal port used by the Application -- all of this is done automatically, and you do not need to manually map the port or perform other work. NAT traversal technology allows network devices or point-to-point applications to dynamically enable and close the communication ports with external services to communicate with external services through the NAT gateway.

2. Deploying UPnP support in Linux

Assume that the Linux kernel version is 2.4.x and the Internet interface is ppp0, the Intranet interface is eth0, and iptables has been enabled to set NAT.

In Linux, the deployment of UPnP mainly uses the combination of two software: UPnP SDK for Linux and LinuxIGD.

:
UPnP SDK for Linux: http://sourceforge.net/projects/upnp/
LinuxIGD: http://linux-igd.sourceforge.net/

Note: To download upnpsdk-1.0.4.tar.gz, Versions later than 1.0.4 cannot work together with LinuxIGD!

A. installation:

1. unpackage UPnP SDK
QUOTE:
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.