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

UPnP - Inactive Rules Cleaning

Discussion in 'Tomato Firmware' started by godraab, Sep 4, 2012.

  1. godraab

    godraab Networkin' Nut Member

    UPnP - Inactive Rules Cleaning

    Ok, in my home network I run to server software (subsonic and yawcam)
    Subsonic is for streaming music, YawCam is for streaming webcams outside my home network.
    Both these server aplications have UPnP features and when I start them up they correctly forward ports in tomato.
    But then comes what i don't understand, after awhile of not using the application (they are still running), I guess the inactive cleaning interval kicks in and deletes the forwarded ports.
    Of course after that I can not reach the software form outside.
    Is this by desgin? Is it tomato, or is it something wrong with subsonic and yawcam, that makes them appear inactive to tomato?
    My QNAP NAS also seems to appear and disappear from the UPnP list in Tomato.
    Any thoughts?
     
  2. Azuse

    Azuse LI Guru Member

    Upnp protocol is poo - that's your problem.Fire up anything semi competent (utorrent, skype etc.) and you find they'll chose NAT-PMP over upnp any chance they get.

    Unlike nat-pmp, upnp does not require a port to be closed after use, and a lot of sloppy coding means if you didn't have cleaning the table would fill with redundant entries. It's also rather insecure by nature, hence tomatos default restrictive mapping. Nat-pmp on the other had has to close a port when a programs exits.

    In truth your hardware should be continually broadcasting it's port on some interval if it's to have any chance of "just working" with consumer hardware. 20 minutes has become quite common thanks to utorrent but you'll have to experiment yourself with them or ask the manufacturer. Alternatively you could drastically increase the cleaning interval if they can't use nat-pmp - but don't disable it - as a couple port changes or hardware/program crashes will just fill it up.
     

Share This Page