找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 32427|回复: 36

[linux] 正式放出Coyote linux Upnp模块

[复制链接]
发表于 2004-10-21 23:12:27 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
安装说明:本棋模块库文件较大,较多。所以在软盘上不能运行。只能在硬盘版本的coyote上运行 。1、把upnp.tgz考到硬盘的根目录下。2、编辑rc.local文件,在其中加入以下命令:

CODE
route add -net 239.0.0.0 netmask 255.0.0.0 eth0upnpd eth1 eth0
其中eth0为你的cl的内部网卡, eth1为外部网卡如果是使用pppoe 拨号,第二行命令应改为:

CODE
upnpd ppp0 eth0
注:本来还可以将此模块缩得更小,因为其lib目录和root.tgz的lib目录中的库有重复,我没有将其重复的部分删除。如果有什么问题,请在此贴反馈!

upnp.rar

652.42 KB, 下载次数: 1423, 下载积分: 铜板 -1

routeros
发表于 2004-10-22 00:04:51 | 显示全部楼层
真的要试试!顶~~~~
routeros
回复

使用道具 举报

发表于 2004-10-22 00:07:25 | 显示全部楼层
不会吧?
routeros
回复

使用道具 举报

 楼主| 发表于 2004-10-22 00:13:42 | 显示全部楼层
骗你做什么?我要睡觉了。明天聊。
routeros
回复

使用道具 举报

发表于 2004-10-22 00:20:45 | 显示全部楼层
好的今天晚上继续我的研究 .......................................
routeros
回复

使用道具 举报

发表于 2004-10-22 00:52:54 | 显示全部楼层
http://www.gb.tomshardware.com/consumer/02...0904/index.html关于路由Upnp的介绍初学都不明就看这个不要再问
routeros
回复

使用道具 举报

 楼主| 发表于 2004-10-24 17:22:59 | 显示全部楼层
安装说明:

QUOTE
Simple Quick Install GuideThis install guide is simply a quick helper to let people start testing the newversion.  It will be replaced soon with more thourough documentation.Install---------------This version of the linux-igd is written in C as opposed to previous version that were written in C++.  This was done at the requests of many embedded developers, as well as some of our developers.  The upnp sdk we now usefrom Intel is libupnp-1.2.1, and is written in C as well.  Everything is a little more uniform now, and should create a smaller, leaner, faster device.Step 1 -- Download and install libupnp-1.2.1 source from http://www.sourceforge.net/projects/upnp .  Please install with source only as we haven't tested against any precompiled versions.  Also, as the "make install" doesn't quite work as expected, please follow these instructions to install it properly.1. tar -xvzf libupnp-1.2.1.tar.gz2. cd libupnp-1.2.13. make4. make install5. cp libupnp-1.2.1/ixml/inc/* /usr/include/upnp6. cp libupnp-1.2.1/ixml/bin/* /usr/lib7. cp libupnp-1.2.1/threadutil/inc/* /usr/include/upnp8. cp libupnp-1.2.1/threadutil/bin/* /usr/libThis process should install libupnp-1.2.1 to our liking (maybe not someone else's ;-)Step 2 -- Obtain the linux-igd software (if for some reason you're reading this outside the package you should have already gotten, http://linux-igd.sourceforge.net)1. tar -xvzf linuxigd-1.0.tgz    (or whatever the version you have is, or CVS)2. make 3. make install      (if CVS, remove etc/CVS directory, then do)This should be all that is needed to install linuxigd in /usr/sbin/ (as upnpd - the executable daemon name).System Preparation before starting ---------------------------------------1. In order for device discovery to function properly, you must add a multicast route to the internal interface like so:route add -net 239.0.0.0 netmask 255.0.0.0 eth0      (or whatever your internal                  interface name is - here                  eth0)-- Also, if you'd like to see debug information, and please do, as it helps us resolve your conflicts, perform the following steps:A. Add the following line to bottom of your /etc/syslog.conf file  *.=debug                         /var/log/debug   ... or where ever you would like to log messages to.B.  service syslog restart     (or on your system, maybe:     /etc/rc.d/init.d/syslog restart    or     killall -HUP syslogDaemon Startup---------------------Now you should be ready to run the daemon.  At this time, your FORWARD rule in iptables should be set to ACCEPT.  We'll add the forwarding rules back right away, but first someone needs to tell me what they are, my FORWARD is always accept. Start the daemon with the following:upnpd  Example: upnpd eth1 eth0          -- Where eth1 is my external interface name             and eth0 is my internal interface name.To check and see if everything starts up ok, in /var/log/debug you should see a few debug messages followed by Advertisements Sent, and possibly some GetNATRSIPStatus and other messages.Another way to check this is to look in your Windows XP client under Network Conections.  You should see an Icon for Internet Connection set to enabled in there.  If for some reason you don't, first try restarting the daemon.  If this doesn't work post a message to the forums and we'll try to help you.REMINDERS and THANK YOUS-------------------------Truth is I can't remember everyone to thank, but I especially want to thank both Henri Manson and Anders Betner for their development and testing work.  Also Eric Wirt, for helping us test, and providing the winning comments for switching to C.This is a work in progress.  This code is simply released now for others to help us debug some problems we are having.  Please, help us out by checking the forums, answering problems, and giving any advice and suggestions you can to the open source community.Thanks a lot to the users, and to the over 10,000 downloads, and countless CVS checkouts.  If it weren't for the interest in the program, we wouldn't be touching it (ok maybe i would, when i got bored or something) :-)Cheers allDime
routeros
回复

使用道具 举报

 楼主| 发表于 2004-10-25 21:43:28 | 显示全部楼层
顶一下
routeros
回复

使用道具 举报

发表于 2004-10-25 21:50:22 | 显示全部楼层
感谢老大,我还没试验呢。置顶吧。
routeros
回复

使用道具 举报

发表于 2004-10-25 21:55:24 | 显示全部楼层
QUOTE
1. In order for device discovery to function properly, you must add a multicast route to the internal interface like so:
为什么要在内网网卡接口上添加一条多播路由?device discovery to function properly?不理解。。
routeros
回复

使用道具 举报

 楼主| 发表于 2004-10-26 05:37:35 | 显示全部楼层
这个,我也不清楚,反正说明文档上面就是这样写的
routeros
回复

使用道具 举报

发表于 2004-10-26 10:59:56 | 显示全部楼层
我去站点问问吧。
routeros
回复

使用道具 举报

发表于 2004-10-26 14:14:57 | 显示全部楼层
不过用upnp,会给网络带来压力呀,就是BT的那个坏东东利用upnp
routeros
回复

使用道具 举报

发表于 2004-10-26 16:53:09 | 显示全部楼层
会带来什么压力?
routeros
回复

使用道具 举报

 楼主| 发表于 2004-10-26 17:30:13 | 显示全部楼层
没有关系的,和我修改的那个禁止p2p的内核一起用就没有BT带来的问题了
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-12-23 12:01 , Processed in 0.067552 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表