1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

UPnP problems w/ Tomato

Discussion in 'Tomato Firmware' started by Valmor, Feb 9, 2007.

  1. Valmor

    Valmor Network Guru Member

    Running Tomato Version 1.04.0944 on Linksys WRT54GS v.4

    I went from Thibor to Tomato hoping it would fix this problem. I like Tomato better anyways, but it would be nice if I could fix this. Often UPnP will just stop working - the icon no longer displays in Network Connections. µTorrent is unable to map a port and this UPnP test program fails tests 7 and 8: http://fp.mgillespie.plus.com/upnphelp.htm

    I am able to get it back up and running if I either clear NVRAM and reconfigure or if I disable UPnP on the router for a bit then re-enable it. I had it working for a while with µTorrent, but then I closed µTorrent and uPnP stopped working. Even when I get it working and don't use any UPnP programs it will still break after time.
     
  2. roadkill

    roadkill Super Moderator Staff Member Member

    you really should try Azureus to diagnose UPNP problems it has independant support and needs less support from the operating system.. and i'm using it successfully while uTorrent is an excellent bittorrent client I think it's more dependent on the operating system for certain things...
    I also noticed some issues with UPNP but they went away after I played with it for a while I turned ON the "show in my network places" and waited until and port will register and then turned it back OFF
     
  3. bokh

    bokh Network Guru Member

    How does this "show in my network places" work? I got it turned on, but nothing appears in my Explorer...
    And how is it supposed to look? Can anyone post a screenie, please?

    UPDATE
    Nevermind, I got it working thanks to the URL in the top-post. Had to install UPnP-stuff and activate some system-services... :tongue:
    But is this a safe thing to do? I recall some serious WinXP security-issues with UPnP!

    FYI: steps 7 and 8 of the test-program fail here too, but uTorrent works as before with a random port assigned by Tomato (and shows up in the webGUI).
     
  4. Valmor

    Valmor Network Guru Member

    I tried Azureus. This is with no icon showing in Network Connections but UPnP is enabled on Tomato.

    Code:
    [13:27:51] ignoring loopback address /127.0.0.1, interface lo
    [13:27:51] group = /239.255.255.250:0/eth0:Belkin Wireless 54Mbps Desktop Adapter - Packet Scheduler Miniport-/192.168.1.115: started
    [13:27:51] Mapping request: Incoming Peer Data Port (UDP/11933), enabled = true
    [13:27:51] Mapping request: UDP Tracker Client Port (UDP/11933), enabled = true
    [13:27:51] Mapping request: Incoming Peer Data Port (TCP/11933), enabled = true
    [13:27:51] Mapping request: Incoming Peer Data Port (TCP/80), enabled = false
    [13:27:51] Mapping request: TCP Tracker Port (TCP/6969), enabled = false
    [13:27:51] Mapping request: TCP SSL Tracker Port (TCP/7000), enabled = false
    [13:27:51] Mapping request: UDP Tracker Port (UDP/6969), enabled = false
    [13:27:51] Mapping request: Distributed DB (UDP/11933), enabled = true
    I did the port test in Azureus and it failed.
     
  5. roadkill

    roadkill Super Moderator Staff Member Member

    make sure "SSDP Discovery Service" and "Universal Plug and Play Device Host" are started. check "show in my network places" in the router
    you should now see an new icon in network which represents the internet link...
    if you see it UPNP works and the UPNP device host has registered the router as a UPNP provider.
    you can now uncheck "show in my network places" in the router it's no longer needed
     
  6. Valmor

    Valmor Network Guru Member

    Just checked it...nothing in My Network Places or Network Connections. Both SSDP Discovery Service and Universal Plug and Play Device Host are enabled.
     
  7. roadkill

    roadkill Super Moderator Staff Member Member

    try to restart the computer after you check "show in my network places" in the router...
     
  8. digitalgeek

    digitalgeek Network Guru Member

    The problem with upnp is that any application use the proper protocol requests could request the router to open any port and grant that application access to the internet.
     
  9. Valmor

    Valmor Network Guru Member

    Yeah I did.

    Thanks for your help roadkill, I appreciate it. UPnP is just a buggy protocol to begin with. I think I'll just set some static IPs and forward ports for what I need.
     
  10. roadkill

    roadkill Super Moderator Staff Member Member

    I use Linux don't have a windows machine besides what came preinstalled with the laptop...
    so I don't have alot of experience with Windows's quirks with UPNP...
    I do however know it's a problematic feature and you should have a few
    updates that makes it somewhat less problematic...
    try the MS Knowledge Base and UPNP.
    I don't really think it's router related, you can check it though...
    boot your computer with Knoppix or PC Linux OS
    I think those dist. support UPNP from the box...

    that's the way it looks in network connections when UPNP is working correctly someone here requested the screenshot...
    [​IMG]
     
  11. lwf-

    lwf- Network Guru Member

    uPnP doesn't work well for me either. I just use static port forwards instead, they always works and it isn't so damn insecure.
     
  12. larsrya8

    larsrya8 LI Guru Member

    Actually... you can argue that having permanently forwarded ports is insecure, since a correctly written program with UPnP closes them after it's done. I haven't had a single problem with UPnP with version 1.03, and we're using Azureus and LimeWire on four different machines.
     
  13. digitalgeek

    digitalgeek Network Guru Member

    I have been running UPnP since original firmware... through Thibor and since Ver.05... never had any problems... Windows Icon occasionally indicates it has (re)connected to Internet Gateway (quite often), but since about .09 I have never had any fails infact utorrent works quite well... it was mapping on both routers as I had forgotten to disable upnp on the second one.
     
  14. lwf-

    lwf- Network Guru Member

    It’s only possible to breach the security if the service behind the port is vulnerable and with uPnP will not save you from that.

    However, with uPnP, any program running on any device in the network can manage the routers port forwards, so in case of a security breach (a spyware for example) you got much bigger problems than the fact that your static forwarded ports are always open. Closing the ports when they aren’t needed might be a good thing, but in reality it doesn't make a difference for your security.
     
  15. digitalgeek

    digitalgeek Network Guru Member

    Agreed... The chance of a hacker hitting your network cause one port (or two) ports are temporarily open is very slim. If malware wants to breach/comprimise security, it'll do from inside youe network.
     
  16. turbo53

    turbo53 Network Guru Member

    This is exactly right. IMHO, the security issues with uPNP are overblown. Just think about it a bit. If I am writing malicious software, am I going to hope that my victim has a uPNP capable router, and that he has enabled it, and that he is too stupid to check the uPNP port forwards occasionally, etc?

    OR...am I just going to write the code to establish a connection from within your network, which will work for 99% of the routers out there since most people (including me) allow all outgoing connections?

    uPNP actually enhances security by only opening ports when needed and closing them when done, assuming the program is written correctly of course.
     
  17. larsrya8

    larsrya8 LI Guru Member

    Well, just today I started having UPnP problems. Azureus has been running for about 5 days now, and yesterday it showed "NAT OK?" on the bottom. I ran a Shields Up! test, and the port is stealthed. Seeing as I run Azureus all the time, maybe I should go ahead and forward the port.
     
  18. bokh

    bokh Network Guru Member

    UPnP-screenshot

    That was me, but this is far from what my Tomato looks like on "My Network" now UPnP is set-up! :biggrin:
    I'm not behind my WinXP-box, but it's definitely not showing my (SpeedTouch-)modem...
    I'll try and think of posting a screenie from my POV later on.
     
  19. pharma

    pharma Network Guru Member

    UPnP working well here with 1.04 and using BitSpirit for my torrents -- so well that I turned off port forwarding. People with UPnP issues might check to see whether the XP Service "Universal Plug and Play Host" is running -- try enabling it to see whether it helps. :)

    Pharma
     
  20. larsrya8

    larsrya8 LI Guru Member

    Yep it's running... why wouldn't it be? UPnP worked on mine for a while (at least 3 days) but then it stopped. I don't have a firewall running on my computer, not even the Windows Firewall, so it's not a firewall's fault.
     
  21. roadkill

    roadkill Super Moderator Staff Member Member

    Registry Patch

    OK this will disable UPNP and this one will Enable UPNP back ON and I got couple of other tweaks that will reset services to default settings (might be helpful to solve dependency issues) XP Home / XP Pro.
    I hope this will help to some of you...
    :biggrin:
     
  22. digitalgeek

    digitalgeek Network Guru Member

    I find that occasionally (once a month- usually less often) my UPnP stops working. but what I have actually found is not so much that upnp has stop working. My ISP like's to "close" ports after a while. They don't like me to host or encourage inbound connections. Asking Utorrent to randomly choose a new port often clears the problem. Less often... I have had to log in to the router and many clear the UPnP table and Utorrent will map the new port for me. (although I haven't had to do this in months - somewhere around V1.0)
     
  23. larsrya8

    larsrya8 LI Guru Member

    I have been using the same port for the last 6 months, both manually forwarded and with UPnP. It works flawlessly when manually forwarded; it occasionally stops working with UPnP (even after I restart Azureus). If the UPnP is not going to be maintenance free, I'm just going to manually forward the port and turn the Windows Firewall back on.
     
  24. digitalgeek

    digitalgeek Network Guru Member

    Have you tried utorrent? it is a "lighter" client... written in c++ not java. and I find it more reliable and less DHT (vs standard Tracker) abusive. And the C++ is compiled rather than interpreted. (...even though a P4/C2D is capable of the increased overhead)
     
  25. jeradc

    jeradc LI Guru Member

    What does compiled vs the interpreted nature of an application have to do with uPNP?
     
  26. digitalgeek

    digitalgeek Network Guru Member

    technically it has nothing... but if azureus is crashing UPnP, it could be the client not the router??? ...sorry if I have messed a perfectly good thread...
     
  27. lwf-

    lwf- Network Guru Member

    No, it’s the router. uPnP got a habit of not working so good... My machines are running 24/7, but uPnP however always stops working after a while. Azureus, uTorrent, eMule, MSN Messenger, it’s all the same.

    This problem is not on the client side, it’s the router, and even if there was an uPnP enabled application that worked badly, the uPnP-server part should not crash or stop working, it just shouldn’t. I mean; if a web server crashed every time a non existing page were requested, then you would not blame the browser, would you? ;)
     
  28. roadkill

    roadkill Super Moderator Staff Member Member

    am I the only one without any problems with UPNP???
     
  29. dvaskelis

    dvaskelis Network Guru Member

    I sometimes had issues with Thibor, where after a while (typically 6+ weeks of uptime) UPnP just didn't work one day, but a router reboot always solved it.

    However, I never had any UPnP issues with Tomato once I cleared NVRAM. Prior to that, I had a variety of goofy minor problems when I first loaded Tomato from Thibor and didn't clear NVRAM, including UPnP stopping once.

    Most of my applications that use UPnP are on a Mac, perhaps that makes a difference?
     
  30. pharma

    pharma Network Guru Member

    You might have a point! I believe I read somewhere there were some quirky issues between UpnP and clients written in Java.
     
  31. jeradc

    jeradc LI Guru Member

    yes, you read it about 4 posts up.
     
  32. larsrya8

    larsrya8 LI Guru Member

    I don't see how the language of the program would affect UPnP. Besides, that point was refuted three posts later.


    It's clear that UPnP is flakey. I'm going to stick with my manually forwarded port until I hear that UPnP has been fixed.
     
  33. dolly_oops

    dolly_oops Network Guru Member

    If there were some standardised way that all Java software handled UPnP (like if everything was using a common library), then I might be inclined to consider it.

    But since there isn't, then it's really not likely.

    I've got a WRT54G and I do have problems with UPnP and Azureus - it's usually successful opening ports, but does sometimes report timeout problems when trying to shut them down.

    I don't know what uPnP server software is bundled with Tomato, but I wonder if it's worth gettin Tofu to try something different to see if that helps....
     
  34. turbo53

    turbo53 Network Guru Member

    Nope. It works fine for me. I have 3 apps which use uPnP and they all work flawlessly. I use uTorrent, a second UPnP app which I wrote myself, and my XBox (not technically an application, I know, but it DOES use UPnP).

    Never seen a problem with any of them.
     
  35. pharma

    pharma Network Guru Member

    I'm also using a WRT54G with XP SP2 and have NO problems with UPnP and BitSpirit. It's actually worked flawlessly with all Tomato versions, so to me it might seem to be more related to individual OS's and/or conflicting software running on the computer.

    If you do a google search you'll see Azureus still has problems with UPnP. Looking at their past few Changelogs will show UPnP related issues.

    http://azureus.sourceforge.net/changelog.php

    Pharma
     
  36. dolly_oops

    dolly_oops Network Guru Member

    Thanks for the tip. No need to look at the changelog, since I actually work on Azureus myself. :D

    I've actually figured out a bug in some of the UPnP code in the last few minutes - when it tries to acquire a mapping, if it fails for any reason, Azureus attempts to remove any existing mapping, and if that happens to work, then try again to re-add it. Anyway - the code which attempts to remove a mapping is broken, so I've just fixed that.
     
  37. bokh

    bokh Network Guru Member

    Screamshot

    As promised. This is how my Tomato looks (now) from "My networks" / UPnP in WinXP (Dutch):

    [​IMG]
     
  38. larsrya8

    larsrya8 LI Guru Member

    Does this mean there will be an update for the UPnP plugin?

    Also, I tried mapping a UPnP port with uTorrent... it says that it fails. The changelog for version 1.6.1 says there's a uPnP fix... but their website is too swamped for me to download it.

    Edit: Installed 1.6.1 - still fails with error -3.
     
  39. dolly_oops

    dolly_oops Network Guru Member

    The plugin itself is actually embedded in the core code - it's written like a plugin, but it only ever gets changed when you update the main Azureus core itself.

    It'll be in the next beta (3.0.0.7_b5), whenever that gets built. There's plenty of code in the plugin to try and workaround situations where the UPnP-enabled router doesn't work as expected, but I wouldn't be surprised if it doesn't catch everything.
     
  40. dolly_oops

    dolly_oops Network Guru Member

    larsrya8 - with regard to your problems - what happens exactly? Are you saying that the UPnP ports are opened up correctly and then later they seem to be shut down by the router?
     
  41. larsrya8

    larsrya8 LI Guru Member

    That's the way it seems to work. Restarting Azureus didn't reopen the port either.
     
  42. dolly_oops

    dolly_oops Network Guru Member

    Hmm... does Tomato report that these ports are open in the GUI? Is it possible that your ISP is closing off ports?

    (Just trying to determine if it's Tomato or Azureus that's the problem here.)
     
  43. roadkill

    roadkill Super Moderator Staff Member Member

    try to switch ports to <1024 and turn protocol encryption on to prevent throttling
     
  44. larsrya8

    larsrya8 LI Guru Member

    After it decides not to work, the ports are shown in the UPnP GUI in Tomato. I delete them and restart Azureus to try to reopen them, but it doesn't work.

    As I said before, when manually forwarding the exact same port, both Azureus and uTorrent work perfectly. ShieldsUP! shows the port as being open too (not the case when UPnP isn't working). My ISP is not throttling anything.
    Who said anything about throttling? UPnP would still map even if my ISP blocks traffic on that port. Besides, the protocol encryption is turned on by default. Unless you meant disabling legacy support?

    Note: By the way... I've switched to uTorrent. When running SafePeer with Azureus it would report using upwards of 150MB of RAM on my system. Using the exact same blocklist with uTorrent uses less than 20MB (while running the dynamic cache too). Unfortunately, UPnP doesn't seem to be working with either of them, but uTorrent is small enough that I'm going to leave it running all the time so it doesn't really matter. I liked Azureus, but it can't compete with the resource savings of a program written with native APIs.
     
  45. larsrya8

    larsrya8 LI Guru Member

    I switched Azureus to the next available port (broken port + 1) and now it's mapping in UPnP again. I think Tomato isn't releasing it, even though I clicked "Delete All". There were a couple old entries in there from my Xbox (which wasn't on) and Limewire from another computer.

    When I close Azureus and refresh the Tomato GUI the ports disappear. When I reopen Azureus (after a few seconds or a few minutes) an error slides up saying that the ports might be owned by another computer, Azureus might be open twice, etc. Refreshing the GUI shows the ports have been mapped though, and Azureus passes the NAT Test.

    When I have Azureus open, mapping, and passing the test, I deleted all the UPnP entries and ran the NAT test again. Azureus predictably failed. Then I restarted Azureus, and it said the port failed to map again. It passed the test though, and congratulated me.

    Edit: Turning on all the "Report" options in UPnP gives me 4 messages, two failure to open ports with two successful maps in the middle.
     
  46. pharma

    pharma Network Guru Member

    Might seem obvious, but after clicking Delete All did you click "Save" at the bottom of the page?
     
  47. larsrya8

    larsrya8 LI Guru Member

    No.. because you don't need to do that? When I was deleting Azureus' new (working) mappings I didn't click Save and it deleted them (aka Azureus started failing the NAT test right after I deleted them).
     
  48. pharma

    pharma Network Guru Member

    When you click "Save" it also does some things -- one of which is restarting "Other" services. It might also do other things which we don't know about -- my assumption is the firmware author put "Save" on the page for a reason. In my case I always use the "Save" button if it's there and I change something on the page. :)
     
  49. dolly_oops

    dolly_oops Network Guru Member

    Hmm... interesting... OK, let's look at what you've said:

    Maybe it's a browser cache issue? Try with a different browser or a different machine? There's no guarantee that the GUI will accurately reflect what's happening on the router, but it's not likely, so I'm guessing it was a browser hiccup of some sort.

    They sound like two different errors to me. The Azureus being open twice problem - were there two different instances of Azureus running? Make sure that it has actually terminated - even though the GUI has disappeared, it's not unusual for the process to still be active for a while.

    That sounds like Azureus failed to release the port mappings properly, and when it started back up, it didn't correctly unregister and register the port mappings (due to the bug which I've fixed earlier).

    Do you have the setting to release port mappings on shutdown?

    Hmm... what does it say exactly?

    I'd be happy to look at your debug logs to see if there's any UPnP mapping problems logged when shutting down.

    If you wouldn't mind, could you try your tests again making sure that Azureus has properly terminated before starting it up again?
     
  50. larsrya8

    larsrya8 LI Guru Member

    The save button is probably used when you change the check boxes on that page. :wink:
     
  51. digitalgeek

    digitalgeek Network Guru Member

    This is possible as I have experienced this on several occasions... F???ing ISP. So wat if I'm break the law downloading illegal materials.
     
  52. larsrya8

    larsrya8 LI Guru Member

    At dolly_oops: It looks like the UPnP problems might be caused by one of my roommates. He just came back from vacation a couple days ago with his laptop. For some reason, according to the Azureus UPnP log, Azureus is asking the router AND his laptop to map ports. I don't know what he did... I'm trying to figure it out. Maybe he turned some form of internet sharing on?

    Sorry for the bother if this ends up being a simple fix on my end.
     
  53. dolly_oops

    dolly_oops Network Guru Member

    Are you saying that port mappings that were open before are now closed (and you can see they are closed through Tomato)?
     
  54. pharma

    pharma Network Guru Member

    You might be right, but since you're the one having the problems you should know better and "follow the book laid out by the developer" instead of guessing and taking everyone on a "wild goose chase". :rolleyes:

    Hope you work it out!
     
  55. larsrya8

    larsrya8 LI Guru Member

    My previously mentioned roommate has a Zune service running that says it shares music through UPnP. That is probably why it's showing up in Azureus' UPnP log, and maybe why Azureus is asking both the router and the laptop for port mappings.
     
  56. dolly_oops

    dolly_oops Network Guru Member

    Hmm... OK. Is it possible you could post the UPnP log generated by Azureus? I'm not sure it's meant to try and use the laptop to open port mappings if it doesn't provide a WANIPConnection service (or something like that)...

    If it is the case that Zune seems to provide that service, then I'll have a word with some other Azureus devs to see if we can work around that. But post the UPnP log if you could, that would be helpful. :)
     
  57. larsrya8

    larsrya8 LI Guru Member

    Sorry for the delay.. I was at work. Maybe Microsoft is going to use the Zune service to connect the Zune (via Wi-Fi) to the internet? I have no idea...

    Code:
    [2:17:03] ignoring loopback address /127.0.0.1, interface lo
    [2:17:03] group = /239.255.255.250:0/eth0:Intel(R) PRO/1000 CT Network Connection - Packet Scheduler Miniport-/192.168.1.130: started
    [2:17:03] Mapping request: Incoming Peer Data Port (UDP/7003), enabled = true
    [2:17:03] Mapping request: UDP Tracker Client Port (UDP/7003), enabled = true
    [2:17:03] Mapping request: Incoming Peer Data Port (TCP/7003), enabled = true
    [2:17:03] Mapping request: Incoming Peer Data Port (TCP/80), enabled = false
    [2:17:03] Mapping request: TCP Tracker Port (TCP/6969), enabled = false
    [2:17:03] Mapping request: TCP SSL Tracker Port (TCP/7000), enabled = false
    [2:17:03] Mapping request: UDP Tracker Port (UDP/6969), enabled = false
    [2:17:03] Mapping request: Distributed DB (UDP/7003), enabled = true
    [2:17:03] UPnP: root discovered: usn=uuid:0012-1745-d8c80000b9b4::upnp:rootdevice, location=http://192.168.1.1:5431/dyndev/uuid:0012-1745-d8c80000b9b4, ni=eth0,local=/192.168.1.130
    [2:17:03]   Downloading: http://192.168.1.1:5431/dyndev/uuid:0012-1745-d8c80000b9b4
    [2:17:03] Relative URL base is http://192.168.1.1:5431/
    [2:17:03] Tomato (192.168.1.1 - MY-IP-ADDRESS)
    [2:17:03]   urn:schemas-upnp-org:service:Layer3Forwarding:1:desc=http://192.168.1.1:5431/dynsvc/Layer3Forwarding:1.xml, control=http://192.168.1.1:5431/uuid:0012-1745-d8c80000b9b4/Layer3Forwarding:1
    [2:17:03]   urn:schemas-upnp-org:device:WANDevice:1
    [2:17:03]     urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1:desc=http://192.168.1.1:5431/dynsvc/WANCommonInterfaceConfig:1.xml, control=http://192.168.1.1:5431/uuid:0012-1745-d8c80100b9b4/WANCommonInterfaceConfig:1
    [2:17:03]     urn:schemas-upnp-org:device:WANConnectionDevice:1 *
    [2:17:03]       urn:schemas-upnp-org:service:WANIPConnection:1:desc=http://192.168.1.1:5431/dynsvc/WANIPConnection:1.xml, control=http://192.168.1.1:5431/uuid:0012-1745-d8c80200b9b4/WANIPConnection:1
    [2:17:03]     Found WANIPConnection
    [2:17:03]   Downloading: http://192.168.1.1:5431/dynsvc/WANIPConnection:1.xml
    [2:17:04] UPnP: Mapping 'Incoming Peer Data Port (UDP/7003)' established
    [2:17:04] UPnP: Mapping 'Incoming Peer Data Port (UDP/7003)' established
    [2:17:04] Mapping UDP Tracker Client Port (UDP/7003) already established
    [2:17:04] UPnP: Mapping 'Incoming Peer Data Port (TCP/7003)' established
    [2:17:04] UPnP: Mapping 'Incoming Peer Data Port (TCP/7003)' established
    [2:17:04] Mapping Distributed DB (UDP/7003) already established
    [2:17:04] UPnP: root discovered: usn=uuid:c757f472-4af4-4af2-9ce7-38ae684319b5::upnp:rootdevice, location=http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:c757f472-4af4-4af2-9ce7-38ae684319b5, ni=eth0,local=/192.168.1.130
    [2:17:04]   Downloading: http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:c757f472-4af4-4af2-9ce7-38ae684319b5
    [2:17:04] Relative URL base is unspecified
    [2:17:04] D15860BF233240A: Seth
    [2:17:04]   urn:schemas-microsoft-com:service:MSContentDirectory:1:desc=http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:fd0e1b07-6c0a-493e-bbc7-4a2707391bdf, control=http://192.168.1.144:2869/upnphost/udhisapi.dll?control=uuid:c757f472-4af4-4af2-9ce7-38ae684319b5+urn:microsoft-com:serviceId:MSContentDirectory
    [2:17:04]   urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1:desc=http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:fa54475f-38bc-49ad-a9ad-64a88b2256b9, control=http://192.168.1.144:2869/upnphost/udhisapi.dll?control=uuid:c757f472-4af4-4af2-9ce7-38ae684319b5+urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar
    [2:17:04]   urn:schemas-microsoft-com:service:Handshake:1:desc=http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:7741e79b-fd79-46db-be30-6814cbb736f2, control=http://192.168.1.144:2869/upnphost/udhisapi.dll?control=uuid:c757f472-4af4-4af2-9ce7-38ae684319b5+urn:microsoft-com:serviceId:Handshake
    [2:17:04] UPnP: root discovered: usn=uuid:6603e207-031d-49b9-8610-d04b0bf6dbd3::upnp:rootdevice, location=http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:6603e207-031d-49b9-8610-d04b0bf6dbd3, ni=eth0,local=/192.168.1.130
    [2:17:04]   Downloading: http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:6603e207-031d-49b9-8610-d04b0bf6dbd3
    [2:17:04] Relative URL base is unspecified
    [2:17:04] Residential Gateway Device
    [2:17:04]   urn:schemas-microsoft-com:service:OSInfo:1:desc=http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:bda87df6-15d5-4156-87de-5635254282be, control=http://192.168.1.144:2869/upnphost/udhisapi.dll?control=uuid:6603e207-031d-49b9-8610-d04b0bf6dbd3+urn:microsoft-com:serviceId:OSInfo1
    [2:17:04]   WANDevice
    [2:17:04]     urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1:desc=http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:47b2cecd-fc4f-49fc-8ed8-ff7e8bdb30bb, control=http://192.168.1.144:2869/upnphost/udhisapi.dll?control=uuid:9068b111-5cb8-443c-9485-95be48e4dd0e+urn:upnp-org:serviceId:WANCommonIFC1
    [2:17:04]     WANConnectionDevice *
    [2:17:04]       urn:schemas-upnp-org:service:WANIPConnection:1:desc=http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:6593d7be-59e1-4af3-b3a4-30c843212d94, control=http://192.168.1.144:2869/upnphost/udhisapi.dll?control=uuid:0a5bcc2b-2a2f-4dbe-b609-53394c4bb3dc+urn:upnp-org:serviceId:WANIPConn1
    [2:17:04]     Found WANIPConnection
    [2:17:04]   Downloading: http://192.168.1.144:2869/upnphost/udhisapi.dll?content=uuid:6593d7be-59e1-4af3-b3a4-30c843212d94
    [2:17:04] Mapping Incoming Peer Data Port (UDP/7003) already established
    com.aelitis.net.upnp.UPnPException: Invoke of 'urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping' fails: HTTP request failed:HTTP/1.1 500 Internal Server Error
    [2:17:05] UPnP: Mapping 'Incoming Peer Data Port (UDP/7003)' failed
    [2:17:05] Mapping UDP Tracker Client Port (UDP/7003) already established
    [2:17:05] Mapping Incoming Peer Data Port (TCP/7003) already established
    com.aelitis.net.upnp.UPnPException: Invoke of 'urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping' fails: HTTP request failed:HTTP/1.1 500 Internal Server Error
    [2:17:05] UPnP: Mapping 'Incoming Peer Data Port (TCP/7003)' failed
    [2:17:05] Mapping Distributed DB (UDP/7003) already established
     
  58. dolly_oops

    dolly_oops Network Guru Member

    That's OK, I was asleep. :)

    The log is interesting - from the logs, I get the feeling that it is acting as a proxy to Tomato itself - so Azureus tries to open ports on the laptop machine, which then propogates it to the router itself, and that's why it complains that the port is already open (since Azureus found the Tomato router first and opened ports that way).

    I'm not sure if Azureus should be trying to open ports again once it has already opened it on another device. We might be able to solve this by adding a configuration option to only manually specify what device we should be talking to, or getting Azureus to warn a user if it has found more than one UPnP device....

    I'll see what parg (who wrote the UPnP code for Azureus has to say about it)... thanks for the log output.
     
  59. dolly_oops

    dolly_oops Network Guru Member

    parg has just made changes and put it under CVS to warn a user when there are two UPnP enabled devices on the network, and to provide the option to prevent mapping UPnP connections on certain addresses (or alternatively, allow mapping UPnP connections on explicitly defined addresses). So that'll be in the next beta...
     
  60. MiseryQ

    MiseryQ Network Guru Member

    I have'nt read through all the post.

    I had a problem with XWRT where UPNP would just stop working and only a reboot of the router would get it working again.
    The problem was with miniupnpd. Does Tomato used this?
    Switching to linux-igd totaly solved the problem.

    This was also noted by one of XWRTs developers.
     

Share This Page