The UPnPonyourLinux2.4firewallhow-to "bybijl" let LinuxNAT Server supports UPnP "bylonestar the UPnP now favour us with a kind of a big meal of bySharonCraword Note: If the network security requirements for high or high to control of the network, then do not install configure UPnP support, otherwise it will cause the NAT mappings confusing network, causing many problems.
Recommend a small network or home network use UPnP. Recently used some type of software, P2P found old Linux server manually set NAT, cumbersome, and watch the many P2P software support UPnP is bigger than his, if you can make Linux support UPnP that convenient! so in online search a bit for let Linux support UPnP article, so I wrote this article. 1. What is UPnP1.UPnP profile--------------UPnP (UniversalPlugandPlay) technology on the plug has been extended, it simplifies the home or business in the smart device networking process. In combining the UPnP technology equipment to physically connect to the network, they can automatically connect to each other over the network, but the connection process without user involvement UPnP specifications based on TCP/IP protocols and communicate with each other for devices and other Internet protocols. This is the reason why it is called "universal (Universal)" why--UPnP technology does not depend on the specific device driver, which is a standard protocol. UPnP devices can automatically configure the network address, announced that they are a network subnets exist, as well as Exchange on device and service descriptions. WindowsXP-based computer can act as a UPnP control point, through the program interface to the device discovery and control. If the previous plug, this technique does not seem to have anything revolutionary significance. Increase in the operating system for Plug and play technology allows a single computer installation, configuration, and add peripherals to work easier. But the UPnP for home users or small office environment by non-professional user brings along a more delicious "feast", they can use UPnP to play multiplayer, real-time communications (Internet telephony, Conference calls) and using similar WindowsXP remote assistance such as other technologies. 2.NAT through technology------------------NAT through technology allows a network application on whether they are located in a UPnP ability behind a NAT device for testing. Then, these programs will receive a share of the global routable IP address and configure port mapping to external port from NAT packets are forwarded to the application using the internal port--all of this is done automatically, the user does not need to manually map the port or carry out other work. NAT through technology allows a network device, or peer-to-peer applications by dynamically opened and closed with the external service communication port through the NAT gateway to communicate with the outside world. 2. in the UPnP support in the deployment of Linux we assumed that the Linux kernel versions 2.4.x, use a dial-up, external network interface is the intranet interface ppp0 is eth0, and you have enabled NAT iptables sets. Linux deployment with two UPnP main software complexes: UPnPSDKforLinux and LinuxIGD. Download: UPnPSDKforLinux: http://sourceforge.net/projects/upnp/linuxigd:http://linux-igd.sourceforge.net/Note: to download upnpsdk-1.0.4.tar.gz, 1.0.4 and above versions will not be able to and LinuxIGD good teamwork! A. installation:----------1. unpack UPnPSDK # tarxzvfupnpsdk-1.0.4.tar.gz2. modify source code in order to be able to make UPnP WindowsMSNMessenger in normal traffic, so you must modify the source code: # cdupnpsdk-1.0.4 # visrc/ssdp/ssdplib.c will the 406 line: SelfAddr.sin_addr.s_addr = inet_addr (SSDP_IP); read: SelfAddr.sin_addr.s_addr = htonl (INADDR_ANY); 3. compile and install UPnPSDK # make # makeinstall4. unpack Linux-IGD # tarxzvflinuxigd-0.92.tgz5. compile and install Linux-IGD # cdlinux-igd # make # makeinstallB. configure--------1. increase the multicast routing # routeadd-net239.0.0.0netmask255.0.0.0et 2. iptables suggests a soft link # cd/usr/sbin # ln-s/sbin/iptables./start UPnP # upnpdppp0et diagnosis UPnP running # tail/var/log/messages if you can see: Dec1416: 01: 02: 49doorway--MARK--Dec1416: 15doorwayupnpd: TheLinuxUPnPInternetGatewayDevIceVer0.92byDime (& nbspdime@gulfsales.com) Dec1416: 02: 15doorwayupnpd: SpecialThanksforIntel'sOpenSourceSDKandoriginalauthorGenmeiMori'swork. the UPnP has started successfully. C. test--------to support UPnP P2P network TV PPLive, for example, in the open UPnP support PPLive options, and then connect a channel. On Linux: # tail/var/log/debug-if you can see: Dec1416: 56: 33doorwayupnpd: AddPortMap: RemoteHost: (null) Prot: 17ExtPort: 3226Int: 10.0.0.2.3226Dec1416: 56: 33doorwayupnpd: AddPortMap: RemoteHost: (null) Prot: 6ExtPort: 3226Int: 10.0.0.2.3226Dec1416: 56: 33doorwayupnpd: AddPortMap: RemoteHost: (null) Prot: 6ExtPort: 3156Int: 10.0.0.2.3156Dec1416: 56: 33doorwayupnpd: AddPortMap: RemoteHost: (null) Prot: 6ExtPort: 3156Int: 10.0.0.2.3156 the PPLive has UPnP port mapping request. Whenever you see this message, UPnP is fully working.
No comments:
Post a Comment