/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos.xml

  • Committer: Teddy Hogeborn
  • Date: 2008-08-17 20:34:18 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080817203418-l691ahxyc7vmezad
* Makefile (MANPOST): Bug fix: do not replace *all* "een" with "en".

* mandos.xml: More improvements.  Replaced " with <quote>'s.
  (NETWORK PROTOCOL): Replaced <informaltable> with <table> with a
                      <title>.
  (CHECKING): New section describing the continual checking of
              clients.
  (LOGGING): We log to /dev/log, not syslog(3).
  (FILES): Changed to use a <variablelist> instead of an
           <itemizedlist>.  Added "/dev/log" and brief descriptions of
           all files.
  (BUGS): Added content.
  (EXAMPLES): - '' -
  (SECURITY): Added content to subsections "SERVER" and "CLIENTS".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
 
1
<?xml version='1.0' encoding='UTF-8'?>
 
2
<?xml-stylesheet type="text/xsl"
 
3
        href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"?>
2
4
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3
 
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 
5
        "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4
6
<!ENTITY VERSION "1.0">
5
7
<!ENTITY COMMANDNAME "mandos">
6
 
<!ENTITY OVERVIEW SYSTEM "overview.xml">
7
8
]>
8
9
 
9
10
<refentry>
10
11
  <refentryinfo>
11
12
    <title>&COMMANDNAME;</title>
12
 
    <!-- NWalsh’s docbook scripts use this to generate the footer: -->
 
13
    <!-- NWalsh's docbook scripts use this to generate the footer: -->
13
14
    <productname>&COMMANDNAME;</productname>
14
15
    <productnumber>&VERSION;</productnumber>
15
16
    <authorgroup>
73
74
  <refsynopsisdiv>
74
75
    <cmdsynopsis>
75
76
      <command>&COMMANDNAME;</command>
76
 
      <arg>--interface<arg choice="plain">IF</arg></arg>
77
 
      <arg>--address<arg choice="plain">ADDRESS</arg></arg>
78
 
      <arg>--port<arg choice="plain">PORT</arg></arg>
79
 
      <arg>--priority<arg choice="plain">PRIORITY</arg></arg>
80
 
      <arg>--servicename<arg choice="plain">NAME</arg></arg>
81
 
      <arg>--configdir<arg choice="plain">DIRECTORY</arg></arg>
82
 
      <arg>--debug</arg>
83
 
    </cmdsynopsis>
84
 
    <cmdsynopsis>
85
 
      <command>&COMMANDNAME;</command>
86
 
      <arg>-i<arg choice="plain">IF</arg></arg>
87
 
      <arg>-a<arg choice="plain">ADDRESS</arg></arg>
88
 
      <arg>-p<arg choice="plain">PORT</arg></arg>
89
 
      <arg>--priority<arg choice="plain">PRIORITY</arg></arg>
90
 
      <arg>--servicename<arg choice="plain">NAME</arg></arg>
91
 
      <arg>--configdir<arg choice="plain">DIRECTORY</arg></arg>
92
 
      <arg>--debug</arg>
93
 
    </cmdsynopsis>
94
 
    <cmdsynopsis>
95
 
      <command>&COMMANDNAME;</command>
96
 
      <group choice="req">
97
 
        <arg choice="plain">-h</arg>
98
 
        <arg choice="plain">--help</arg>
99
 
      </group>
100
 
    </cmdsynopsis>
101
 
    <cmdsynopsis>
102
 
      <command>&COMMANDNAME;</command>
103
 
      <arg choice="plain">--version</arg>
104
 
    </cmdsynopsis>
105
 
    <cmdsynopsis>
106
 
      <command>&COMMANDNAME;</command>
107
 
      <arg choice="plain">--check</arg>
 
77
      <arg choice='opt'>--interface<arg choice='plain'>IF</arg></arg>
 
78
      <arg choice='opt'>--address<arg choice='plain'>ADDRESS</arg></arg>
 
79
      <arg choice='opt'>--port<arg choice='plain'>PORT</arg></arg>
 
80
      <arg choice='opt'>--priority<arg choice='plain'>PRIORITY</arg></arg>
 
81
      <arg choice='opt'>--servicename<arg choice='plain'>NAME</arg></arg>
 
82
      <arg choice='opt'>--configdir<arg choice='plain'>DIRECTORY</arg></arg>
 
83
      <arg choice='opt'>--debug</arg>
 
