-
Notifications
You must be signed in to change notification settings - Fork 5
/
wsdd2.8
215 lines (215 loc) · 4.62 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
'\" t
.\" Title: wsdd2
.\"
.TH "WSDD2" "8" "03/15/2016" "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"
wsdds \- server to provide WSDD/LLMNR services to clients
.SH "SYNOPSIS"
.HP \w'\ 'u
wsddd2 [\-4] [\-6] [\-L] [\-W] [\-d] [\-h] [\-l] [\-t] [\-u] [\-w]
.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,
submits ProbeMatch and ResolveMatch messages
in response to Probe and Resolve queries respectively over UDP,
and submits 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
\-4 \-6
.RS 4
Respond only to IPv4 and IPv6 respectively.
Default is equivalent to "\-4 \-6."
.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
\-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:
.RS 4
vendor
model
serial
sku
vendorurl
modelutl
presentationurl
.RE
This option overrides /proc/sys/dev/boot/info readouts.
.RE
.PP
\-d
.RS 4
Fork off a child process to go daemon.
.RE
.PP
\-h
.RS 4
Display a simple help messasge to stdout.
.RE
.PP
\-l \-w
.RS 4
Respond only to LLMNR and WSDD respectively.
Default is equivalent to "\-l \-w."
.RE
.PP
\-t \-u
.RS 4
Respond only to TCP and UDP respectively.
Default is equivalent to "\-t \-u."
.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
VendorURL
.RS 4
Value 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
ModelURL
.RS 4
Value set with the -b option.
.RE
.PP
PresentationURL
.RS 4
Value set with the -b option.
.RE
.PP
Host
.RS 4
Host name retrieved with \fBgethostname\fR(3),
NETBIOS name retrieved with \fBtestparm\fR(1),
or value set with the -b option.
.RE
.PP
Workgroup
.RS 4
Value retrieved with \fBtestparm\fR(1) or set with the -b option.
.RE
.SH "FILES"
/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
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
To create a such new file, use \fBuuidgen\fR(1).
.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 re-parse
\fBtestparm\fR(1)'s output and other parameters,
but it will not re-evaluated command line options.
Any change on, addition of, or deletion of 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),
.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.