miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Restrict minissdpd search responses by source interface/IP

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
ldd



Joined: 21 Nov 2019
Posts: 1

PostPosted: Thu Nov 21, 2019 7:27 pm    Post subject: Restrict minissdpd search responses by source interface/IP Reply with quote

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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1593

PostPosted: Wed Dec 18, 2019 12:22 am    Post subject: Reply with quote

no, that's currently not possible.

feel free to fill an issue on https://github.com/miniupnp/miniupnp/issues
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1593

PostPosted: Wed Dec 18, 2019 12:26 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.