| 服务 | svrloc(Service Location Protocol) |
|---|---|
| 协议 | TCP/UDP(发现用组播 224.0.1.22) |
| 规范 | RFC 2608(SLPv2) |
| 现状 | 局域网延续使用,公网不应暴露 |
SLP 由 UA(用户代理)、SA(服务代理)、DA(目录代理)三类角色组成:服务注册到 DA,客户端查询 DA 或直接组播查询。
用 slptool 查询目录代理(OpenSLP)
用 slptool 查询目录代理(OpenSLP)
slptool findsrvs service:printer
slptool findattrs service:printer://printer.example.comSLPv1 缺乏认证,伪造 SA 可让客户端连到恶意服务;跨网段部署应限制组播范围或改用带认证的发现机制。