OpenWrt Forum Archive

Topic: UPnP and RC5

The content of this topic has been archived between 27 Mar 2018 and 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Anybody else having problems with UPnP and RC5? I tried both the linksys upnp and the linux-igd versions. Both make entries in the iptables, but the ports don't open...

upnp does not work for me either. I had it working with RC4 and upnp-linksys 4.20.7. Now I upgraded to RC5 micro and installed everything but ppp and pppoe that I don't need. Ok, kmod-bcrm-et is also not installed with RC5, but I think that package does not exist anymore.

Please keep us updated if you find the solution.

Rgds Mulperi

Try (if your using xp) going to your network connections and going to properties in the ineternet connection then disabling all the upnp opened ports. Then go back into the window and reenable them. That works for me. Not sure why tho.

Thanks for the tip, actually I'm normally using Linux. Running Azureus for a while fixed the problem, at least it gets connected to the DHT database.

(Last edited by mulperi on 23 Apr 2006, 18:57)

Hello, I also had problems with UPnP on whiterussian RC5, both with linksys package and yani's old port of linux-igd.

I do not know of other solutions than those packages, according to the wiki, so I googled the web, and found that linux-igd is alive, but only accessible through CVS. It relies on the libupnpd 1.2.1 sdk from Intel, and is now written in C instead of C++.

I tried to compile both the libupnp and linux-igd packages, and got two ipks that seems to run on my WRT54G v1.0/white russian RC5, at least for a few hours without any problem (where linksys's upnpd would have crashed two or more times per hour, not better nor worse than linux-igd 0.92). I add that I'm also using shorewall as the firewall of a simple router (one internal lan, both ethernet and wifi, and a wan access).

If you're interested in those packages, you'll be able to download them from here:

libupnp_1.2.1a
linux-igd-CVS

You can compile the packages yourself with the following patches:

libupnp_1.2.1a.patch
linux-igd.patch

For this you'll need to setup your environment like this:

  • A compiled buildroot environment, which will be used both for the toolchain, and also the iptables package. The buildroot will be used as it is, without copying something in some other place.

  • libupnp_1.2.1a sources that you can get from http://upnp.sourceforge.net in the download section. Unpack it somewhere, then apply the provided patch using something like

    cd /somewhere/libupnp1.2.1a && patch -p1 < /some other place/libupnp1.2.1a.patch

    You may have to customize the main makefile, to reflect the location of your Buildroot and some other details.

  • linux-igd using CVS, go to http://linux-igd.sourceforge.net and click on donwload for example, then on CVS and follow the instructions. You may then follow the same direcions than for libupnp, regarding the location of your Buildroot. Notice also that linux-igd has one more dependency which is libupnp of course, you may have to customize the makefile for that.

I'm sorry, but both main makefiles for libupnp and linux-igd aren't consistent, one was entirely created from scratch while the other one is a modification of the main makefile of the package. I hope that you understand how I did it, if your're interested in compiling the packages yourself.

Also, when installed, you may have to customize the /etc/upnpd.conf to change some parameters, and create some link or modify some existing script to automatically start the upnpd daemon yourself (only a /etc/linuxigd/upnpd.rc startup script is provided, you may have it called from the /etc/init.d directory, or through /etc/ppp/ip-up for example).

The upnpd.conf seems to support more parameters than the previous 0.92 release. Don't ask me for support on using linux-igd, I'm not an expert, I may help you to compile the packages yourself if you need it, else I think that you should look forthe support in the forum at sourceforge.

Please consider this software as early alpha, as it has been tested only for a few hours on my router. If you want to participate, it's up to you :-D

Last details, I personnaly used Fedora Core 5 running in vmWare player on my vaio win xp laptop to generate the packages.

Hope this helps,

Stéphane

update 04/05/2006: linux-igd updated to 1.0.1-cvs, the /etc/linuxigd/upnpd.rc provided (was it really provided ???) script needs to be changed a bit, as when it is called from /etc/ppp/ip-up for example, the path isn't set (and nvram isn't found).

(Last edited by stcoulon on 4 May 2006, 22:02)

@stcoulon: Thanks for your information.

However, I have no luck in installing your packges on a WBR2-G54 with RC5. I installed the libupnp package successfully, but when I tried to install the linux-igd package it always resulted in errors.

