当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > UPnP on your Linux 2.4 firewall how-to

Unix/Linux
Linux教程:后台执行程序如何操作?
Linux教程:记录会话过程的命令
Linux和Windows区别分析之线程问题
Linux教程:22端口如何修改?
Linux教程:配置DHCP服务器方法介绍
css3教程:把系统日志记录到远程服务器
教你在Linux系统下破解SAM密码
Linux操作系统启动界面揭秘DHCP协议实现过程
如何检测U盘是否插入或拔出
Linux消除用户使用习惯的阻隔
编写应用程序要注重其安全性
Telnet在Linux系统下如何设置
Linux系统下误删除文件怎么办
删除Linux系统下的历史记录
修改Linux系统下22端口的两种方法
资深Linux程序员的开发经验谈
Ext2和Ext3文件系统
Linux策略性路由应用
如何在Linux中设置透明代理
Linux下的软件开发

Unix/Linux 中的 UPnP on your Linux 2.4 firewall how-to


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 32 ::
收藏到网摘: n/a

author: bijl, published: 2002-10-18, last update: 2004-02-25, popularity: 16385 page requests16385 page requests16385 page requests16385 page requests16385 page requestsNote:we still haven't audio/video in MSN Messenger working, but we are veryclose. Input is welcome! Use the E-mail link (remove the spam words) orthe webmaster form!
Touse the audio/video functionality of MSN Messenger (or WindowsMessenger, but I will use the former term in the rest of this article)through a firewall, you need UPnP on your firewall. This articleexplains how to add UPnP to your Linux kernel 2.4 based firewall (forexample SmoothWall 2).It took us some beers and a substantial amount of frustrating hours tocollect the proper information and set it up. This article will turnfrustrating hours into a handfull of happy minutes... Well, if you likebeer.Some knowlegde about networking and Linux is required. We usedWindowsXP and MSN Messenger beta-5, build 527, but it should also workwith other Messenger versions. We're not sure if UPnP will work withother Windows versions (probably not, maybe there is an UPnP updateavailable).What is UPnP?UPnP stands for Universal Plug 'n Play. It allows some clients withinthe internal network to open up your firewall, when needed. Note thatthis is a security issue. Refer to http://www.microsoft.com/windowsxp/pro/techinfo/planning/upnp/default.asp for info about UPnP under WindowsXP.Collecting the correct softwareTo install UPnP on your firewall, you need . As the site explains: Thisproject is a deamon that emulates Microsoft's Internet ConnectionService (ICS). It implements the UPnP Internet Gateway Devicespecification (IGD) and allows UPnP aware clients, such as MSNMessenger to work properly from behind a NAT firewall. Download gateway-0.75.tgzor a newer version. LinuxIGD only works with kernel 2.4 (iptables). Ifyou are looking for something for kernel 2.2 (ipchains), check out http://pseudoicsd.sourceforge.net/. LinuxIGD needs the http://upnp.sourceforge.net. Download upnpsdk-1.0.4.tar.gz or a newer version. Do not download the rpm, because you need to make some changes in the code.Follow the instruction in the INSTALL document of LinuxIGD. You have tochange something in the code of the UPnP SDK, you have to compile itand you have to compile the LinuxIGD UPnP Daemon.... or.... ... or forget the above and download our already by RuweBit compiled files !! Is compiled for kernel 2.4.17.Move the files to the correct placesIf you downloaded the RuweBit package above, or compiled it on anothermachine, follow the next steps to move the files to the correct places Copy the *.xml and *.skl files to /etc/linuxigdmkdir /etc/linuxigdcp gateconnSCPD.xml /etc/linuxigdcp gatedesc.skl /etc/linuxigdcp gatedesc.xml /etc/linuxigdcp gateicfgSCPD.xml /etc/linuxigdcp gateinfoSCPD.xml /etc/linuxigd Copy the upnpd file to /usr/bincp upnpd /usr/bin Copy the *.o* files to /usr/libcp libupnp.so /usr/libcp libstdc++-libc6.2-2.so.3 /u