84
    </cmdsynopsis>
 
85
    <cmdsynopsis>
 
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>
 
94
    </cmdsynopsis>
 
95
    <cmdsynopsis>
 
96
      <command>&COMMANDNAME;</command>
 
97
      <arg choice='plain'>--help</arg>
 
98
    </cmdsynopsis>
 
99
    <cmdsynopsis>
 
100
      <command>&COMMANDNAME;</command>
 
101
      <arg choice='plain'>--version</arg>
 
102
    </cmdsynopsis>
 
103
    <cmdsynopsis>
 
104
      <command>&COMMANDNAME;</command>
 
105
      <arg choice='plain'>--check</arg>
108
106
    </cmdsynopsis>
109
107
  </refsynopsisdiv>
110
108
 
114
112
      <command>&COMMANDNAME;</command> is a server daemon which
115
113
      handles incoming request for passwords for a pre-defined list of
116
114
      client host computers.  The Mandos server uses Zeroconf to
117
 
      announce itself on the local network, and uses TLS to
118
 
      communicate securely with and to authenticate the clients.  The
119
 
      Mandos server uses IPv6 to allow Mandos clients to use IPv6
120
 
      link-local addresses, since the clients will probably not have
121
 
      any other addresses configured (see <xref linkend="overview"/>).
122
 
      Any authenticated client is then given the stored pre-encrypted
123
 
      password for that specific client.
 
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.  Any
 
119
      authenticated client is then given the pre-encrypted password
 
120
      for that specific client.
124
121
    </para>
125
122
 
126
123
  </refsect1>
130
127
 
131
128
    <para>
132
129
      The purpose of this is to enable <emphasis>remote and unattended
133
 
      rebooting</emphasis> of client host computer with an
134
 
      <emphasis>encrypted root file system</emphasis>.  See <xref
135
 
      linkend="overview"/> for details.
 
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
 
137
      normally.
136
138
    </para>
137
139
 
138
140
  </refsect1>
157
159
          <para>
158
160
            Only announce the server and listen to requests on network
159
161
            interface <replaceable>IF</replaceable>.  Default is to
160
 
            use all available interfaces.  <emphasis>Note:</emphasis>
161
 
            a failure to bind to the specified interface is not
162
 
            considered critical, and the server does not exit.
 
162
            use all available interfaces.
163
163
          </para>
164
164
        </listitem>
165
165
      </varlistentry>
197
197
        <term><literal>--check</literal></term>
198
198
        <listitem>
199
199
          <para>
200
 
            Run the server’s self-tests.  This includes any unit
 
200
            Run the server's self-tests.  This includes any unit
201
201
            tests, etc.
202
202
          </para>
203
203
        </listitem>
220
220
        <listitem>
221
221
          <para>
222
222
            GnuTLS priority string for the TLS handshake with the
223
 
            clients.  The default is
 
223
            clients.  See
 
224
            <citerefentry><refentrytitle>gnutls_priority_init
 
225
            </refentrytitle><manvolnum>3</manvolnum></citerefentry>
 
226
            for the syntax.  The default is
224
227
            <quote><literal>SECURE256:!CTYPE-X.509:+CTYPE-OPENPGP</literal></quote>.
225
 
            See <citerefentry><refentrytitle>gnutls_priority_init
226
 
            </refentrytitle><manvolnum>3</manvolnum></citerefentry>
227
 
            for the syntax.  <emphasis>Warning</emphasis>: changing
228
 
            this may make the TLS handshake fail, making communication
229
 
            with clients impossible.
 
228
            <emphasis>Warning</emphasis>: changing this may make the
 
229
            TLS handshake fail, making communication with clients
 
230
            impossible.
230
231
          </para>
231
232
        </listitem>
232
233
      </varlistentry>
237
238
        <listitem>
238
239
          <para>
239
240
            Zeroconf service name.  The default is
240
 
            <quote><literal>Mandos</literal></quote>.  This only needs
241
 
            to be changed this if it, for some reason, is necessary to
242
 
            run more than one server on the same
243
 
            <emphasis>host</emphasis>, which would not normally be
244
 
            useful.  If there are name collisions on the same
245
 
            <emphasis>network</emphasis>, the newer server will
246
 
            automatically rename itself to <quote><literal>Mandos
247
 
            #2</literal></quote>, and so on; therefore, this option is
248
 
            not needed in that case.
 
241
            <quote><literal>Mandos</literal></quote>.  You only need
 
