Scripting "Delete All" UPnP connections

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

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...

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.

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?

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.

Click to expand...

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!