80878446af073776cf2552cbe6e55d50142c7451
[tinc] / doc / tinc.texi
1 \input texinfo   @c -*-texinfo-*-
2 @c $Id: tinc.texi,v 1.8.4.13 2001/01/17 01:40:46 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.13 2001/01/17 01:40:46 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.13 2001/01/17 01:40:46 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 * Required directives::         
617 * Example::                     
618 @end menu
619
620 @c ==================================================================
621 @node    Multiple networks, How connections work, Configuring tinc, Configuring tinc
622 @section Multiple networks
623
624 @c from the manpage
625
626 It is perfectly OK for you to run more than one tinc daemon.
627 However, in its default form, you will soon notice that you can't use
628 two different configuration files without the -c option.
629
630 We have thought of another way of dealing with this: network names.  This
631 means that you call tincd with the -n argument, which will assign a name
632 to this daemon.
633
634 The effect of this is that the daemon will set its configuration
635 ``root'' to /etc/tinc/nn/, where nn is your argument to the -n
636 option.  You'll notice that it appears in syslog as ``tinc.nn''.
637
638 However, it is not strictly necessary that you call tinc with the -n
639 option.  In this case, the network name would just be empty, and it will
640 be used as such.  tinc now looks for files in /etc/tinc/, instead of
641 /etc/tinc/nn/; the configuration file should be /etc/tinc/tinc.conf,
642 and the passphrases are now expected to be in /etc/tinc/passphrases/.
643
644 But it is highly recommended that you use this feature of tinc, because
645 it will be so much clearer whom your daemon talks to.  Hence, we will
646 assume that you use it.
647
648
649 @c ==================================================================
650 @node    How connections work, Configuration file, Multiple networks, Configuring tinc
651 @section How connections work
652
653 Before going on, first a bit on how tinc sees connections.
654
655 When tinc starts up, it reads in the configuration file and parses the
656 command-line options.  If it sees a `ConnectTo' value in the file, it
657 will try to connect to it, on the given port.  If this fails, tinc exits.
658
659
660 @c ==================================================================
661 @node    Configuration file, Required directives, How connections work, Configuring tinc
662 @section Configuration file
663
664 The actual configuration of the daemon is done in the file
665 @file{/etc/tinc/nn/tinc.conf}.
666
667 This file consists of comments (lines started with a #) or assignments
668 in the form of
669
670 @example
671 Variable = Value.
672 @end example
673
674 The variable names are case insensitive, and any spaces, tabs, newlines
675 and carriage returns are ignored.  Note: it is not required that you put
676 in the `=' sign, but doing so improves readability.  If you leave it
677 out, remember to replace it with at least one space character.
678
679 In this section all valid variables are listed in alphabetical order.
680 The default value is given between parentheses; required directives are
681 given in @strong{bold}.
682
683 @menu
684 * Main configuration variables::  
685 * Host configuration variables::  
686 * How to configure::            
687 @end menu
688
689
690 @c ==================================================================
691 @node    Main configuration variables, Host configuration variables, Configuration file, Configuration file
692 @subsection Main configuration variables
693
694 @table @asis
695 @item @strong{ConnectTo = <name>}
696 Specifies which host to connect to on startup.  Multiple ConnectTo
697 variables may be specified, if connecting to the first one fails then
698 tinc will try the next one, and so on.  It is possible to specify
699 hostnames for dynamic IP addresses (like those given on dyndns.org),
700 tinc will not cache the resolved IP address.
701
702 If you don't specify a host with ConnectTo, regardless of whether a
703 value for ConnectPort is given, tinc won't connect at all, and will
704 instead just listen for incoming connections.
705
706 @item Hostnames = <yes|no> (no)
707 This option selects whether IP addresses (both real and on the VPN)
708 should be resolved.  Since DNS lookups are blocking, it might affect
709 tinc's efficiency, even stopping the daemon for a few seconds everytime
710 it does a lookup if your DNS server is not responding.
711
712 This does not affect resolving hostnames to IP addresses from the
713 configuration file.
714
715 @item Interface = <device>
716 If you have more than one network interface in your computer, tinc will
717 by default listen on all of them for incoming connections.  It is
718 possible to bind tinc to a single interface like eth0 or ppp0 with this
719 variable.
720
721 @item InterfaceIP = <local address>
722 If your computer has more than one IP address on a single interface (for
723 example if you are running virtual hosts), tinc will by default listen
724 on all of them for incoming connections.  It is possible to bind tinc to
725 a single IP address with this variable.  It is still possible to listen
726 on several interfaces at the same time though, if they share the same IP
727 address.
728
729 @item KeyExpire = <seconds> (3600)
730 This option controls the time the encryption keys used to encrypt the data
731 are valid.  It is common practice to change keys at regular intervals to
732 make it even harder for crackers, even though it is thought to be nearly
733 impossible to crack a single key.
734
735 @item ListenPort = <port> (655)
736 Listen on local port port.  The computer connecting to this daemon should
737 use this number as the argument for his ConnectPort.
738
739 @item MyOwnVPNIP = <local address[/maskbits]> (required)
740 The local address is the number that the daemon will propagate to
741 other daemons on the network when it is identifying itself.  Hence this
742 will be the file name of the passphrase file that the other end expects
743 to find the passphrase in.
744
745 The local address is the IP address of the tap device, not the real IP
746 address of the host running tincd.  Due to changes in recent kernels, it
747 is also necessary that you make the ethernet (also known as MAC) address
748 equal to the IP address (see the example).
749
750 maskbits is the number of bits set to 1 in the netmask part.
751
752 @item MyVirtualIP = <local address[/maskbits]>
753 This is an alias for MyOwnVPNIP.
754
755 @item @strong{Name = <name>}
756 This is a symbolic name for this connection.  It can be anything 
757
758 @item PingTimeout = <seconds> (5)
759 The number of seconds of inactivity that tinc will wait before sending a
760 probe to the other end.  If that other end doesn't answer within that
761 same amount of seconds, the connection is terminated, and the others
762 will be notified of this.
763
764 @item @strong{PrivateKey = <key>}
765 This is the RSA private key for tinc. However, for safety reasons it is
766 advised to store private keys of any kind in separate files. This prevents
767 accidental eavesdropping if you are editting the configuration file.
768
769 @item PrivateKeyFile = <path>
770 This is the full path name of the RSA private key file that was
771 generated by ``tincd --generate-keys''.  It must be a full path, not a
772 relative directory.
773
774 @item PublicKey = <key>
775 This is the full path name of the RSA public key file that was generated
776 by ``tincd --generate-keys''.  It must be a full path, not a relative
777 directory.  (NOTE: In version 1.0pre3, this variable was used to give
778 the key inline.  This is no longer supported.)
779
780 @item Subnet = <IP address/maskbits>
781 This is the subnet range of all IP addresses that will be accepted by
782 the host that defines it.  Please be careful that no two subnets
783 overlap.  Every host @strong{must} have a different range of IP
784 addresses that it can handle, otherwise you will see messages like
785 `packet comes back to us'.
786
787 @item TapDevice = <device> (/dev/tap0)
788 The ethertap device to use.  Note that you can only use one device per
789 daemon.  The info pages of the tinc package contain more information
790 about configuring an ethertap device for Linux.
791
792 @item TCPonly = <yes|no> (no, experimental)
793 If this variable is set to yes, then the packets are tunnelled over a TCP
794 connection instead of a UDP connection.  This is especially useful for those
795 who want to run a tinc daemon from behind a masquerading firewall, or if
796 UDP packet routing is disabled somehow.  This is experimental code,
797 try this at your own risk.
798
799 @item VpnMask = <mask> (optional)
800 The mask that defines the scope of the entire VPN.  This option is not used
801 by the tinc daemon itself, but can be used by startup scripts to configure
802 the ethertap devices correctly.
803 @end table
804
805
806 @c ==================================================================
807 @node    Host configuration variables, How to configure, Main configuration variables, Configuration file
808 @subsection Host configuration variables
809
810 @table @asis
811 @item @strong{Address = <IP address|hostname>}
812 This variable is only required if you want to connect to this host.  It
813 must resolve to the external IP address where the host can be reached,
814 not the one that is internal to the VPN.
815
816 @item IndirectData = <yes|no> (no)
817 This option specifies whether other tinc daemons besides the one you
818 specified with ConnectTo can make a direct connection to you.  This is
819 especially useful if you are behind a firewall and it is impossible to
820 make a connection from the outside to your tinc daemon.  Otherwise, it
821 is best to leave this option out or set it to no.
822
823 @item Port = <port> (655)
824 Connect to the upstream host (given with the ConnectTo directive) on
825 port port.  port may be given in decimal (default), octal (when preceded
826 by a single zero) o hexadecimal (prefixed with 0x).  port is the port
827 number for both the UDP and the TCP (meta) connections.
828
829 @item PublicKey = <key>
830 This is the RSA public key for this host.
831
832 @item PublicKeyFile = <path>
833 This is the full path name of the RSA public key file that was generated
834 by ``tincd --generate-keys''.  It must be a full path, not a relative
835 directory.
836
837 Note that exactly @strong{one of the above two options} must be specified
838 in each host configuration file, if you want to be able to establish a
839 connection with that host.
840
841 @item Subnet = <IP address/maskbits>
842 This is the subnet range of all IP addresses that will be accepted by
843 the host that defines it.
844
845 The range must be contained in the IP address range of the tap device,
846 not the real IP address of the host running tincd.
847
848 maskbits is the number of bits set to 1 in the netmask part; for
849 example: netmask 255.255.255.0 would become /24, 255.255.252.0 becomes
850 /22. This conforms to standard CIDR notation as described in
851 @uref{ftp://ftp.isi.edu/in-notes/rfc1519.txt, RFC1519}
852
853 @item TCPonly = <yes|no> (no)
854 If this variable is set to yes, then the packets are tunnelled over a
855 TCP connection instead of a UDP connection.  This is especially useful
856 for those who want to run a tinc daemon from behind a masquerading
857 firewall, or if UDP packet routing is disabled somehow.  @emph{This is
858 experimental code, try this at your own risk. It may not work at all.}
859 @end table
860
861
862 @c ==================================================================
863 @node    How to configure,  , Host configuration variables, Configuration file
864 @subsection How to configure
865
866 @subsubheading Step 1.  Creating the key files
867
868 For each host, you have to create a pair of RSA keys.  One key is your
869 private key, which is only known to you.  The other one is the public
870 key, which you should copy to all hosts wanting to authenticate to you.
871
872
873 @subsubheading Step 2.  Configuring each host
874
875 For every host in the VPN, you have to create two files.  First there is
876 the main configuration file, @file{/etc/tinc/vpn-name/tinc.conf}.  In
877 this file there should at least be three directives:
878
879 @table @samp
880 @item Name
881 You should fill in the name of this host (or rather, the name of this
882 leaf of the VPN).  It can be called after the hostname, the physical
883 location, the department, or the name of one of your boss' pets.  It can
884 be anything, as long as all these names are unique across the entire
885 VPN.
886
887 @item PrivateKey
888 Fill in the full pathname to the file that contains the private RSA key.
889
890 @item ConnectTo
891 This is the name of the host that you want to connect to (not a DNS
892 name, rather the name that is given with the Name parameter in that
893 hosts tinc.conf).  This is the upstream connection.  If your computer is
894 a central node, you might want to leave this out to make it stay idle
895 until someone connects to it.
896 @end table
897
898 @cindex host configuration file
899 Then you should create a file with the name you gave yourself in
900 tinc.conf (the `Name' parameter), located in
901 @file{/etc/tinc/vpn-name/hosts/}.  In this file, which we call the
902 `@emph{host configuration file}', only one variable is required:
903
904 @table @samp
905 @item Subnet
906 The IP range that this host accepts as being `local'.  All packets with
907 a destination address that is within this subnet will be sent to us.
908 @end table
909
910
911 @subsubheading Step 3.  Bringing it all together
912
913 Now for all hosts that you want to create a direct connection to, -- you
914 connect to them or they connect to you -- you get a copy of their host
915 configuration file and their public RSA key.
916
917 For each host configuration file, you add two variables:
918
919 @table @samp
920 @item Address
921 Enter the IP address or DNS hostname for this host.  This is only needed
922 if you connect to this host.
923
924 @item PublicKey
925 Put the full pathname to this hosts public RSA key here.
926 @end table
927
928 When you did this, you should be ready to create your first connection.
929 Pay attention to the system log, most errors will only be visible
930 there.  If you get an error, you can check @ref{Error messages}.
931
932
933 @c ==================================================================
934 @node    Example,  , Required directives, Configuring tinc
935 @section Example
936
937
938 @cindex example
939 Imagine the following situation.  An A-based company wants to connect
940 three branch offices in B, C and D using the internet.  All four offices
941 have a 24/7 connection to the internet.
942
943 A is going to serve as the center of the network.  B and C will connect
944 to A, and D will connect to C.  Each office will be assigned their own IP
945 network, 10.x.0.0.
946
947 @example
948 A: net 10.1.0.0 mask 255.255.0.0 gateway 10.1.54.1 internet IP 1.2.3.4
949 B: net 10.2.0.0 mask 255.255.0.0 gateway 10.2.1.12 internet IP 2.3.4.5
950 C: net 10.3.0.0 mask 255.255.0.0 gateway 10.3.69.254 internet IP 3.4.5.6
951 D: net 10.4.0.0 mask 255.255.0.0 gateway 10.4.3.32 internet IP 4.5.6.7
952 @end example
953
954 ``gateway'' is the VPN IP address of the machine that is running the
955 tincd.  ``internet IP'' is the IP address of the firewall, which does not
956 need to run tincd, but it must do a port forwarding of TCP&UDP on port
957 655 (unless otherwise configured).
958
959 In this example, it is assumed that eth0 is the interface that points to
960 the inner (physical) LAN of the office, although this could also be the
961 same as the interface that leads to the internet.  The configuration of
962 the real interface is also shown as a comment, to give you an idea of
963 how these example host is set up.
964
965 @subsubheading For A
966
967 @emph{A} would be configured like this:
968
969 @example
970 #ifconfig eth0 10.1.54.1 netmask 255.255.0.0 broadcast 10.1.255.255
971 ifconfig tap0 hw ether fe:fd:00:00:00:00
972 ifconfig tap0 10.1.54.1 netmask 255.0.0.0
973 @end example
974
975 and in /etc/tinc/tinc.conf:
976
977 @example
978 Name = A
979 PrivateKey = /etc/tinc/A.priv
980 VpnMask = 255.0.0.0
981 @end example
982
983 On all hosts, /etc/tinc/hosts/A contains:
984
985 @example
986 Subnet = 10.1.0.0/16
987 Address = 1.2.3.4
988 PublicKey = /etc/tinc/hosts/A.pub
989 @end example
990
991
992 @subsubheading For B
993
994 @example
995 #ifconfig eth0 10.2.43.8 netmask 255.255.0.0 broadcast 10.2.255.255
996 ifconfig tap0 hw ether fe:fd:00:00:00:00
997 ifconfig tap0 10.2.1.12 netmask 255.0.0.0
998 @end example
999
1000 and in /etc/tinc/tinc.conf:
1001
1002 @example
1003 Name = B
1004 ConnectTo = A
1005 PrivateKey = /etc/tinc/B.priv
1006 VpnMask = 255.0.0.0
1007 @end example
1008
1009 Note here that the internal address (on eth0) doesn't have to be the
1010 same as on the tap0 device.  Also, ConnectTo is given so that no-one can
1011 connect to this node.
1012
1013 On all hosts, /etc/tinc/hosts/B:
1014
1015 @example
1016 Subnet = 10.2.0.0/16
1017 Address = 2.3.4.5
1018 PublicKey = /etc/tinc/hosts/B.pub
1019 @end example
1020
1021
1022 @subsubheading For C
1023
1024 @example
1025 #ifconfig eth0 10.3.69.254 netmask 255.255.0.0 broadcast 10.3.255.255
1026 ifconfig tap0 hw ether fe:fd:00:00:00:00
1027 ifconfig tap0 10.3.69.254 netmask 255.0.0.0
1028 @end example
1029
1030 and in /etc/tinc/A/tinc.conf:
1031
1032 @example
1033 Name = C
1034 ConnectTo = A
1035 TapDevice = /dev/tap1
1036 VpnMask = 255.0.0.0
1037 @end example
1038
1039 C already has another daemon that runs on port 655, so they have to
1040 reserve another port for tinc.  It can connect to other tinc daemons on
1041 the regular port though, so no ConnectPort variable is needed.  They
1042 also use the netname to distinguish between the two.  tinc is started
1043 with `tincd -n A'.
1044
1045 On all hosts, /etc/tinc/hosts/C:
1046
1047 @example
1048 Subnet = 10.3.0.0/16
1049 Port = 2000
1050 PublicKey = /etc/tinc/hosts/C.pub
1051 @end example
1052
1053
1054 @subsubheading For D
1055
1056 @example
1057 #ifconfig tap0 10.4.3.32 netmask 255.255.0.0 broadcast 10.4.255.255
1058 ifconfig tap0 hw ether fe:fd:0a:04:03:20
1059 ifconfig tap0 10.4.3.32 netmask 255.0.0.0
1060 @end example
1061
1062 and in /etc/tinc/tinc.conf:
1063
1064 @example
1065 MyVirtualIP = 10.4.3.32/16
1066 ConnectTo = 3.4.5.6
1067 ConnectPort = 2000
1068 VpnMask=255.0.0.0
1069 @end example
1070
1071 D will be connecting to C, which has a tincd running for this network on
1072 port 2000.  Hence they need to put in a ConnectPort, but it doesn't need
1073 to have a different ListenPort.
1074
1075 @subsubheading Key files
1076
1077 A, B, C and D all have generate a public key with tincd -K, the output is
1078 stored in /etc/tinc/hosts/X.pub (where X is A, B or D), except for C,
1079 who stored it in /etc/tinc/A/hosts/C.pub.
1080
1081 A stores a copy of B's public key in /etc/tinc/hosts/B.pub
1082
1083 A stores a copy of C's public key in /etc/tinc/hosts/C.pub
1084
1085 B stores a copy of A's public key in /etc/tinc/hosts/A.pub
1086
1087 C stores a copy of A's public key in /etc/tinc/A/hosts/A.pub
1088
1089 C stores a copy of D's public key in /etc/tinc/A/hosts/D.pub
1090
1091 D stores a copy of C's public key in /etc/tinc/hosts/C.pub
1092
1093 @subsubheading Starting
1094
1095 A has to start their tincd first.  Then come B and C, where C has to
1096 provide the option `-n A', because they have more than one tinc
1097 network.  Finally, D's tincd is started.
1098
1099
1100
1101 @c ==================================================================
1102 @node    Running tinc, Technical information, Configuring tinc, Top
1103 @chapter Running tinc
1104
1105 Running tinc isn't just as easy as typing `tincd' and hoping everything
1106 will just work out the way you wanted.  Instead, the use of tinc is a
1107 project that involves trust relations and more than one computer.
1108
1109 @menu
1110 * Managing keys::               
1111 * Runtime options::             
1112 * Error messages::              
1113 @end menu
1114
1115
1116 @c ==================================================================
1117 @node    Managing keys, Runtime options, Running tinc, Running tinc
1118 @section Managing keys
1119
1120 Before attempting to start tinc, you have to create public/private keypairs.
1121 When tinc tries to make a connection, it exchanges some sensitive
1122 data.  Before doing so, it likes to know if the other end is
1123 trustworthy.
1124
1125 To do this, both ends must have some knowledge about the other.  In the
1126 case of tinc this is the public keys.
1127
1128 To generate a public/private keypair, run `tincd -n vpn-name -K<bits>'.
1129 <bits> is optional, you can use it to specify the length of the keys.
1130 The length of the public/private keypairs
1131 should be at least 1024 for reasonable security (reasonable being good enough
1132 to keep the NSA busy for a few weeks).
1133
1134 Every computer that wants to participate in the VPN should do this. The
1135 public keyfile should get the name of each tinc daemon and an extension .pub,
1136 and it should be stored in the hosts directory.
1137
1138 When every computer has his own keys and configuration files, the files in the
1139 hosts directory should be exchanged with each other computer that it wants to
1140 talk to directly. Since only public keys are involved, you can safely do this
1141 via email, telnet or ftp, or even putting the contents on a public billboard.
1142
1143
1144 @c ==================================================================
1145 @node    Runtime options, Error messages, Managing keys, Running tinc
1146 @section Runtime options
1147
1148 Besides the settings in the configuration file, tinc also accepts some
1149 command line options.
1150
1151 This list is a longer version of that in the manpage.  The latter is
1152 generated automatically, so may be more up-to-date.
1153
1154 @cindex command line
1155 @cindex runtime options
1156 @cindex options
1157 @c from the manpage
1158 @table @samp
1159 @item -c, --config=PATH
1160 Read configuration options from the directory PATH.  The default is
1161 @file{/etc/tinc/nn/}.
1162
1163 @item -d
1164 Increase debug level.  The higher it gets, the more gets
1165 logged.  Everything goes via syslog.
1166
1167 0 is the default, only some basic information connection attempts get
1168 logged.  Setting it to 1 will log a bit more, still not very
1169 disturbing.  With two -d's tincd will log protocol information, which can
1170 get pretty noisy.  Three or more -d's will output every single packet
1171 that goes out or comes in, which probably generates more data than the
1172 packets themselves.
1173
1174 @item -k, --kill
1175 Attempt to kill a running tincd and exit.  A TERM signal (15) gets sent
1176 to the daemon that his its PID in /var/run/tinc.pid.
1177
1178 Because it kills only one tinc daemon, you should use -n here if you
1179 started it that way.  It will then read the PID from
1180 @file{/var/run/tinc.NETNAME.pid}.
1181
1182 @item -n, --net=NETNAME
1183 Connect to net NETNAME.  @xref{Multiple networks}.
1184
1185 @item -K, --generate-keys[=BITS]
1186 Generate public/private keypair of BITS length. If BITS is not specified,
1187 1024 is the default. tinc will ask where you want to store the files,
1188 but will default to the configuration directory (you can use the -c or -n option
1189 in combination with -K). After that, tinc will quit.
1190
1191 @item --help
1192 Display a short reminder of these runtime options and terminate.
1193
1194 @item --version
1195 Output version information and exit.
1196
1197 @end table
1198
1199
1200 @c ==================================================================
1201 @node    Error messages,  , Runtime options, Running tinc
1202 @section Error messages
1203
1204 What follows is a list of the most common error messages you can see
1205 when configuring tinc.  Most of these messages are visible in the syslog
1206 only, so keep an eye on it!
1207
1208 @table @strong
1209 @item Could not open /dev/tap0: No such device
1210 @table @bullet
1211 @item You forgot to insmod netlink_dev.o
1212 @item You forgot to compile `Netlink device emulation' in the kernel
1213 @end table
1214
1215 @item Can't write to tun/tap device: No such device
1216 @table @bullet
1217 @item You forgot to insmod tun.o
1218 @item You forgot to compile `Universal TUN/TAP driver' in the kernel
1219 @end table
1220
1221 @item Packet with destination 1.2.3.4 is looping back to us!
1222 @table @bullet
1223 @item Something is not configured right. Packets are being sent out to the
1224 tap device, but according to the Subnet directives in your host configuration
1225 file, those packets should go to your own host. Most common mistake is that
1226 you have a Subnet line in your host configuration file with a netmask which is
1227 just as large as the netmask of the tap device. The latter should in almost all
1228 cases be larger. Rethink your configuration.
1229 Note that you will only see this message if you specified a debug
1230 level of 5 or higher!
1231 @end table
1232
1233 @item Network address and subnet mask do not match!
1234 @table @bullet
1235 @item The Subnet field must contain a network address
1236 If you only want to use one IP address, set the netmask to /32.
1237 @end table
1238
1239 @item This is a bug: net.c:253: 24: Some error
1240 @table @bullet
1241 @item This is something that should not have happened
1242 Please report this, and tell us exactly what went wrong before you got
1243 this message.  In normal operation, these errors should not occur.
1244 @end table
1245
1246 @item Error reading RSA key file `rsa_key.priv': No such file or directory
1247 @table @bullet
1248 @item You must specify the complete pathname
1249 Specifying a relative path does not make sense here.  tinc changes its
1250 directory to / when starting (to avoid keeping a mount point busy); and
1251 even if we built in a default directory to look for these files, the key
1252 files are bound to be in a different directory.
1253 @end table
1254
1255 @end table
1256
1257 @end table
1258
1259 @c ==================================================================
1260 @node    Technical information, About us, Running tinc, Top
1261 @chapter Technical information
1262
1263
1264 @menu
1265 * The Connection::              
1266 * Security::                    
1267 @end menu
1268
1269
1270 @c ==================================================================
1271 @node    The Connection, Security, Technical information, Technical information
1272 @section The basic philosophy of the way tinc works
1273 @cindex connection
1274
1275 tinc is a daemon that takes VPN data and transmit that to another host
1276 computer over the existing Internet infrastructure.
1277
1278 @menu
1279 * Protocol Preview::            
1280 * The Meta-connection::         
1281 @end menu
1282
1283
1284 @c ==================================================================
1285 @node    Protocol Preview, The Meta-connection, The Connection, The Connection
1286 @subsection A preview of the way the tinc works
1287
1288 @cindex ethertap
1289 @cindex frame type
1290 The data itself is read from a character device file, the so-called
1291 @emph{ethertap} device.  This device is associated with a network
1292 interface.  Any data sent to this interface can be read from the device,
1293 and any data written to the device gets sent from the interface.  Data to
1294 and from the device is formatted as if it were a normal ethernet card,
1295 so a frame is preceded by two MAC addresses and a @emph{frame type}
1296 field.
1297
1298 So when tinc reads an ethernet frame from the device, it determines its
1299 type.  Right now, tinc can only handle Internet Protocol version 4 (IPv4)
1300 frames, because it needs IP headers for routing.
1301 Plans to support other protocols and switching instead of routing are being made.
1302 When tinc knows
1303 which type of frame it has read, it can also read the source and
1304 destination address from it.
1305
1306 Now it is time that the frame gets encrypted.  Currently the only
1307 encryption algorithm available is blowfish.
1308
1309 @cindex encapsulating
1310 When the encryption is ready, time has come to actually transport the
1311 packet to the destination computer.  We do this by sending the packet
1312 over an UDP connection to the destination host.  This is called
1313 @emph{encapsulating}, the VPN packet (though now encrypted) is
1314 encapsulated in another IP datagram.
1315
1316 When the destination receives this packet, the same thing happens, only
1317 in reverse.  So it does a decrypt on the contents of the UDP datagram,
1318 and it writes the decrypted information to its own ethertap device.
1319
1320 To let the kernel on the receiving end accept the packet, the destination MAC
1321 address must match that of the tap interface. Because of the routing nature
1322 of tinc, ARP is not possible. tinc solves this by always overwriting the
1323 destination MAC address with fe:fd:0:0:0:0. That is also the reason why you must
1324 set the MAC address of your tap interface to that address.
1325
1326
1327 @c ==================================================================
1328 @node    The Meta-connection,  , Protocol Preview, The Connection
1329 @subsection The meta-connection
1330
1331 Having only an UDP connection available is not enough.  Though suitable
1332 for transmitting data, we want to be able to reliably send other
1333 information, such as routing and encryption information to somebody.
1334
1335 TCP is a better alternative, because it already contains protection
1336 against information being lost, unlike UDP.
1337
1338 So we establish two connections.  One for the encrypted VPN data, and one
1339 for other information, the meta-data.  Hence, we call the second
1340 connection the meta-connection.  We can now be sure that the
1341 meta-information doesn't get lost on the way to another computer.
1342
1343 @cindex data-protocol
1344 @cindex meta-protocol
1345 Like with any communication, we must have a protocol, so that everybody
1346 knows what everything stands for, and how she should react.  Because we
1347 have two connections, we also have two protocols.  The protocol used for
1348 the UDP data is the ``data-protocol,'' the other one is the
1349 ``meta-protocol.''
1350
1351 The reason we don't use TCP for both protocols is that UDP is much
1352 better for encapsulation, even while it is less reliable.  The real
1353 problem is that when TCP would be used to encapsulate a TCP stream
1354 that's on the private network, for every packet sent there would be
1355 three ACK's sent instead of just one.  Furthermore, if there would be
1356 a timeout, both TCP streams would sense the timeout, and both would
1357 start resending packets.
1358
1359 @c ==================================================================
1360 @node    Security,  , The Connection, Technical information
1361 @section About tinc's encryption and other security-related issues.
1362
1363 @cindex tinc
1364 @cindex Cabal
1365 tinc got its name from ``TINC,'' short for @emph{There Is No Cabal}; the
1366 alleged Cabal was/is an organization that was said to keep an eye on the
1367 entire Internet.  As this is exactly what you @emph{don't} want, we named
1368 the tinc project after TINC.
1369
1370 @cindex SVPN
1371 But in order to be ``immune'' to eavesdropping, you'll have to encrypt
1372 your data.  Because tinc is a @emph{Secure} VPN (SVPN) daemon, it does
1373 exactly that: encrypt.
1374
1375 This chapter is a mixture of ideas, reasoning and explanation, please
1376 don't take it too serious.
1377
1378 @menu
1379 * Key Types::                   
1380 @end menu
1381
1382 @c ==================================================================
1383 @node    Key Types, , Security, Security
1384 @subsection Key Types
1385 @c FIXME: check if I'm not talking nonsense
1386
1387 There are several types of encryption keys.  Tinc uses two of them,
1388 symmetric private keypairs and public/private keypairs.
1389
1390 Public/private keypairs are used in public key cryptography.  It enables
1391 someone to send out a public key with which other people can encrypt their
1392 data.  The encrypted data now can only be decrypted by the person who has
1393 the private key that matches the public key.  So, a public key only allows
1394 @emph{other} people to send encrypted messages to you.  This is very useful
1395 in setting up private communications channels.  Just send out your public key
1396 and other people can talk to you in a secure way.  But how can you know
1397 the other person is who she says she is? This is done by sending out an
1398 encrypted challenge that only the person with the right private key can decode
1399 an respond to.
1400
1401 However, encryption with public/private keys is very slow. Symmetric key cryptography
1402 is orders of magnitudes faster, but it is very hard to safely exchange the symmetric
1403 keys, since they should be kept private.
1404
1405 The idea is to use public/private cryptography for authentication, and for
1406 exchanging symmetric keys in a safe way. After that, all communications are encrypted
1407 with the symmetric cipher.
1408
1409
1410 @c ==================================================================
1411 @node    About us, Concept Index, Technical information, Top
1412 @chapter About us
1413
1414
1415 @menu
1416 * Contact Information::         
1417 * Authors::                     
1418 @end menu
1419
1420
1421 @c ==================================================================
1422 @node    Contact Information, Authors, About us, About us
1423 @section Contact information
1424
1425 tinc's main page is at @url{http://tinc.nl.linux.org/},
1426 this server is located in the Netherlands.
1427
1428 We have an IRC channel on the Open Projects IRC network.  Connect to
1429 @uref{http://openprojects.nu/services/irc.html, irc.openprojects.net},
1430 and join channel #tinc.
1431
1432
1433 @c ==================================================================
1434 @node    Authors,  , Contact Information, About us
1435 @section Authors
1436
1437 @table @asis
1438 @item Ivo Timmermans (zarq) (@email{itimmermans@@bigfoot.com})
1439 Main coder/hacker and maintainer of the package.
1440
1441 @item Guus Sliepen (guus) (@email{guus@@sliepen.warande.net})
1442 Originator of it all, co-author.
1443
1444 @item Wessel Dankers (Ubiq) (@email{wsl@@nl.linux.org})
1445 For the name `tinc' and various suggestions.
1446
1447 @end table
1448
1449 We have received a lot of valuable input from users.  With their help,
1450 tinc has become the flexible and robust tool that it is today.  We have
1451 composed a list of contributions, in the file called @file{THANKS} in
1452 the source distribution.
1453
1454
1455 @c ==================================================================
1456 @node    Concept Index,  , About us, Top
1457 @c        node-name,    next, previous,        up
1458 @unnumbered Concept Index
1459
1460 @c ==================================================================
1461 @printindex cp
1462
1463
1464 @c ==================================================================
1465 @contents
1466 @bye
1467