242
            to change this if you for some reason want to run more
 
243
            than one server on the same <emphasis>host</emphasis>,
 
244
            which would not normally be useful.  If there are name
 
245
            collisions on the same <emphasis>network</emphasis>, the
 
246
            newer server will automatically rename itself to
 
247
            <quote><literal>Mandos #2</literal></quote>, and so on,
 
248
            therefore this option is not needed in that case.
249
249
          </para>
250
250
        </listitem>
251
251
      </varlistentry>
276
276
    </variablelist>
277
277
  </refsect1>
278
278
 
279
 
  <refsect1 id="overview">
280
 
    <title>OVERVIEW</title>
281
 
    &OVERVIEW;
282
 
    <para>
283
 
      This program is the server part.  It is a normal server program
284
 
      and will run in a normal system environment, not in an initial
285
 
      RAM disk environment.
286
 
    </para>
287
 
  </refsect1>
288
 
 
289
279
  <refsect1 id="protocol">
290
280
    <title>NETWORK PROTOCOL</title>
291
281
    <para>
351
341
      are still up.  If a client has not been confirmed as being up
352
342
      for some time, the client is assumed to be compromised and is no
353
343
      longer eligible to receive the encrypted password.  The timeout,
354
 
      checker program, and interval between checks can be configured
 
344
      checker program and interval between checks can be configured
355
345
      both globally and per client; see <citerefentry>
356
346
      <refentrytitle>mandos.conf</refentrytitle>
357
347
      <manvolnum>5</manvolnum></citerefentry> and <citerefentry>
378
368
    </para>
379
369
  </refsect1>
380
370
 
381
 
  <refsect1 id="environment">
382
 
    <title>ENVIRONMENT</title>
383
 
    <variablelist>
384
 
      <varlistentry>
385
 
        <term><varname>PATH</varname></term>
386
 
        <listitem>
387
 
          <para>
388
 
            To start the configured checker (see <xref
389
 
            linkend="checking"/>), the server uses
390
 
            <filename>/bin/sh</filename>, which in turn uses
391
 
            <varname>PATH</varname> to search for matching commands if
392
 
            an absolute path is not given.  See <citerefentry>
393
 
            <refentrytitle>sh</refentrytitle><manvolnum>1</manvolnum>
394
 
          </citerefentry>
395
 
          </para>
396
 
        </listitem>
397
 
      </varlistentry>
398
 
    </variablelist>
399
 
  </refsect1>
400
 
 
401
371
  <refsect1 id="file">
402
372
    <title>FILES</title>
403
373
    <para>
444
414
          </para>
445
415
        </listitem>
446
416
      </varlistentry>
447
 
      <varlistentry>
448
 
        <term><filename>/bin/sh</filename></term>
449
 
        <listitem>
450
 
          <para>
451
 
            This is used to start the configured checker command for
452
 
            each client.  See <citerefentry>
453
 
            <refentrytitle>mandos-clients.conf</refentrytitle>
454
 
            <manvolnum>5</manvolnum></citerefentry> for details.
455
 
          </para>
456
 
        </listitem>
457
 
      </varlistentry>
458
417
    </variablelist>
459
418
  </refsect1>
460
 
  
 
419
 
461
420
  <refsect1 id="bugs">
462
421
    <title>BUGS</title>
463
422
    <para>
464
423
      This server might, on especially fatal errors, emit a Python
465
424
      backtrace.  This could be considered a feature.
466
425
    </para>
467
 
    <para>
468
 
      Currently, if a client is declared <quote>invalid</quote> due to
469
 
      having timed out, the server does not record this fact onto
470
 
      permanent storage.  This has some security implications, see
471
 
      <xref linkend="CLIENTS"/>.
472
 
    </para>
473
 
    <para>
474
 
      There is currently no way of querying the server of the current
475
 
      status of clients, other than analyzing its <systemitem
476
 
      class="service">syslog</systemitem> output.
477
 
    </para>
478
 
    <para>
479
 
      There is no fine-grained control over logging and debug output.
480
 
    </para>
481
 
    <para>
482
 
      Debug mode is conflated with running in the foreground.
483
 
    </para>
484
 
    <para>
485
 
      The console log messages does not show a timestamp.
486
 
    </para>
487
426
  </refsect1>
488
 
  
489
 
  <refsect1 id="example">
490
 
    <title>EXAMPLE</title>
 
427
 
 
428
  <refsect1 id="examples">
 
