Netgear / wsdd2

WSD/LLMNR Discovery/Name Service Daemon
GNU General Public License v3.0
154 stars 33 forks source link

Implement -i parameter to allow specifying which interface to bind to #1

Closed RMerl closed 4 years ago

RMerl commented 5 years ago

By default wsdd2 binds to all available interfaces. In a router's case this means it would also bind to the WAN interface, which is a security risk. This allows to instruct wsdd2 to which specific interface to bind to.

Andy2244 commented 5 years ago

Thanks, will have a look next week when i have more time.

RMerl commented 5 years ago

That fix appear to be incomplete. While it at least reduces the number of sockets, connecting from an unprotected WAN still seems to succeed. I suppose the socket code will need to be amended to only bind to the interface's IP address, and not to 0.0.0.0.