View previous topic :: View next topic |
Author |
Message |
ldd
Joined: 21 Nov 2019 Posts: 1
|
Posted: Thu Nov 21, 2019 7:27 pm Post subject: Restrict minissdpd search responses by source interface/IP |
|
|
When a router with many LAN/VLAN interfaces (potentially thousands) would like to advertise a UPnP implementation to minissdpd, is there a way to tie device advertisements to a particular interface?
We are launching minissdpd using the -i flag for each interface that we would like to listen on. Initially we attempted notifying minissdp of a single root device using an IP address that is reachable from any of the LAN networks, but I've found that some UPnP client devices/applications (mainly PS4) never request the description XML file if the description URL is not an IP address on their same network.
Is there any way to restrict the list of services returned in response to a MSEARCH to only send root devices that are in the same interface that the request was received on? I would much prefer to only advertise a single root device with a FQDN or common IP address instead of multiple, but I was not able to get the clients to be happy with that.
Any advice is appricated.
Thanks!
EDIT: It appears some upnp clients end up requesting ALL of the description URLs from all advertised devices before selecting one to perform AddPortMapping calls for, which is obviously unnecessary load on the webserver. Seems like there must be some more elegant way to handle msearch responses for multiple interfaces/subnets. |
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1593
|
|
Back to top |
|
|
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1593
|
Posted: Wed Dec 18, 2019 12:26 am Post subject: |
|
|
miniupnpd does advertise itself on each LAN with an IP belonging to the LAN (to please PS4 and other sensitive clients) _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
|
|