Is there any chance that the upnp package will be included officially in RC6?

Hello,

excuse me because I was out for a while.
The packages I generated are running quite correctly on my WRT54G v1.0.
What are the errors you got ?

stcoulon, I also am having problems with RC5 and upnp (both linksys' and yani's) and I tried to install the two packages you provided, the libupnp 1.2.1a installed successfully, but the linux-igd failed:

root@OpenWrt:~# ipkg install http://perso.wanadoo.fr/Stephane.Coulon … -linux.ipk
Downloading http://perso.wanadoo.fr/Stephane.Coulon … -linux.ipk
Clearing state_want and state_flag for pkg=linux-igd (arch_priority=0 flag=16 want=2)
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package linux-igd.
Check the spelling or perhaps run 'ipkg update'

(Last edited by BoAustin on 3 Jun 2006, 19:10)

@stcoulon: IIRC, I encountered the same error as BoAustin's. Sorry cannot reproduce and check it for that I don't have access to the WBR2-G54 now.

stcoulon,

I also encountered the same error as BoAustin's. WRT54gs V1.0 with OpenWRT RC5.
ipkg install linux-igd_1.0.1-cvs_mipsel-linux.ipk
Clearing state_want and state_flag for pkg=linux-igd (arch_priority=0 flag=16 want=2)
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package linux-igd.
Check the spelling or perhaps run 'ipkg update'

Hey folks,

I put the Linksys IPKG together for UPNP.  I'll grab their latest firmware and do the same for the newer version, to see if that helps.  I've been a bit lazy (actually spending a lot of time working with Xbox-Linux at home) and I'm still running RC4.  I'm actually having issues with the upnp (Linksys) daemon myself, in that ever since I migrated to DSL using PPPoE, my WindowsXP clients report the Internet Gateway as "Disabled" and ports often need to be manually closed.  Not sure if this means that the Linksys upnp daemon doesn't support PPPoE properly, becsause I haven't investigated it yet.

I'll try and get onto it this weekend.

Hello everybody, any update? : )

For those who want to know what I did:

I installed the mini openwrt, then installed openssh-server, after that installed nas.v
Then installed

libupnp_1.2.1a
linux-igd-CVS
and needed libpthread

then it worked yikes

I got linux-igd working on rc5. I found that I'm supposed to manually add a FORWARD rule, since upnpd adds only a prerouting entry. I added the forward rule and things started working fine.

(Last edited by vkarthik on 22 Jun 2006, 18:21)

Hmz strange,

I use MSN messenger and Windows Vista, somehow it doesn't open any port... it's says there is no upnp setup.
But when I start BitComet, it says it have upnp.. what do I wrong?

Greetings

All in all, is there any tested and proven pre-built UPnP packages that one can install over stock RC5...? smile

I'm just testing this package..

sometimes it get strange behaviors but it works.
It forwards ports... but it seems that MSN doesn't communicate with it...
I found an article about MSN uPNP that says about changing some lines.. I don't know
if the developer changed that (CVS version...)

Untar the Intel UPnP SDK, but before you compile and install, you will need to make one change for Windows Messenger to work properly. Under the upnpsdk tree, the file src/ssdp/ssdplib.c, on line 406, the following line needs to be changed from:

SelfAddr.sin_addr.s_addr = inet_addr(SSDP_IP);

to:

SelfAddr.sin_addr.s_addr = htonl(INADDR_ANY);

http://linux-igd.sourceforge.net/documentation.php

I hope so wink

I can't recompile it because I've no system to do that so..
Maybe I'll later

Interesting, have you tested it with Remote Assistance...?

Will someone be making this a package fro RC5?

Jim

Not yet, but if windows is fully upnp (* like it says)
then it have to work,
I'll try it out if you want smile

Later I'll post it

That's good.

However, I and others are still in need of a pre-packed UPnP package that works... : )

Helllooooo... Any news for pre-built packages?

P.S. Eager to test now since I've just fixed the WPA-PSK problem of a WBR2-G54. Somehow it just doesn't work with JFFS2, switching back to the SquashFS solved the problem.

(Last edited by loyukfai on 11 Jul 2006, 17:17)

read before,
it works, if you follow the procedure of me or others.