Fixed some errors
[tinc] / doc / tinc.texi
1 \input texinfo   @c -*-texinfo-*-
2 @c $Id: tinc.texi,v 1.8.4.14 2001/01/18 13:00:57 zarq Exp $
3 @c %**start of header
4 @setfilename tinc.info
5 @settitle tinc Manual
6 @setchapternewpage odd
7 @c %**end of header
8
9 @ifinfo
10 @direntry
11 * tinc: (tinc).              The tinc Manual.
12 @end direntry
13
14 This is the info manual for tinc, a Virtual Private Network daemon.
15
16 Copyright @copyright{} 1998-2001 Ivo Timmermans
17 <itimmermans@@bigfoot.com>, Guus Sliepen <guus@@sliepen.warande.net> and
18 Wessel Dankers <wsl@@nl.linux.org>.
19
20 $Id: tinc.texi,v 1.8.4.14 2001/01/18 13:00:57 zarq Exp $
21
22 Permission is granted to make and distribute verbatim copies of this
23 manual provided the copyright notice and this permission notice are
24 preserved on all copies.
25
26 Permission is granted to copy and distribute modified versions of this
27 manual under the conditions for verbatim copying, provided that the
28 entire resulting derived work is distributed under the terms of a
29 permission notice identical to this one.
30
31 @end ifinfo
32
33 @titlepage
34 @title tinc Manual
35 @subtitle Setting up a Virtual Private Network with tinc
36 @author Ivo Timmermans and Guus Sliepen
37
38 @page
39 @vskip 0pt plus 1filll
40 @cindex copyright
41 Copyright @copyright{} 1998-2001 Ivo Timmermans
42 <itimmermans@@bigfoot.com>, Guus Sliepen <guus@@sliepen.warande.net> and
43 Wessel Dankers <wsl@@nl.linux.org>.
44
45 $Id: tinc.texi,v 1.8.4.14 2001/01/18 13:00:57 zarq Exp $
46
47 Permission is granted to make and distribute verbatim copies of this
48 manual provided the copyright notice and this permission notice are
49 preserved on all copies.
50
51 Permission is granted to copy and distribute modified versions of this
52 manual under the conditions for verbatim copying, provided that the
53 entire resulting derived work is distributed under the terms of a
54 permission notice identical to this one.
55
56 @end titlepage
57
58 @c ==================================================================
59 @node Top, Introduction, (dir), (dir)
60
61 @menu
62 * Introduction::                Introduction
63 * Installing tinc - preparations::  
64 * Installing tinc - installation::  
65 * Configuring tinc::            
66 * Running tinc::                
67 * Technical information::       
68 * About us::                    
69 * Concept Index::               All used terms explained
70 @end menu
71
72
73 @contents
74
75 @c ==================================================================
76 @node    Introduction, Installing tinc - preparations, Top, Top
77 @chapter Introduction
78
79 @cindex tinc
80 tinc is a Virtual Private Network (VPN) daemon that uses tunneling and
81 encryption to create a secure private network between hosts on the
82 Internet.
83
84 Because the tunnel appears to the IP level network code as a normal
85 network device, there is no need to adapt any existing software.
86
87 This tunneling allows VPN sites to share information with each other
88 over the Internet without exposing any information to others.
89
90 This document is the manual for tinc.  Included are chapters on how to
91 configure your computer to use tinc, as well as the configuration
92 process of tinc itself.
93
94 @menu
95 * VPNs::                        Virtual Private Networks in general
96 * tinc::                        about tinc
97 * Supported platforms::         
98 @end menu
99
100 @c ==================================================================
101 @node    VPNs, tinc, Introduction, Introduction
102 @section Virtual Private Networks
103
104 @cindex VPN
105 A Virtual Private Network or VPN is a network that can only be accessed
106 by a few elected computers that participate.  This goal is achievable in
107 more than just one way.
108
109 @cindex private
110 Private networks can consist of a single stand-alone ethernet LAN.  Or
111 even two computers hooked up using a null-modem cable.  In these cases,
112 it is
113 obvious that the network is @emph{private}, no one can access it from the
114 outside.  But if your computers are linked to the internet, the network
115 is not private anymore, unless one uses firewalls to block all private
116 traffic.  But then, there is no way to send private data to trusted
117 computers on the other end of the internet.
118
119 @cindex virtual
120 This problem can be solved by using @emph{virtual} networks.  Virtual
121 networks can live on top of other networks, but they use encapsulation to
122 keep using their private address space so they do not interfere with
123 each other.  Mostly, virtual networks appear like a singe LAN, even though
124 they can span the entire world.  But virtual networks can't be secured
125 by using firewalls, because the traffic that flows through it has to go
126 through the internet, where other people can look at it.
127
128 When one introduces encryption, we can form a true VPN.  Other people may
129 see encrypted traffic, but if they don't know how to decipher it (they
130 need to know the key for that), they cannot read the information that flows
131 through the VPN.  This is what tinc was made for.
132
133 @cindex virtual
134 tinc uses normal IP datagrams to encapsulate data that goes over the VPN
135 network link.  In this case it's also clear that the network is
136 @emph{virtual}, because no direct network link has to exist between to
137 participants.
138
139 As is the case with either type of VPN, anybody could eavesdrop.  Or
140 worse, alter data.  Hence it's probably advisable to encrypt the data
141 that flows over the network.
142
143
144 @c ==================================================================
145 @node    tinc, Supported platforms, VPNs, Introduction
146 @section tinc
147
148 @cindex vpnd
149 @cindex ethertap
150 I really don't quite remember what got us started, but it must have been
151 Guus' idea.  He wrote a simple implementation (about 50 lines of C) that
152 used the @emph{ethertap} device that Linux knows of since somewhere
153 about kernel 2.1.60.  It didn't work immediately and he improved it a
154 bit.  At this stage, the project was still simply called @samp{vpnd}.
155
156 Since then, a lot has changed---to say the least.
157
158 @cindex tincd
159 tinc now supports encryption, it consists of a single daemon (tincd) for
160 both the receiving and sending end, it has become largely
161 runtime-configurable---in short, it has become a full-fledged
162 professional package.
163
164 A lot can---and will be---changed. We have a number of things that we would like to
165 see in the future releases of tinc.  Not everything will be available in
166 the near future.  Our first objective is to make tinc work perfectly as
167 it stands, and then add more advanced features.
168
169 Meanwhile, we're always open-minded towards new ideas.  And we're
170 available too.
171
172
173 @c ==================================================================
174 @node    Supported platforms,  , tinc, Introduction
175 @section Supported platforms
176
177 tinc has been verified to work under Linux, FreeBSD and Solaris, with
178 various hardware architectures.  These are the three platforms
179 that are supported by the universial TUN/TAP device driver, so if
180 support for other operating systems is added to this driver, perhaps
181 tinc will run on them as well.  Without this driver, tinc will most
182 likely compile and run, but it will not be able to send or receive data
183 packets.
184
185 For an up to date list of supported platforms, please check the list on
186 our website:
187 @uref{http://tinc.nl.linux.org/platforms.html}.
188
189
190 @c ==================================================================
191 @subsection Linux
192
193 tinc was first written for Linux running on an intel x86 processor, so
194 this is the best supported platform.  The protocol however, and actually
195 anything about tinc, has been rewritten to support random byte ordering
196 and arbitrary word length.  So in theory it should run on other
197 processors that Linux runs on.  It has already been verified to run on
198 alpha and sparc processors as well.
199
200 tinc uses the ethertap device that is provided in the standard kernel
201 since version 2.1.60, so anything above that (2.2.x, 2.3.x, and 2.4.0)
202 kernel version is able to support tinc.
203
204
205 @c ==================================================================
206 @subsection FreeBSD
207
208 tinc on FreeBSD relies on the universial TUN/TAP driver for its data
209 acquisition from the kernel.  Therefore, tinc suports the same platforms
210 as this driver.  These are: FreeBSD 3.x, 4.x, 5.x.
211
212
213 @c ==================================================================
214 @subsection Solaris
215
216 tinc on Solaris relies on the universial TUN/TAP driver for its data
217 acquisition from the kernel.  Therefore, tinc suports the same platforms
218 as this driver.  These are: Solaris, 2.1.x.
219
220
221 @c
222 @c
223 @c
224 @c
225 @c
226 @c
227 @c       Preparing your system
228 @c
229 @c
230 @c
231 @c
232 @c
233
234 @c ==================================================================
235 @node    Installing tinc - preparations, Installing tinc - installation, Introduction, Top
236 @chapter Installing tinc: preparations
237
238 This chapter contains information on how to prepare your system to
239 support tinc.
240
241 @menu
242 * Configuring the kernel::      
243 * Libraries::                   
244 @end menu
245
246
247 @c ==================================================================
248 @node    Configuring the kernel, Libraries, Installing tinc - preparations, Installing tinc - preparations
249 @section Configuring the kernel
250
251 If you are running Linux, chances are good that your kernel already
252 supports all the devices that tinc needs for proper operation.  For
253 example, the standard kernel from Redhat Linux already has support for
254 ethertap and netlink compiled in.  Debian users can use the modconf
255 utility to select the modules.  If your Linux distribution supports this
256 method of selecting devices, look out for something called `ethertap',
257 and `netlink_dev'.  You need both these devices.
258
259 If you can install these devices in a similar manner, you may skip this
260 section.
261
262 @menu
263 * Configuration of the Linux kernel::  
264 * Configuration of the FreeBSD kernel::  
265 * Configuration of the Solaris kernel::  
266 @end menu
267
268
269 @c ==================================================================
270 @node       Configuration of the Linux kernel, Configuration of the FreeBSD kernel, Configuring the kernel, Configuring the kernel
271 @subsection Configuring the Linux kernel
272
273 Since this particular implementation only runs on 2.1 or higher Linux
274 kernels, you should grab one (2.2 is current at this time).  A 2.0 port
275 is not really possible, unless someone tells me someone ported the
276 ethertap and netlink devices back to 2.0.
277
278 If you are unfamiliar with the process of configuring and compiling a
279 new kernel, you should read the
280 @uref{http://howto.linuxberg.com/LDP/HOWTO/Kernel-HOWTO.html, Kernel
281 HOWTO} first.  Do that now!
282
283 Here are the options you have to turn on when configuring a new
284 kernel.
285
286 For kernel 2.2.x:
287
288 @example
289 Code maturity level options
290 [*] Prompt for development and/or incomplete code/drivers
291 Networking options
292 [*] Kernel/User netlink socket
293 <*> Netlink device emulation
294 Network device support
295 <*> Ethertap network tap
296 @end example
297
298 Note that if you want to run more than one instance of tinc or other
299 programs that use the ethertap, you have to compile the ethertap driver
300 as a module.
301
302 For kernel 2.3.x and 2.4.x:
303
304 @example
305 Code maturity level options
306 [*] Prompt for development and/or incomplete code/drivers
307 Networking options
308 [*] Kernel/User netlink socket
309 <*> Netlink device emulation
310 Network device support
311 <*> Universal TUN/TAP device driver support
312 @end example
313
314
315 Any other options not mentioned here are not relevant to tinc.  If you
316 decide to build any of these as dynamic kernel modules, it's a good idea
317 to add these lines to @file{/etc/modules.conf}.
318
319 @example
320 alias tap0 ethertap
321 alias char-major-36 netlink_dev
322 @end example
323
324 If you have a 2.4-pre kernel, you can choose both the TUN/TAP driver and
325 the `Ethertap network tap' device.  This latter is marked obsolete,
326 because the universal TUN/TAP driver is a newer implementation that is
327 supposed to be used in favour of ethertap.  For tinc, it doesn't really
328 matter which one you choose; based on the device file name, tinc will make
329 the right choice about what protocol to use. However, chances are that
330 although you can choose the obsolote ethertap driver, it will not function
331 at all. The TUN/TAP driver is the safe choice.
332
333 Finally, after having set up other options, build the kernel and boot
334 it.  Unfortunately it's not possible to insert these modules in a
335 running kernel.
336
337
338 @c ==================================================================
339 @node       Configuration of the FreeBSD kernel, Configuration of the Solaris kernel, Configuration of the Linux kernel, Configuring the kernel
340 @subsection Configuring the FreeBSD kernel
341
342 This section will contain information on how to configure your FreeBSD
343 kernel to support the universal TUN/TAP device.  For 5.0 and 4.1
344 systems, this is included in the kernel configuration, for earlier
345 systems (4.0 and 3.x), you need to install the universal TUN/TAP driver
346 yourself.
347
348 Unfortunately somebody still has to write the text.
349
350
351 @c ==================================================================
352 @node       Configuration of the Solaris kernel,  , Configuration of the FreeBSD kernel, Configuring the kernel
353 @subsection Configuring the Solaris kernel
354
355 This section will contain information on how to configure your Solaris
356 kernel to support the universal TUN/TAP device.  You need to install
357 this driver yourself.
358
359 Unfortunately somebody still has to write the text.
360
361
362 @c ==================================================================
363 @node    Libraries,  , Configuring the kernel, Installing tinc - preparations
364 @section Libraries
365
366 @cindex requirements
367 Before you can configure or build tinc, you need to have the OpenSSL
368 library installed on your system.  If you try to configure tinc without
369 having installed it, configure will give you an error message, and stop.
370
371 @menu
372 * OpenSSL::                     
373 @end menu
374
375
376 @c ==================================================================
377 @node       OpenSSL,  , Libraries, Libraries
378 @subsection OpenSSL
379
380 @cindex OpenSSL
381 For all cryptography-related functions, tinc uses the functions provided
382 by the OpenSSL library.  We recommend using version 0.9.5 or 0.9.6 of
383 this library.  Other versions may also work, but we can guarantee
384 nothing.
385
386 If this library is not installed, you wil get an error when configuring
387 tinc for build.  Support for running tinc without having OpenSSL
388 installed @emph{may} be added in the future.
389
390 You can use your operating system's package manager to install this if
391 available.  Make sure you install the development AND runtime versions
392 of this package.
393
394 If you have to install OpenSSL manually, you can get the source code
395 from @url{http://www.openssl.org/}.  Instructions on how to configure,
396 build and install this package are included within the package.  Please
397 make sure you build development and runtime libraries (which is the
398 default).
399
400 If you installed the OpenSSL libraries from source, it may be necessary
401 to let configure know where they are, by passing configure one of the
402 --with-openssl-* parameters.
403
404 @example
405 --with-openssl=DIR      OpenSSL library and headers prefix
406 --with-openssl-include=DIR OpenSSL headers directory
407                         (Default is OPENSSL_DIR/include)
408 --with-openssl-lib=DIR  OpenSSL library directory
409                         (Default is OPENSSL_DIR/lib)
410 @end example
411
412
413 @subsubheading License
414
415 Since the license under which OpenSSL is distributed is not directly
416 compatible with the terms of the GNU GPL
417 @uref{http://www.openssl.org/support/faq.html#LEGAL2}, therefore we
418 include an addition to the GPL (see also the file COPYING.README):
419
420 @quotation
421 This program is released under the GPL with the additional exemption
422 that compiling, linking, and/or using OpenSSL is allowed.  You may
423 provide binary packages linked to the OpenSSL libraries, provided that
424 all other requirements of the GPL are met.
425 @end quotation
426
427
428 @c
429 @c
430 @c
431 @c      Installing tinc
432 @c
433 @c
434 @c
435 @c
436
437 @c ==================================================================
438 @node    Installing tinc - installation, Configuring tinc, Installing tinc - preparations, Top
439 @chapter Installing tinc: installation
440
441 If you use Redhat or Debian, you may want to install one of the
442 precompiled packages for your system.  These packages are equipped with
443 system startup scripts and sample configurations.
444
445 If you don't run either of these systems, or you want to compile tinc
446 for yourself, you can use the source.  The source is distributed under
447 the GNU General Public License (GPL).  Download the source from the
448 @uref{http://tinc.nl.linux.org/download.html, download page}, which has
449 the checksums of these files listed; you may wish to check these with
450 md5sum before continuing.
451
452 tinc comes in a convenient autoconf/automake package, which you can just
453 treat the same as any other package.  Which is just untar it, type
454 `configure' and then `make'.
455
456 More detailed instructions are in the file @file{INSTALL}, which is
457 included in the source distribution.
458
459 @menu
460 * Building tinc::               
461 * System files::                
462 * Interfaces::                  
463 @end menu
464
465
466 @c ==================================================================
467 @node    Building tinc, System files, Installing tinc - installation, Installing tinc - installation
468 @section Building tinc
469
470 Detailed instructions on configuring the source and building tinc can be
471 found in the file called @file{INSTALL}.
472
473
474 @c ==================================================================
475 @node    System files, Interfaces, Building tinc, Installing tinc - installation
476 @section System files
477
478 Before you can run tinc, you must make sure you have all the needed
479 files on your system.
480
481 @menu
482 * Device files::                
483 * Other files::                 
484 @end menu
485
486
487 @c ==================================================================
488 @node       Device files, Other files, System files, System files
489 @subsection Device files
490
491 First, you'll need the special device file(s) that form the interface
492 between the kernel and the daemon.
493
494 The permissions for these files have to be such that only the super user
495 may read/write to this file.  You'd want this, because otherwise
496 eavesdropping would become a bit too easy.  This does, however, imply
497 that you'd have to run tincd as root.
498
499 If you use the universal TUN/TAP driver, you have to create the
500 following device files (unless they already exist):
501
502 @example
503 mknod -m 600 /dev/... c .. ..
504 chown 0.0 /dev/...
505 @end example
506
507 If you want to have more devices, the device numbers will be .. .. ...
508
509 If you use Linux, and you run the new 2.4 kernel using the devfs
510 filesystem, then the tap device will be automatically generated as
511 @file{/dev/netlink/tap0}.
512
513 If you use Linux and have kernel 2.2.x, you have to make the ethertap
514 devices:
515
516 @example
517 mknod -m 600 /dev/tap0 c 36 16
518 chown 0.0 /dev/tap0
519 @end example
520
521 Any further ethertap devices have minor device number 16 through 31.
522
523
524 @c ==================================================================
525 @node       Other files,  , Device files, System files
526 @subsection Other files
527
528 @subsubheading @file{/etc/networks}
529
530 You may add a line to @file{/etc/networks} so that your VPN will get a
531 symbolic name.  For example:
532
533 @example
534 myvpn 10.0.0.0
535 @end example
536
537 This has nothing to do with the MyVPNIP configuration variable that will be
538 discussed later, it is only to make the output of the route command more
539 legible.
540
541 @subsubheading @file{/etc/services}
542
543 You may add this line to @file{/etc/services}.  The effect is that you
544 may supply a @samp{tinc} as a valid port number to some programs.  The
545 number 655 is registered with the IANA.
546
547 @example
548 tinc            655/tcp    TINC
549 tinc            655/udp    TINC
550 #                          Ivo Timmermans <itimmermans@@bigfoot.com>
551 @end example
552
553
554 @c ==================================================================
555 @node    Interfaces,  , System files, Installing tinc - installation
556 @section Interfaces
557
558 Before you can start transmitting data over the tinc tunnel, you must
559 set up the ethertap network devices.
560
561 First, decide which IP addresses you want to have associated with these
562 devices, and what network mask they must have.  You also need these
563 numbers when you are going to configure tinc itself.  @xref{Configuring
564 tinc}.
565
566 It doesn't matter much which part you do first, setting up the network
567 devices or configure tinc.  But they both have to be done before you try
568 to start a tincd.
569
570 The actual setup of the ethertap device is quite simple, just repeat
571 after me:
572
573 @example
574 ifconfig tap@emph{n} hw ether fe:fd:00:00:00:00
575 @end example
576
577 @cindex MAC address
578 @cindex hardware address
579 @strong{Note:} Since version 1.0pre3, all interface addresses are set to
580 this address, whereas previous versions required the MAC to match the
581 actual IP address.
582
583 @cindex ifconfig
584 To activate the device, you have to assign an IP address to it.  To set
585 an IP address @emph{IP} with network mask @emph{mask}, do the following:
586
587 @example
588 ifconfig tap@emph{n} @emph{xx}.@emph{xx}.@emph{xx}.@emph{xx} netmask @emph{mask}
589 @end example
590
591 @cindex netmask
592 The netmask is the mask of the @emph{entire} VPN network, not just your
593 own subnet.  It is the same netmask you will have to specify with the
594 VpnMask configuration variable.
595
596
597 @c
598 @c
599 @c
600 @c
601 @c         Configuring tinc
602 @c
603 @c
604 @c
605 @c
606
607
608 @c ==================================================================
609 @node    Configuring tinc, Running tinc, Installing tinc - installation, Top
610 @chapter Configuring tinc
611
612 @menu
613 * Multiple networks::           
614 * How connections work::        
615 * Configuration file::          
616 * Example::                     
617 @end menu
618
619 @c ==================================================================
620 @node    Multiple networks, How connections work, Configuring tinc, Configuring tinc
621 @section Multiple networks
622
623 @c from the manpage
624
625 It is perfectly OK for you to run more than one tinc daemon.
626 However, in its default form, you will soon notice that you can't use
627 two different configuration files without the -c option.
628
629 We have thought of another way of dealing with this: network names.  This
630 means that you call tincd with the -n argument, which will assign a name
631 to this daemon.
632
633 The effect of this is that the daemon will set its configuration
634 ``root'' to /etc/tinc/nn/, where nn is your argument to the -n
635 option.  You'll notice that it appears in syslog as ``tinc.nn''.
636
637 However, it is not strictly necessary that you call tinc with the -n
638 option.  In this case, the network name would just be empty, and it will
639 be used as such.  tinc now looks for files in /etc/tinc/, instead of
640 /etc/tinc/nn/; the configuration file should be /etc/tinc/tinc.conf,
641 and the passphrases are now expected to be in /etc/tinc/passphrases/.
642
643 But it is highly recommended that you use this feature of tinc, because
644 it will be so much clearer whom your daemon talks to.  Hence, we will
645 assume that you use it.
646
647
648 @c ==================================================================
649 @node    How connections work, Configuration file, Multiple networks, Configuring tinc
650 @section How connections work
651
652 Before going on, first a bit on how tinc sees connections.
653
654 When tinc starts up, it reads in the configuration file and parses the
655 command-line options.  If it sees a `ConnectTo' value in the file, it
656 will try to connect to it, on the given port.  If this fails, tinc exits.
657
658
659 @c ==================================================================
660 @node    Configuration file, Example, How connections work, Configuring tinc
661 @section Configuration file
662
663 The actual configuration of the daemon is done in the file
664 @file{/etc/tinc/nn/tinc.conf}.
665
666 This file consists of comments (lines started with a #) or assignments
667 in the form of
668
669 @example
670 Variable = Value.
671 @end example
672
673 The variable names are case insensitive, and any spaces, tabs, newlines
674 and carriage returns are ignored.  Note: it is not required that you put
675 in the `=' sign, but doing so improves readability.  If you leave it
676 out, remember to replace it with at least one space character.
677
678 In this section all valid variables are listed in alphabetical order.
679 The default value is given between parentheses; required directives are
680 given in @strong{bold}.
681
682 @menu
683 * Main configuration variables::  
684 * Host configuration variables::  
685 * How to configure::            
686 @end menu
687
688
689 @c ==================================================================
690 @node    Main configuration variables, Host configuration variables, Configuration file, Configuration file
691 @subsection Main configuration variables
692
693 @table @asis
694 @item @strong{ConnectTo = <name>}
695 Specifies which host to connect to on startup.  Multiple ConnectTo
696 variables may be specified, if connecting to the first one fails then
697 tinc will try the next one, and so on.  It is possible to specify
698 hostnames for dynamic IP addresses (like those given on dyndns.org),
699 tinc will not cache the resolved IP address.
700
701 If you don't specify a host with ConnectTo, regardless of whether a
702 value for ConnectPort is given, tinc won't connect at all, and will
703 instead just listen for incoming connections.
704
705 @item Hostnames = <yes|no> (no)
706 This option selects whether IP addresses (both real and on the VPN)
707 should be resolved.  Since DNS lookups are blocking, it might affect
708 tinc's efficiency, even stopping the daemon for a few seconds everytime
709 it does a lookup if your DNS server is not responding.
710
711 This does not affect resolving hostnames to IP addresses from the
712 configuration file.
713
714 @item Interface = <device>
715 If you have more than one network interface in your computer, tinc will
716 by default listen on all of them for incoming connections.  It is
717 possible to bind tinc to a single interface like eth0 or ppp0 with this
718 variable.
719
720 @item InterfaceIP = <local address>
721 If your computer has more than one IP address on a single interface (for
722 example if you are running virtual hosts), tinc will by default listen
723 on all of them for incoming connections.  It is possible to bind tinc to
724 a single IP address with this variable.  It is still possible to listen
725 on several interfaces at the same time though, if they share the same IP
726 address.
727
728 @item KeyExpire = <seconds> (3600)
729 This option controls the time the encryption keys used to encrypt the data
730 are valid.  It is common practice to change keys at regular intervals to
731 make it even harder for crackers, even though it is thought to be nearly
732 impossible to crack a single key.
733
734 @item ListenPort = <port> (655)
735 Listen on local port port.  The computer connecting to this daemon should
736 use this number as the argument for his ConnectPort.
737
738 @item MyOwnVPNIP = <local address[/maskbits]> (required)
739 The local address is the number that the daemon will propagate to
740 other daemons on the network when it is identifying itself.  Hence this
741 will be the file name of the passphrase file that the other end expects
742 to find the passphrase in.
743
744 The local address is the IP address of the tap device, not the real IP
745 address of the host running tincd.  Due to changes in recent kernels, it
746 is also necessary that you make the ethernet (also known as MAC) address
747 equal to the IP address (see the example).
748
749 maskbits is the number of bits set to 1 in the netmask part.
750
751 @item MyVirtualIP = <local address[/maskbits]>
752 This is an alias for MyOwnVPNIP.
753
754 @item @strong{Name = <name>}
755 This is a symbolic name for this connection.  It can be anything 
756
757 @item PingTimeout = <seconds> (5)
758 The number of seconds of inactivity that tinc will wait before sending a
759 probe to the other end.  If that other end doesn't answer within that
760 same amount of seconds, the connection is terminated, and the others
761 will be notified of this.
762
763 @item @strong{PrivateKey = <key>}
764 This is the RSA private key for tinc. However, for safety reasons it is
765 advised to store private keys of any kind in separate files. This prevents
766 accidental eavesdropping if you are editting the configuration file.
767
768 @item PrivateKeyFile = <path>
769 This is the full path name of the RSA private key file that was
770 generated by ``tincd --generate-keys''.  It must be a full path, not a
771 relative directory.
772
773 @item PublicKey = <key>
774 This is the full path name of the RSA public key file that was generated
775 by ``tincd --generate-keys''.  It must be a full path, not a relative
776 directory.  (NOTE: In version 1.0pre3, this variable was used to give
777 the key inline.  This is no longer supported.)
778
779 @item Subnet = <IP address/maskbits>
780 This is the subnet range of all IP addresses that will be accepted by
781 the host that defines it.  Please be careful that no two subnets
782 overlap.  Every host @strong{must} have a different range of IP
783 addresses that it can handle, otherwise you will see messages like
784 `packet comes back to us'.
785
786 @item TapDevice = <device> (/dev/tap0)
787 The ethertap device to use.  Note that you can only use one device per
788 daemon.  The info pages of the tinc package contain more information
789 about configuring an ethertap device for Linux.
790
791 @item TCPonly = <yes|no> (no, experimental)
792 If this variable is set to yes, then the packets are tunnelled over a TCP
793 connection instead of a UDP connection.  This is especially useful for those
794 who want to run a tinc daemon from behind a masquerading firewall, or if
795 UDP packet routing is disabled somehow.  This is experimental code,
796 try this at your own risk.
797
798 @item VpnMask = <mask> (optional)
799 The mask that defines the scope of the entire VPN.  This option is not used
800 by the tinc daemon itself, but can be used by startup scripts to configure
801 the ethertap devices correctly.
802 @end table
803
804
805 @c ==================================================================
806 @node    Host configuration variables, How to configure, Main configuration variables, Configuration file
807 @subsection Host configuration variables
808
809 @table @asis
810 @item @strong{Address = <IP address|hostname>}
811 This variable is only required if you want to connect to this host.  It
812 must resolve to the external IP address where the host can be reached,
813 not the one that is internal to the VPN.
814
815 @item IndirectData = <yes|no> (no)
816 This option specifies whether other tinc daemons besides the one you
817 specified with ConnectTo can make a direct connection to you.  This is
818 especially useful if you are behind a firewall and it is impossible to
819 make a connection from the outside to your tinc daemon.  Otherwise, it
820 is best to leave this option out or set it to no.
821
822 @item Port = <port> (655)
823 Connect to the upstream host (given with the ConnectTo directive) on
824 port port.  port may be given in decimal (default), octal (when preceded
825 by a single zero) o hexadecimal (prefixed with 0x).  port is the port
826 number for both the UDP and the TCP (meta) connections.
827
828 @item PublicKey = <key>
829 This is the RSA public key for this host.
830
831 @item PublicKeyFile = <path>
832 This is the full path name of the RSA public key file that was generated
833 by ``tincd --generate-keys''.  It must be a full path, not a relative
834 directory.
835
836 Note that exactly @strong{one of the above two options} must be specified
837 in each host configuration file, if you want to be able to establish a
838 connection with that host.
839
840 @item Subnet = <IP address/maskbits>
841 This is the subnet range of all IP addresses that will be accepted by
842 the host that defines it.
843
844 The range must be contained in the IP address range of the tap device,
845 not the real IP address of the host running tincd.
846
847 maskbits is the number of bits set to 1 in the netmask part; for
848 example: netmask 255.255.255.0 would become /24, 255.255.252.0 becomes
849 /22. This conforms to standard CIDR notation as described in
850 @uref{ftp://ftp.isi.edu/in-notes/rfc1519.txt, RFC1519}
851
852 @item TCPonly = <yes|no> (no)
853 If this variable is set to yes, then the packets are tunnelled over a
854 TCP connection instead of a UDP connection.  This is especially useful
855 for those who want to run a tinc daemon from behind a masquerading
856 firewall, or if UDP packet routing is disabled somehow.  @emph{This is
857 experimental code, try this at your own risk. It may not work at all.}
858 @end table
859
860
861 @c ==================================================================
862 @node    How to configure,  , Host configuration variables, Configuration file
863 @subsection How to configure
864
865 @subsubheading Step 1.  Creating the key files
866
867 For each host, you have to create a pair of RSA keys.  One key is your
868 private key, which is only known to you.  The other one is the public
869 key, which you should copy to all hosts wanting to authenticate to you.
870
871
872 @subsubheading Step 2.  Configuring each host
873
874 For every host in the VPN, you have to create two files.  First there is
875 the main configuration file, @file{/etc/tinc/vpn-name/tinc.conf}.  In
876 this file there should at least be three directives:
877
878 @table @samp
879 @item Name
880 You should fill in the name of this host (or rather, the name of this
881 leaf of the VPN).  It can be called after the hostname, the physical
882 location, the department, or the name of one of your boss' pets.  It can
883 be anything, as long as all these names are unique across the entire
884 VPN.
885
886 @item PrivateKey
887 Fill in the full pathname to the file that contains the private RSA key.
888
889 @item ConnectTo
890 This is the name of the host that you want to connect to (not a DNS
891 name, rather the name that is given with the Name parameter in that
892 hosts tinc.conf).  This is the upstream connection.  If your computer is
893 a central node, you might want to leave this out to make it stay idle
894 until someone connects to it.
895 @end table
896
897 @cindex host configuration file
898 Then you should create a file with the name you gave yourself in
899 tinc.conf (the `Name' parameter), located in
900 @file{/etc/tinc/vpn-name/hosts/}.  In this file, which we call the
901 `@emph{host configuration file}', only one variable is required:
902
903 @table @samp
904 @item Subnet
905 The IP range that this host accepts as being `local'.  All packets with
906 a destination address that is within this subnet will be sent to us.
907 @end table
908
909
910 @subsubheading Step 3.  Bringing it all together
911
912 Now for all hosts that you want to create a direct connection to, -- you
913 connect to them or they connect to you -- you get a copy of their host
914 configuration file and their public RSA key.
915
916 For each host configuration file, you add two variables:
917
918 @table @samp
919 @item Address
920 Enter the IP address or DNS hostname for this host.  This is only needed
921 if you connect to this host.
922
923 @item PublicKey
924 Put the full pathname to this hosts public RSA key here.
925 @end table
926
927 When you did this, you should be ready to create your first connection.
928 Pay attention to the system log, most errors will only be visible
929 there.  If you get an error, you can check @ref{Error messages}.
930
931
932 @c ==================================================================
933 @node    Example,  , Configuration file, Configuring tinc
934 @section Example
935
936
937 @cindex example
938 Imagine the following situation.  An A-based company wants to connect
939 three branch offices in B, C and D using the internet.  All four offices
940 have a 24/7 connection to the internet.
941
942 A is going to serve as the center of the network.  B and C will connect
943 to A, and D will connect to C.  Each office will be assigned their own IP
944 network, 10.x.0.0.
945
946 @example
947 A: net 10.1.0.0 mask 255.255.0.0 gateway 10.1.54.1 internet IP 1.2.3.4
948 B: net 10.2.0.0 mask 255.255.0.0 gateway 10.2.1.12 internet IP 2.3.4.5
949 C: net 10.3.0.0 mask 255.255.0.0 gateway 10.3.69.254 internet IP 3.4.5.6
950 D: net 10.4.0.0 mask 255.255.0.0 gateway 10.4.3.32 internet IP 4.5.6.7
951 @end example
952
953 ``gateway'' is the VPN IP address of the machine that is running the
954 tincd.  ``internet IP'' is the IP address of the firewall, which does not
955 need to run tincd, but it must do a port forwarding of TCP&UDP on port
956 655 (unless otherwise configured).
957
958 In this example, it is assumed that eth0 is the interface that points to
959 the inner (physical) LAN of the office, although this could also be the
960 same as the interface that leads to the internet.  The configuration of
961 the real interface is also shown as a comment, to give you an idea of
962 how these example host is set up.
963
964 @subsubheading For A
965
966 @emph{A} would be configured like this:
967
968 @example
969 #ifconfig eth0 10.1.54.1 netmask 255.255.0.0 broadcast 10.1.255.255
970 ifconfig tap0 hw ether fe:fd:00:00:00:00
971 ifconfig tap0 10.1.54.1 netmask 255.0.0.0
972 @end example
973
974 and in /etc/tinc/tinc.conf:
975
976 @example
977 Name = A
978 PrivateKey = /etc/tinc/A.priv
979 VpnMask = 255.0.0.0
980 @end example
981
982 On all hosts, /etc/tinc/hosts/A contains:
983
984 @example
985 Subnet = 10.1.0.0/16
986 Address = 1.2.3.4
987 PublicKey = /etc/tinc/hosts/A.pub
988 @end example
989
990
991 @subsubheading For B
992
993 @example
994 #ifconfig eth0 10.2.43.8 netmask 255.255.0.0 broadcast 10.2.255.255
995 ifconfig tap0 hw ether fe:fd:00:00:00:00
996 ifconfig tap0 10.2.1.12 netmask 255.0.0.0
997 @end example
998
999 and in /etc/tinc/tinc.conf:
1000
1001 @example
1002 Name = B
1003 ConnectTo = A
1004 PrivateKey = /etc/tinc/B.priv
1005 VpnMask = 255.0.0.0
1006 @end example
1007
1008 Note here that the internal address (on eth0) doesn't have to be the
1009 same as on the tap0 device.  Also, ConnectTo is given so that no-one can
1010 connect to this node.
1011
1012 On all hosts, /etc/tinc/hosts/B:
1013
1014 @example
1015 Subnet = 10.2.0.0/16
1016 Address = 2.3.4.5
1017 PublicKey = /etc/tinc/hosts/B.pub
1018 @end example
1019
1020
1021 @subsubheading For C
1022
1023 @example
1024 #ifconfig eth0 10.3.69.254 netmask 255.255.0.0 broadcast 10.3.255.255
1025 ifconfig tap0 hw ether fe:fd:00:00:00:00
1026 ifconfig tap0 10.3.69.254 netmask 255.0.0.0
1027 @end example
1028
1029 and in /etc/tinc/A/tinc.conf:
1030
1031 @example
1032 Name = C
1033 ConnectTo = A
1034 TapDevice = /dev/tap1
1035 VpnMask = 255.0.0.0
1036 @end example
1037
1038 C already has another daemon that runs on port 655, so they have to
1039 reserve another port for tinc.  It can connect to other tinc daemons on
1040 the regular port though, so no ConnectPort variable is needed.  They
1041 also use the netname to distinguish between the two.  tinc is started
1042 with `tincd -n A'.
1043
1044 On all hosts, /etc/tinc/hosts/C:
1045
1046 @example
1047 Subnet = 10.3.0.0/16
1048 Port = 2000
1049 PublicKey = /etc/tinc/hosts/C.pub
1050 @end example
1051
1052
1053 @subsubheading For D
1054
1055 @example
1056 #ifconfig tap0 10.4.3.32 netmask 255.255.0.0 broadcast 10.4.255.255
1057 ifconfig tap0 hw ether fe:fd:0a:04:03:20
1058 ifconfig tap0 10.4.3.32 netmask 255.0.0.0
1059 @end example
1060
1061 and in /etc/tinc/tinc.conf:
1062
1063 @example
1064 MyVirtualIP = 10.4.3.32/16
1065 ConnectTo = 3.4.5.6
1066 ConnectPort = 2000
1067 VpnMask=255.0.0.0
1068 @end example
1069
1070 D will be connecting to C, which has a tincd running for this network on
1071 port 2000.  Hence they need to put in a ConnectPort, but it doesn't need
1072 to have a different ListenPort.
1073
1074 @subsubheading Key files
1075
1076 A, B, C and D all have generate a public key with tincd -K, the output is
1077 stored in /etc/tinc/hosts/X.pub (where X is A, B or D), except for C,
1078 who stored it in /etc/tinc/A/hosts/C.pub.
1079
1080 A stores a copy of B's public key in /etc/tinc/hosts/B.pub
1081
1082 A stores a copy of C's public key in /etc/tinc/hosts/C.pub
1083
1084 B stores a copy of A's public key in /etc/tinc/hosts/A.pub
1085
1086 C stores a copy of A's public key in /etc/tinc/A/hosts/A.pub
1087
1088 C stores a copy of D's public key in /etc/tinc/A/hosts/D.pub
1089
1090 D stores a copy of C's public key in /etc/tinc/hosts/C.pub
1091
1092 @subsubheading Starting
1093
1094 A has to start their tincd first.  Then come B and C, where C has to
1095 provide the option `-n A', because they have more than one tinc
1096 network.  Finally, D's tincd is started.
1097
1098
1099
1100 @c ==================================================================
1101 @node    Running tinc, Technical information, Configuring tinc, Top
1102 @chapter Running tinc
1103
1104 Running tinc isn't just as easy as typing `tincd' and hoping everything
1105 will just work out the way you wanted.  Instead, the use of tinc is a
1106 project that involves trust relations and more than one computer.
1107
1108 @menu
1109 * Managing keys::               
1110 * Runtime options::             
1111 * Error messages::              
1112 @end menu
1113
1114
1115 @c ==================================================================
1116 @node    Managing keys, Runtime options, Running tinc, Running tinc
1117 @section Managing keys
1118
1119 Before attempting to start tinc, you have to create public/private keypairs.
1120 When tinc tries to make a connection, it exchanges some sensitive
1121 data.  Before doing so, it likes to know if the other end is
1122 trustworthy.
1123
1124 To do this, both ends must have some knowledge about the other.  In the
1125 case of tinc this is the public keys.
1126
1127 To generate a public/private keypair, run `tincd -n vpn-name -K<bits>'.
1128 <bits> is optional, you can use it to specify the length of the keys.
1129 The length of the public/private keypairs
1130 should be at least 1024 for reasonable security (reasonable being good enough
1131 to keep the NSA busy for a few weeks).
1132
1133 Every computer that wants to participate in the VPN should do this. The
1134 public keyfile should get the name of each tinc daemon and an extension .pub,
1135 and it should be stored in the hosts directory.
1136
1137 When every computer has his own keys and configuration files, the files in the
1138 hosts directory should be exchanged with each other computer that it wants to
1139 talk to directly. Since only public keys are involved, you can safely do this
1140 via email, telnet or ftp, or even putting the contents on a public billboard.
1141
1142
1143 @c ==================================================================
1144 @node    Runtime options, Error messages, Managing keys, Running tinc
1145 @section Runtime options
1146
1147 Besides the settings in the configuration file, tinc also accepts some
1148 command line options.
1149
1150 This list is a longer version of that in the manpage.  The latter is
1151 generated automatically, so may be more up-to-date.
1152
1153 @cindex command line
1154 @cindex runtime options
1155 @cindex options
1156 @c from the manpage
1157 @table @samp
1158 @item -c, --config=PATH
1159 Read configuration options from the directory PATH.  The default is
1160 @file{/etc/tinc/nn/}.
1161
1162 @item -d
1163 Increase debug level.  The higher it gets, the more gets
1164 logged.  Everything goes via syslog.
1165
1166 0 is the default, only some basic information connection attempts get
1167 logged.  Setting it to 1 will log a bit more, still not very
1168 disturbing.  With two -d's tincd will log protocol information, which can
1169 get pretty noisy.  Three or more -d's will output every single packet
1170 that goes out or comes in, which probably generates more data than the
1171 packets themselves.
1172
1173 @item -k, --kill
1174 Attempt to kill a running tincd and exit.  A TERM signal (15) gets sent
1175 to the daemon that his its PID in /var/run/tinc.pid.
1176
1177 Because it kills only one tinc daemon, you should use -n here if you
1178 started it that way.  It will then read the PID from
1179 @file{/var/run/tinc.NETNAME.pid}.
1180
1181 @item -n, --net=NETNAME
1182 Connect to net NETNAME.  @xref{Multiple networks}.
1183
1184 @item -K, --generate-keys[=BITS]
1185 Generate public/private keypair of BITS length. If BITS is not specified,
1186 1024 is the default. tinc will ask where you want to store the files,
1187 but will default to the configuration directory (you can use the -c or -n option
1188 in combination with -K). After that, tinc will quit.
1189
1190 @item --help
1191 Display a short reminder of these runtime options and terminate.
1192
1193 @item --version
1194 Output version information and exit.
1195
1196 @end table
1197
1198
1199 @c ==================================================================
1200 @node    Error messages,  , Runtime options, Running tinc
1201 @section Error messages
1202
1203 What follows is a list of the most common error messages you can see
1204 when configuring tinc.  Most of these messages are visible in the syslog
1205 only, so keep an eye on it!
1206
1207 @table @strong
1208 @item Could not open /dev/tap0: No such device
1209 @table @bullet
1210 @item You forgot to insmod netlink_dev.o
1211 @item You forgot to compile `Netlink device emulation' in the kernel
1212 @end table
1213
1214 @item Can't write to tun/tap device: No such device
1215 @table @bullet
1216 @item You forgot to insmod tun.o
1217 @item You forgot to compile `Universal TUN/TAP driver' in the kernel
1218 @end table
1219
1220 @item Packet with destination 1.2.3.4 is looping back to us!
1221 @table @bullet
1222 @item Something is not configured right. Packets are being sent out to the
1223 tap device, but according to the Subnet directives in your host configuration
1224 file, those packets should go to your own host. Most common mistake is that
1225 you have a Subnet line in your host configuration file with a netmask which is
1226 just as large as the netmask of the tap device. The latter should in almost all
1227 cases be larger. Rethink your configuration.
1228 Note that you will only see this message if you specified a debug
1229 level of 5 or higher!
1230 @end table
1231
1232 @item Network address and subnet mask do not match!
1233 @table @bullet
1234 @item The Subnet field must contain a network address
1235 If you only want to use one IP address, set the netmask to /32.
1236 @end table
1237
1238 @item This is a bug: net.c:253: 24: Some error
1239 @table @bullet
1240 @item This is something that should not have happened
1241 Please report this, and tell us exactly what went wrong before you got
1242 this message.  In normal operation, these errors should not occur.
1243 @end table
1244
1245 @item Error reading RSA key file `rsa_key.priv': No such file or directory
1246 @table @bullet
1247 @item You must specify the complete pathname
1248 Specifying a relative path does not make sense here.  tinc changes its
1249 directory to / when starting (to avoid keeping a mount point busy); and
1250 even if we built in a default directory to look for these files, the key
1251 files are bound to be in a different directory.
1252 @end table
1253
1254 @end table
1255
1256 @c ==================================================================
1257 @node    Technical information, About us, Running tinc, Top
1258 @chapter Technical information
1259
1260
1261 @menu
1262 * The Connection::              
1263 * Security::                    
1264 @end menu
1265
1266
1267 @c ==================================================================
1268 @node    The Connection, Security, Technical information, Technical information
1269 @section The basic philosophy of the way tinc works
1270 @cindex connection
1271
1272 tinc is a daemon that takes VPN data and transmit that to another host
1273 computer over the existing Internet infrastructure.
1274
1275 @menu
1276 * Protocol Preview::            
1277 * The Meta-connection::         
1278 @end menu
1279
1280
1281 @c ==================================================================
1282 @node    Protocol Preview, The Meta-connection, The Connection, The Connection
1283 @subsection A preview of the way the tinc works
1284
1285 @cindex ethertap
1286 @cindex frame type
1287 The data itself is read from a character device file, the so-called
1288 @emph{ethertap} device.  This device is associated with a network
1289 interface.  Any data sent to this interface can be read from the device,
1290 and any data written to the device gets sent from the interface.  Data to
1291 and from the device is formatted as if it were a normal ethernet card,
1292 so a frame is preceded by two MAC addresses and a @emph{frame type}
1293 field.
1294
1295 So when tinc reads an ethernet frame from the device, it determines its
1296 type.  Right now, tinc can only handle Internet Protocol version 4 (IPv4)
1297 frames, because it needs IP headers for routing.
1298 Plans to support other protocols and switching instead of routing are being made.
1299 When tinc knows
1300 which type of frame it has read, it can also read the source and
1301 destination address from it.
1302
1303 Now it is time that the frame gets encrypted.  Currently the only
1304 encryption algorithm available is blowfish.
1305
1306 @cindex encapsulating
1307 When the encryption is ready, time has come to actually transport the
1308 packet to the destination computer.  We do this by sending the packet
1309 over an UDP connection to the destination host.  This is called
1310 @emph{encapsulating}, the VPN packet (though now encrypted) is
1311 encapsulated in another IP datagram.
1312
1313 When the destination receives this packet, the same thing happens, only
1314 in reverse.  So it does a decrypt on the contents of the UDP datagram,
1315 and it writes the decrypted information to its own ethertap device.
1316
1317 To let the kernel on the receiving end accept the packet, the destination MAC
1318 address must match that of the tap interface. Because of the routing nature
1319 of tinc, ARP is not possible. tinc solves this by always overwriting the
1320 destination MAC address with fe:fd:0:0:0:0. That is also the reason why you must
1321 set the MAC address of your tap interface to that address.
1322
1323
1324 @c ==================================================================
1325 @node    The Meta-connection,  , Protocol Preview, The Connection
1326 @subsection The meta-connection
1327
1328 Having only an UDP connection available is not enough.  Though suitable
1329 for transmitting data, we want to be able to reliably send other
1330 information, such as routing and encryption information to somebody.
1331
1332 TCP is a better alternative, because it already contains protection
1333 against information being lost, unlike UDP.
1334
1335 So we establish two connections.  One for the encrypted VPN data, and one
1336 for other information, the meta-data.  Hence, we call the second
1337 connection the meta-connection.  We can now be sure that the
1338 meta-information doesn't get lost on the way to another computer.
1339
1340 @cindex data-protocol
1341 @cindex meta-protocol
1342 Like with any communication, we must have a protocol, so that everybody
1343 knows what everything stands for, and how she should react.  Because we
1344 have two connections, we also have two protocols.  The protocol used for
1345 the UDP data is the ``data-protocol,'' the other one is the
1346 ``meta-protocol.''
1347
1348 The reason we don't use TCP for both protocols is that UDP is much
1349 better for encapsulation, even while it is less reliable.  The real
1350 problem is that when TCP would be used to encapsulate a TCP stream
1351 that's on the private network, for every packet sent there would be
1352 three ACK's sent instead of just one.  Furthermore, if there would be
1353 a timeout, both TCP streams would sense the timeout, and both would
1354 start resending packets.
1355
1356 @c ==================================================================
1357 @node    Security,  , The Connection, Technical information
1358 @section About tinc's encryption and other security-related issues.
1359
1360 @cindex tinc
1361 @cindex Cabal
1362 tinc got its name from ``TINC,'' short for @emph{There Is No Cabal}; the
1363 alleged Cabal was/is an organization that was said to keep an eye on the
1364 entire Internet.  As this is exactly what you @emph{don't} want, we named
1365 the tinc project after TINC.
1366
1367 @cindex SVPN
1368 But in order to be ``immune'' to eavesdropping, you'll have to encrypt
1369 your data.  Because tinc is a @emph{Secure} VPN (SVPN) daemon, it does
1370 exactly that: encrypt.
1371
1372 This chapter is a mixture of ideas, reasoning and explanation, please
1373 don't take it too serious.
1374
1375 @menu
1376 * Key Types::                   
1377 @end menu
1378
1379 @c ==================================================================
1380 @node    Key Types,  , Security, Security
1381 @subsection Key Types
1382 @c FIXME: check if I'm not talking nonsense
1383
1384 There are several types of encryption keys.  Tinc uses two of them,
1385 symmetric private keypairs and public/private keypairs.
1386
1387 Public/private keypairs are used in public key cryptography.  It enables
1388 someone to send out a public key with which other people can encrypt their
1389 data.  The encrypted data now can only be decrypted by the person who has
1390 the private key that matches the public key.  So, a public key only allows
1391 @emph{other} people to send encrypted messages to you.  This is very useful
1392 in setting up private communications channels.  Just send out your public key
1393 and other people can talk to you in a secure way.  But how can you know
1394 the other person is who she says she is? This is done by sending out an
1395 encrypted challenge that only the person with the right private key can decode
1396 an respond to.
1397
1398 However, encryption with public/private keys is very slow. Symmetric key cryptography
1399 is orders of magnitudes faster, but it is very hard to safely exchange the symmetric
1400 keys, since they should be kept private.
1401
1402 The idea is to use public/private cryptography for authentication, and for
1403 exchanging symmetric keys in a safe way. After that, all communications are encrypted
1404 with the symmetric cipher.
1405
1406
1407 @c ==================================================================
1408 @node    About us, Concept Index, Technical information, Top
1409 @chapter About us
1410
1411
1412 @menu
1413 * Contact Information::         
1414 * Authors::                     
1415 @end menu
1416
1417
1418 @c ==================================================================
1419 @node    Contact Information, Authors, About us, About us
1420 @section Contact information
1421
1422 tinc's main page is at @url{http://tinc.nl.linux.org/},
1423 this server is located in the Netherlands.
1424
1425 We have an IRC channel on the Open Projects IRC network.  Connect to
1426 @uref{http://openprojects.nu/services/irc.html, irc.openprojects.net},
1427 and join channel #tinc.
1428
1429
1430 @c ==================================================================
1431 @node    Authors,  , Contact Information, About us
1432 @section Authors
1433
1434 @table @asis
1435 @item Ivo Timmermans (zarq) (@email{itimmermans@@bigfoot.com})
1436 Main coder/hacker and maintainer of the package.
1437
1438 @item Guus Sliepen (guus) (@email{guus@@sliepen.warande.net})
1439 Originator of it all, co-author.
1440
1441 @item Wessel Dankers (Ubiq) (@email{wsl@@nl.linux.org})
1442 For the name `tinc' and various suggestions.
1443
1444 @end table
1445
1446 We have received a lot of valuable input from users.  With their help,
1447 tinc has become the flexible and robust tool that it is today.  We have
1448 composed a list of contributions, in the file called @file{THANKS} in
1449 the source distribution.
1450
1451
1452 @c ==================================================================
1453 @node    Concept Index,  , About us, Top
1454 @c        node-name,    next, previous,        up
1455 @unnumbered Concept Index
1456
1457 @c ==================================================================
1458 @printindex cp
1459
1460
1461 @c ==================================================================
1462 @contents
1463 @bye
1464