429
    <title>EXAMPLES</title>
491
430
    <informalexample>
492
431
      <para>
493
432
        Normal invocation needs no options:
498
437
    </informalexample>
499
438
    <informalexample>
500
439
      <para>
501
 
        Run the server in debug mode, read configuration files from
502
 
        the <filename>~/mandos</filename> directory, and use the
503
 
        Zeroconf service name <quote>Test</quote> to not collide with
504
 
        any other official Mandos server on this host:
 
440
        Run the server in debug mode and read configuration files from
 
441
        the <filename>~/mandos</filename> directory:
505
442
      </para>
506
443
      <para>
507
444
 
526
463
 
527
464
  <refsect1 id="security">
528
465
    <title>SECURITY</title>
529
 
    <refsect2 id="SERVER">
 
466
    <refsect2>
530
467
      <title>SERVER</title>
531
468
      <para>
532
 
        Running this <command>&COMMANDNAME;</command> server program
533
 
        should not in itself present any security risk to the host
534
 
        computer running it.  The program does not need any special
535
 
        privileges to run, and is designed to run as a non-root user.
 
469
        Running the server should not in itself present any security
 
470
        risk to the host computer running it.
536
471
      </para>
537
472
    </refsect2>
538
 
    <refsect2 id="CLIENTS">
 
473
    <refsect2>
539
474
      <title>CLIENTS</title>
540
475
      <para>
541
476
        The server only gives out its stored data to clients which
546
481
        itself and looks up the fingerprint in its list of
547
482
        clients. The <filename>clients.conf</filename> file (see
548
483
        <citerefentry><refentrytitle>mandos-clients.conf</refentrytitle>
549
 
        <manvolnum>5</manvolnum></citerefentry>)
550
 
        <emphasis>must</emphasis> be made non-readable by anyone
551
 
        except the user running the server.
552
 
      </para>
553
 
      <para>
554
 
        As detailed in <xref linkend="checking"/>, the status of all
555
 
        client computers will continually be checked and be assumed
556
 
        compromised if they are gone for too long.
557
 
      </para>
558
 
      <para>
559
 
        If a client is compromised, its downtime should be duly noted
560
 
        by the server which would therefore declare the client
561
 
        invalid.  But if the server was ever restarted, it would
562
 
        re-read its client list from its configuration file and again
563
 
        regard all clients therein as valid, and hence eligible to
564
 
        receive their passwords.  Therefore, be careful when
565
 
        restarting servers if it is suspected that a client has, in
566
 
        fact, been compromised by parties who may now be running a
567
 
        fake Mandos client with the keys from the non-encrypted
568
 
        initial RAM image of the client host.  What should be done in
569
 
        that case (if restarting the server program really is
570
 
        necessary) is to stop the server program, edit the
571
 
        configuration file to omit any suspect clients, and restart
572
 
        the server program.
 
484
        <manvolnum>5</manvolnum></citerefentry>) must be non-readable
 
485
        by anyone except the user running the server.
573
486
      </para>
574
487
      <para>
575
488
        For more details on client-side security, see
581
494
 
582
495
  <refsect1 id="see_also">
583
496
    <title>SEE ALSO</title>
584
 
    <variablelist>
585
 
      <varlistentry>
586
 
        <term>
587
 
          <citerefentry>
588
 
            <refentrytitle>password-request</refentrytitle>
589
 
            <manvolnum>8mandos</manvolnum>
590
 
          </citerefentry>
591
 
        </term>
592
 
        <listitem>
593
 
          <para>
594
 
            This is the actual program which talks to this server.
595
 
            Note that it is normally not invoked directly, and is only
596
 
            run in the initial RAM disk environment, and not on a
597
 
            fully started system.
598
 
          </para>
599
 
        </listitem>
600
 
      </varlistentry>
601
 
      <varlistentry>
602
 
        <term>
603
 
          <ulink url="http://www.zeroconf.org/">Zeroconf</ulink>
604
 
        </term>
605
 
        <listitem>
606
 
          <para>
607
 
            Zeroconf is the network protocol standard used by clients
608
 
            for finding this Mandos server on the local network.
609
 
          </para>
610
 
        </listitem>
611
 
      </varlistentry>
612
 
      <varlistentry>
613
 
        <term>
614
 
          <ulink url="http://www.avahi.org/">Avahi</ulink>
615
 
        </term>
616
 
      <listitem>
617
 
        <para>
