-
Notifications
You must be signed in to change notification settings - Fork 34
/
wsdd2.8
247 lines (224 loc) · 5.66 KB
/
wsdd2.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
'\" t
.\" Title: wsdd2
.\"
.TH "WSDD2" "8" "02/05/2021" "WSDD" "System Administration tools"
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
wsdd2 \- server to provide WSDD/LLMNR services to clients
.SH "SYNOPSIS"
.HP \w'\ 'u
wsddd2 [\-h] [\-d] [\-4] [\-6] [\-u] [\-t] [\-l] [\-w] [\-L] [\-W]
[\-i <intrerface>] [\-H <hostname>] [\-N <netbiosname>] [\-G <workgroup>]
[\-b <kvlist>]
.SH "DESCRIPTION"
.PP
\fBwsdd2\fR is the server daemon that provides WSDD (Web Services Dynamic
Discovery) as well as LLMNR (Link-Local Multicast Name Resolution) services
primarily for Windows clients on both IPv4 and IPv6.
.PP
\fBwsdd2\fR's WSDD protocol handler multicasts Hello and Bye messages by
itself over UDP, responds with ProbeMatch and ResolveMatch messages in
response to Probe and Resolve queries respectively over UDP, and sends
HTTP reponse messages to HTTP property query POST messages over TCP.
.PP
\fBwsdd2\fR's LLMNR protocol handler responds to LLMNR multicast query
messages over UDP and to LLMNR unicast query messages over TCP.
.PP
\fBwsdd2\fR uses and listens on the following ports:
.PP
3702 UDP
.RS 4
WSDD multicast group addresses 239.255.255.250 and ff02::c.
.RE
.PP
3702 TCP
.RS 4
WSDD property query over HTTP.
.RE
.PP
5355 UDP
.RS 4
LLMNR query multicast group addresses 224.0.0.252 and ff02::1:3.
.RE
.PP
5355 TCP
.RS 4
LLMNR query unicast.
.RE
.SH "OPTIONS"
.PP
\-h
.RS 4
Display a simple help messasge to stdout including currently in effect
parameters' values.
.RE
.PP
\-d
.RS 4
Fork off a child process to become daemon.
.RE
.PP
\-4 \-6
.RS 4
Respond only to IPv4 and IPv6 respectively.
Default is equivalent to "\-4 \-6".
.RE
.PP
\-u \-t
.RS 4
Respond only to UDP and TCP respectively.
Default is equivalent to "\-u \-t".
.RE
.PP
\-l \-w
.RS 4
Respond only to LLMNR and WSDD respectively.
Default is equivalent to "\-l \-w".
.RE
.PP
\-L
.RS 4
Print out LLMNR debug messages to stdout.
Multiple \-L's to increment debug level.
.RE
.PP
\-W
.RS 4
Print out WSDD debug messages to stdout.
Multiple \-W's to increment debug level.
.RE
.PP
\-i <interface>
.RS 4
Use only specified interface to reply to incoming requests. Specifying "any"
or leaving option out causes \fBwsdd2\fR to listen on every IPv4 or IPv6
capable interface excluding those that have names matching LeafNets,
docker*, veth*, tun*, ppp*, zt*.
.RE
.PP
\-H <hostname>
.RS 4
Use specified string as host name instead of first label before '.' of
system host name retrieved with \fBgethostname\fR(3) or \fBuname\fR(3)
functions.
.RE
.PP
\-N <nebiosname>
.RS 4
Use specified string as NETBIOS machine name instead of value returned by
.br
\fBtestparm -s --parameter-name="netbios name"\fR command or system host
name.
.RE
.PP
\-G <workgroup>
.RS 4
Use specified string as workgroup name instead of value returned by
.br
\fBtestparm -s --parameter-name="workgroup"\fR command or "WORKGROUP"
default value.
.RE
.PP
\-b "\fIkey1\fR:\fIval1\fR,\fIkey2\fR:\fIval2\fR,\fI...\fR"
.RS 4
Set WSDD query over HTTP response values in a comma-delimited list. The
valid/necessary keys are: \fBvendor, model, serial, sku, vendorurl,
modelurl, presentationurl\fR.
.br
This option overrides /proc/sys/dev/boot/info readouts.
.RE
.RE
.SH "WSDD PROPERTY QUERY RESPONSE"
.PP
\fBwsdd2\fR responds to property queries using the following values over
HTTP. If a value may be set with multiple methods, the latter in the method
list has precedence.
.PP
Vendor
.RS 4
Value retrieved from /proc/sys/dev/boot/info or set with the -b option.
.RE
.PP
Model
.RS 4
Value retrieved from /proc/sys/dev/boot/info or set with the -b option.
.RE
.PP
Serial
.RS 4
Value retrieved from /proc/sys/dev/boot/info or set with the -b option or
\fB0\fR.
.RE
.PP
SKU
.RS 4
Value retrieved from /proc/sys/dev/boot/info or set with the -b option.
.RE
.PP
ModelURL
.RS 4
Value set with the -b option.
.RE
.PP
VendorURL
.RS 4
Value set with the -b option.
.RE
.PP
PresentationURL
.RS 4
Value set with the -b option.
.RE
.SH "FILES"
.PP
/etc/samba/smb.conf
.RS 4
This is the default location of the Samba configuration file.
.RE
.PP
/etc/machine-id
.RS 4
A single line text file containing a host-unique UUID in the form of 32
lowercase hex digits used by \fBsystemd-id128\fR(1). See \fBmachine-id\fR(5).
.RE
.PP
/proc/sys/dev/boot/info
.RS 4
A list of \fIkey\fR:\fIvalue\fR entries for WSDD query over HTTP response
values.
.RE
.SH "SIGNALS"
.PP
Sending the \fBwsdd2\fR a SIGHUP will cause it to restart. Restarting will
bind daemon to new interfaces but will not reparse \fBtestparm\fR(1)'s
output and other parameters, nor re-evaluate command line options - stop and
start the daemon again for this. Address change, addition, or deletion on a
network interface will restart \fBwsdd2\fR as well.
.PP
SIGTERM and SIGINT will terminate \fBwsdd2\fR gracefully with WSDD "Bye"
messages.
.SH "SEE ALSO"
.PP
\fBtestparm\fR(1), \fBsystemd-id128\fR(1).
.SH "STANDARDS"
.PP
The WSDD protocol is described in detail in "Web Services Dynamic Discovery
(WS-Discovery) Version 1.1" OASYS Standard, 1 July 2009
.br
http://docs.oasis-open.org/ws-dd/discovery/1.1/os/wsdd-discovery-1.1-spec-os.html
.PP
LLMNR complies with RFC4795.
.SH "AUTHOR"
.PP
Hiro Sugawara at NETGEAR authored the code. \fBwsdd2\fR was inspired by and
uses some code from the wsdd/llmnr extension for smbd created by Tobias
Waldvogel, Jose M. Prieto, and possibly other contributors.