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

Scripting "Delete All" UPnP connections

Discussion in 'Tomato Firmware' started by astehn, Jan 17, 2009.

  1. astehn

    astehn LI Guru Member

    After about 3 or 4 days of uptime, the Tomato router serving my apartment block has often reached its limit of 25 UPnP entries (mostly because MSN Messenger doesn't seem to remove entries when it closes and apparently just opens another port next time!).

    Rather than reboot the router, I just click "Delete All" under the UPnP tab. So I was wondering, what command is this click actually issuing? If I knew, I could simply script this to occur every 24 hours at 4am. I thought "service upnp restart" would do it, but to my surprise, this doesn't seem to clear the entries when it restarts the service.

    Eventually, I'm planning to update to Victek's latest, since it has room for 100 UPnP entries, but I'd really like to know what command that "Delete All" button is issuing:)
     
  2. Toastman

    Toastman Super Moderator Staff Member Member

    The scheduled script: "service upnp restart" works for all Tomato versions I've tried it on, and it's what Victek's addition does. It clears all entries on restart. Odd....
    ...
     
  3. astehn

    astehn LI Guru Member

    Yeah, I tried it again just to make sure I wasn't crazy. I issued "service upnp restart" from telnet, and it gave every indication that it actually restarted. But when I went back to see the UPnP connections listed in Tomato, all of the old entries are still there. Performing a refresh in that window doesn't get rid of them either:)

    So hopefully someone can still enlighten me with regard to what that "Delete All" button is doing...
     
  4. Meffy

    Meffy LI Guru Member

    I have it scheduled to do service upnp restart everyday at 1am but i still see my previous days upnp entries the next day as well...ah well i just reboot it every month or so
     
  5. Toastman

    Toastman Super Moderator Staff Member Member

    Right, that's interesting, not all clients behave the same. How weird. Perhaps Victek can find out why .... Vic?

    My portlist seems to stabilise at about 75 entries here, it's never reached the 100 limit yet, by the way.
     
  6. Meffy

    Meffy LI Guru Member

    Im using victek's 1.23 ver too..just not the one with the speedmod etc but not the banwith limiter
     
  7. guillaumy

    guillaumy LI Guru Member

    That is why miniupnpd would be very nice
     
  8. Victek

    Victek Network Guru Member

    It works fine, the main problem will be related with clients openned mesenger or other services constantly..
     
  9. ruggerof

    ruggerof LI Guru Member

    For me it happens the same, "service upnp restart" in the script doesn't delete all entries in the upnp.

    I use Deluge with random forwarding ports and after a while it gets full of entries.

    I use Victek's Tomato RAF 1.23.8510ND and in my case there are no clients connected to the router when the script runs.

    I will test the Tomato RAF 1.23.8511ND and the "original" Tomato 1.23ND.
     
  10. Victek

    Victek Network Guru Member

    What you wrote demostrates that you did not erased nvram when upgrade to 1.23.8510 .. so, PLEASE erase nvram. With 1.23.8510 and new 1.23.8511 this script is no longer useful, you have miniupnpd instead of UPnP.

    Regards
     
  11. bripab007

    bripab007 Network Guru Member

    miniupnpd is now implemented in your latest builds, Victeck? Did you have to change the web GUI code on the UPnP port forwarding page to properly reflect the ports that miniupnpd has opened? Does the "Enable UPnP" checkbox on that page now stop/start the miniupnpd service?

    In other words, is it fully integrated and working?
     
  12. Victek

    Victek Network Guru Member

    Try it .. 1.23.8511ND release. I integrated the miniupnpd module implemented by Teddy_Bear.
     
  13. ruggerof

    ruggerof LI Guru Member

    I am pretty sure I did erase the NVRAM.

    Anyway, the 1.23.8511ND works like a charm :thumbup:

    Thank you very much for your work Victek :thumbup: Keep up with this excelent job!
     

Share This Page