85
86
<command>&COMMANDNAME;</command>
87
<arg choice='opt'>-i<arg choice='plain'>IF</arg></arg>
88
<arg choice='opt'>-a<arg choice='plain'>ADDRESS</arg></arg>
89
<arg choice='opt'>-p<arg choice='plain'>PORT</arg></arg>
90
<arg choice='opt'>--priority<arg choice='plain'>PRIORITY</arg></arg>
91
<arg choice='opt'>--servicename<arg choice='plain'>NAME</arg></arg>
92
<arg choice='opt'>--configdir<arg choice='plain'>DIRECTORY</arg></arg>
93
<arg choice='opt'>--debug</arg>
96
<command>&COMMANDNAME;</command>
86
97
<arg choice='plain'>--help</arg>
98
109
<refsect1 id="description">
99
110
<title>DESCRIPTION</title>
101
<command>&COMMANDNAME;</command> is a server daemon that handels
102
incomming passwords request for passwords. Mandos use avahi to
103
announce the service, and through gnutls authenticates
104
clients. Any authenticated client is then given its encrypted
112
<command>&COMMANDNAME;</command> is a server daemon which
113
handles incoming request for passwords for a pre-defined list of
114
client host computers. The Mandos server uses Zeroconf to
115
announce itself on the local network, and uses GnuTLS to
116
communicate securely with and to authenticate the clients.
117
Mandos uses IPv6 link-local addresses, since the clients are
118
assumed to not have any other addresses configured yet. Any
119
authenticated client is then given the pre-encrypted password
120
for that specific client.
125
<refsect1 id="purpose">
126
<title>PURPOSE</title>
129
The purpose of this is to enable <emphasis>remote and unattended
130
rebooting</emphasis> of any client host computer with an
131
<emphasis>encrypted root file system</emphasis>. The client
132
host computer should start a Mandos client in the initial RAM
133
disk environment, the Mandos client program communicates with
134
this server program to get an encrypted password, which is then
135
decrypted and used to unlock the encrypted root file system.
136
The client host computer can then continue its boot sequence
109
142
<refsect1 id="options">
134
169
ADDRESS</replaceable></literal></term>
137
Address to listen for requests on
172
If this option is used, the server will only listen to a
173
specific address. This must currently be an IPv6 address;
174
an IPv4 address can be specified using the
175
"<literal>::FFFF:192.0.2.3</literal>" syntax. Also, if a
176
link-local address is specified, an interface should be
177
set, since a link-local address is only valid on a single
178
interface. By default, the server will listen to all
172
219
PRIORITY</replaceable></literal></term>
175
GnuTLS priority string. See <citerefentry>
176
<refentrytitle>gnutls_priority_init</refentrytitle>
177
<manvolnum>3</manvolnum></citerefentry>
222
GnuTLS priority string for the TLS handshake with the
224
<citerefentry><refentrytitle>gnutls_priority_init
225
</refentrytitle><manvolnum>3</manvolnum></citerefentry>
226
for the syntax. The default is
227
"<literal>SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP</literal>".
228
<emphasis>Warning</emphasis>: changing this may make the
229
TLS handshake fail, making communication with clients
184
237
</literal></term>
187
Zeroconf service name
240
Zeroconf service name. The default is
241
"<literal>Mandos</literal>". You only need to change this
242
if you for some reason want to run more than one server on
243
the same <emphasis>host</emphasis>. If there are name
244
collisions on the same <emphasis>network</emphasis>, the
245
new server will automatically rename itself to "Mandos
194
253
</literal></term>
197
Directory to search for configuration files
256
Directory to search for configuration files. Default is
257
"<literal>/etc/mandos</literal>". See <citerefentry>
258
<refentrytitle>mandos.conf</refentrytitle>
259
<manvolnum>5</manvolnum></citerefentry> and <citerefentry>
260
<refentrytitle>mandos-clients.conf</refentrytitle>
261
<manvolnum>5</manvolnum></citerefentry>.
203
267
<term><literal>--version</literal></term>
206
Prints the program version
270
Prints the program version and exit.
277
<refsect1 id="protocol">
278
<title>NETWORK PROTOCOL</title>
280
The Mandos server announces itself as a Zeroconf service of type
281
"<literal>_mandos._tcp</literal>". The Mandos client connects
282
to the announced address and port, and sends a line of text
283
where the first whitespace-separated field is the protocol
284
version, which currently is "<literal>1</literal>". The client
285
and server then start a TLS protocol handshake with a slight
286
quirk: the Mandos server program acts as a TLS "client" while
287
the connecting Mandos client acts as a TLS "server". The Mandos
288
client must supply an OpenPGP certificate, and the fingerprint
289
of this certificate is used by the Mandos server to look up (in
290
a list read from a file at start time) which binary blob to give
291
the client. No other authentication or authorization is done by
294
<informaltable><tgroup cols="3"><thead>
296
<entry>Mandos Client</entry>
297
<entry>Direction</entry>
298
<entry>Mandos Server</entry>
302
<entry>Connect</entry>
303
<entry>-><!-- → --></entry>
306
<entry>"<literal>1\r\en</literal>"</entry>
307
<entry>-><!-- → --></entry>
310
<entry>TLS handshake</entry>
311
<entry><-><!-- ⟷ --></entry>
312
<entry>TLS handshake</entry>
315
<entry>OpenPGP public key (part of TLS handshake)</entry>
316
<entry>-><!-- → --></entry>
320
<entry><-<!-- ← --></entry>
321
<entry>Binary blob</entry>
325
<entry><-<!-- ← --></entry>
328
</tbody></tgroup></informaltable>
331
<refsect1 id="logging">
332
<title>LOGGING</title>
334
The server will log a lot of information with various severity
336
<citerefentry><refentrytitle>syslog</refentrytitle>
337
<manvolnum>8</manvolnum></citerefentry>. With the
338
<option>--debug</option> option, it will log even more messages,
339
and also show them on the console.
213
343
<refsect1 id="exit_status">
214
344
<title>EXIT STATUS</title>
346
The server will exit with a non-zero exit status only when a
347
critical error is encountered.
219
351
<refsect1 id="file">
220
352
<title>FILES</title>
356
<filename>/etc/mandos/mandos.conf</filename> See <citerefentry>
357
<refentrytitle>mandos.conf</refentrytitle>
358
<manvolnum>5</manvolnum></citerefentry>.
361
<filename>/etc/mandos/clients.conf</filename> See <citerefentry>
362
<refentrytitle>mandos-clients.conf</refentrytitle>
363
<manvolnum>5</manvolnum></citerefentry>.
366
<filename>/var/run/mandos/mandos.pid</filename>
225
<refsect1 id="notes">
231
372
<refsect1 id="bugs">
232
373
<title>BUGS</title>
249
390
<refsect1 id="see_also">
250
391
<title>SEE ALSO</title>
252
<citerefentry><refentrytitle>plugin-runner</refentrytitle>
253
<manvolnum>8mandos</manvolnum></citerefentry>, <citerefentry>
254
<refentrytitle>password-request</refentrytitle>
255
<manvolnum>8mandos</manvolnum></citerefentry> and <citerefentry>
256
<refentrytitle>password-prompt</refentrytitle>
257
<manvolnum>8mandos</manvolnum></citerefentry>
392
<itemizedlist spacing="compact">
394
<citerefentry><refentrytitle>password-request</refentrytitle>
395
<manvolnum>8mandos</manvolnum></citerefentry>
399
<citerefentry><refentrytitle>plugin-runner</refentrytitle>
400
<manvolnum>8mandos</manvolnum></citerefentry>
404
<ulink url="http://www.zeroconf.org/">Zeroconf</ulink>
408
<ulink url="http://www.avahi.org/">Avahi</ulink>
413
url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink>
417
<citation>RFC 4880: <citetitle>OpenPGP Message
418
Format</citetitle></citation>
422
<citation>RFC 5081: <citetitle>Using OpenPGP Keys for
423
Transport Layer Security</citetitle></citation>
427
<citation>RFC 4291: <citetitle>IP Version 6 Addressing
428
Architecture</citetitle>, section 2.5.6, Link-Local IPv6
429
Unicast Addresses</citation>