618
 
          Avahi is the library this server calls to implement
619
 
          Zeroconf service announcements.
620
 
        </para>
621
 
      </listitem>
622
 
      </varlistentry>
623
 
      <varlistentry>
624
 
        <term>
625
 
          <ulink
626
 
              url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink>
627
 
        </term>
628
 
      <listitem>
629
 
        <para>
630
 
          GnuTLS is the library this server uses to implement TLS for
631
 
          communicating securely with the client, and at the same time
632
 
          confidently get the client’s public OpenPGP key.
633
 
        </para>
634
 
      </listitem>
635
 
      </varlistentry>
636
 
      <varlistentry>
637
 
        <term>
638
 
          <citation>RFC 4291: <citetitle>IP Version 6 Addressing
639
 
          Architecture</citetitle>, section 2.5.6, Link-Local IPv6
640
 
          Unicast Addresses</citation>
641
 
        </term>
642
 
        <listitem>
643
 
          <para>
644
 
            The clients use IPv6 link-local addresses, which are
645
 
            immediately usable since a link-local addresses is
646
 
            automatically assigned to a network interfaces when it is
647
 
            brought up.
648
 
          </para>
649
 
        </listitem>
650
 
      </varlistentry>
651
 
      <varlistentry>
652
 
        <term>
653
 
          <citation>RFC 4346: <citetitle>The Transport Layer Security
654
 
          (TLS) Protocol Version 1.1</citetitle></citation>
655
 
        </term>
656
 
      <listitem>
657
 
        <para>
658
 
          TLS 1.1 is the protocol implemented by GnuTLS.
659
 
        </para>
660
 
      </listitem>
661
 
      </varlistentry>
662
 
      <varlistentry>
663
 
        <term>
664
 
          <citation>RFC 4880: <citetitle>OpenPGP Message
665
 
          Format</citetitle></citation>
666
 
        </term>
667
 
      <listitem>
668
 
        <para>
669
 
          The data sent to clients is binary encrypted OpenPGP data.
670
 
        </para>
671
 
      </listitem>
672
 
      </varlistentry>
673
 
      <varlistentry>
674
 
        <term>
675
 
          <citation>RFC 5081: <citetitle>Using OpenPGP Keys for
676
 
          Transport Layer Security</citetitle></citation>
677
 
        </term>
678
 
      <listitem>
679
 
        <para>
680
 
          This is implemented by GnuTLS and used by this server so
681
 
          that OpenPGP keys can be used.
682
 
        </para>
683
 
      </listitem>
684
 
      </varlistentry>
685
 
    </variablelist>
 
497
    <itemizedlist spacing="compact">
 
498
      <listitem><para>
 
499
        <citerefentry><refentrytitle>password-request</refentrytitle>
 
500
        <manvolnum>8mandos</manvolnum></citerefentry>
 
501
      </para></listitem>
 
502
      
 
503
      <listitem><para>
 
504
        <citerefentry><refentrytitle>plugin-runner</refentrytitle>
 
505
        <manvolnum>8mandos</manvolnum></citerefentry>
 
506
      </para></listitem>
 
507
      
 
508
      <listitem><para>
 
509
        <ulink url="http://www.zeroconf.org/">Zeroconf</ulink>
 
510
      </para></listitem>
 
511
      
 
512
      <listitem><para>
 
513
        <ulink url="http://www.avahi.org/">Avahi</ulink>
 
514
      </para></listitem>
 
515
      
 
516
      <listitem><para>
 
517
        <ulink
 
518
            url="http://www.gnu.org/software/gnutls/">GnuTLS</ulink>
 
519
      </para></listitem>
 
520
      
 
521
      <listitem><para>
 
522
        <citation>RFC 4880: <citetitle>OpenPGP Message
 
523
        Format</citetitle></citation>
 
524
      </para></listitem>
 
525
      
 
526
      <listitem><para>
 
527
        <citation>RFC 5081: <citetitle>Using OpenPGP Keys for
 
528
        Transport Layer Security</citetitle></citation>
 
529
      </para></listitem>
 
530
      
 
531
      <listitem><para>
 
532
        <citation>RFC 4291: <citetitle>IP Version 6 Addressing
 
533
        Architecture</citetitle>, section 2.5.6, Link-Local IPv6
 
534
        Unicast Addresses</citation>
 
535
      </para></listitem>
 
536
    </itemizedlist>
686
537
  </refsect1>
687
538
</refentry>