UPnP stops responding when connection cleared

Started by Taomyn, October 05, 2020, 11:09:30 AM

Previous topic - Next topic
Is anyone else having issues with the UPnP service? I reported it here https://github.com/opnsense/plugins/issues/1988 but basically:

QuoteWhen connections are cleared in the UPnP service, it then no longer responds to any new requests either for new connections or even a status. To clear the condition I am forced each time to disable UPnP and then re-enable it - even a restart of the service fails.


Anyone?


Perhaps someone can tell me where the config is stored so that when I try a reinstall of the plug-in it I get a full clean setup and not still have my old settings.

October 15, 2020, 09:52:34 PM #2 Last Edit: October 15, 2020, 09:59:34 PM by packet loss
The location of the miniupnpd conf file is located at:

/var/etc/miniupnpd.conf

The file is autogenerated from the miniupnpd.inc file located at:

/usr/local/etc/inc/plugins.inc.d/miniupnpd.inc

While working with miniupnpd I discovered that after clearing the "all currently connected sessions" the status page would be cleared but miniupnpd was actually still responsive. For instance after restarting my Xbox, 2 entries would show up on the status page. Otherwise nothing would show. What's happening is that a device on a network that uses UPNP needs to make a port request and miniupnpd will add a port mapping for the UPNP device. If my Xbox already made the reqeuest I don't make another one until I've rebooted it. It make make another request if I play a different game. I haven't tested this. I've tested this with pfsense as well. Same results.

Quote from: packet loss on October 15, 2020, 09:52:34 PM
The location of the miniupnpd conf file is located at:

/var/etc/miniupnpd.conf

The file is autogenerated from the miniupnpd.inc file located at:

/usr/local/etc/inc/plugins.inc.d/miniupnpd.inc

While working with miniupnpd I discovered that after clearing the "all currently connected sessions" the status page would be cleared but miniupnpd was actually still responsive. For instance after restarting my Xbox, 2 entries would show up on the status page. Otherwise nothing would show. What's happening is that a device on a network that uses UPNP needs to make a port request and miniupnpd will add a port mapping for the UPNP device. If my Xbox already made the reqeuest I don't make another one until I've rebooted it. It make make another request if I play a different game. I haven't tested this. I've tested this with pfsense as well. Same results.


Thanks, but as also reported in the Github issue I logged, that isn't my experience - the connection is cleared and nothing after that can make a new UPnP again until I disable then enable the plug-in.