Updated manpages.
[tinc] / doc / tincd.conf.5
1 .TH TINC 5 "March 1999" "tinc version 0.2.16" "FSF"
2 .SH NAME
3 tincd.conf \- tinc daemon configuration
4 .SH "DESCRIPTION"
5 The files in the \fI/etc/tinc\fR directory contain runtime and
6 security information for the \fBtinc\fR(8) daemon.
7 .PP
8 .SH "NETWORKS"
9 It is perfectly ok for you to run more than one tinc daemon. However,
10 in its default form, you will soon notice that you can't use two
11 different configuration files without the \fI-c\fR option.
12
13 We have thought of another way of dealing with this: network
14 names. This means that you call \fBtincd\fR with the \fI-n\fR argument,
15 which will assign a name to this daemon.
16
17 The effect of this is that the daemon will set its configuration
18 ``root'' to \fI/etc/tinc/\fBnn\fI/\fR, where \fBnn\fR is your argument
19 to the \fI-n\fR option. You'll notice that it appears in syslog as
20 ``tincd.\fBnn\fR''.
21
22 However, it is not strictly necessary that you call tinc with the -n
23 option. In this case, the network name would just be empty, and it
24 will be used as such. tinc now looks for files in \fI/etc/tinc/\fR,
25 instead of \fI/etc/tinc/\fBnn\fI/\fR; the configuration file should be
26 \fI/etc/tinc/tincd.conf\fR, and the passphrases are now expected to be
27 in \fI/etc/tinc/passphrases/\fR.
28
29 But it is highly recommended that you use this feature of tinc,
30 because it will be so much clearer whom your daemon talks to. Hence,
31 we will assume that you use it.
32 .PP
33 .SH "PASSPHRASES"
34 You should use the \fBgenauth\fR(8) program to generate passphrases.
35 with, it accepts a single parameter, which is the number of bits the
36 passphrase should be. Its output should be stored in
37 \fI/etc/tinc/\fBnn\fI/passphrases/local\fR \-\- where \fBnn\fR stands
38 for the network (See under \fBNETWORKS\fR) above.
39
40 Please see the manpage for \fBgenauth\fR to learn more about setting
41 up an authentication scheme.
42 .PP
43 .SH "CONFIGURATION"
44 The actual configuration of the daemon is done in the file
45 \fI/etc/tinc/\fBnn\fI/tincd.conf\fR.
46
47 This file consists of comments (lines started with a \fB#\fR) or
48 assignments in the form of
49 .PP
50 .Vb 1
51 \&    \fIVariable \fB= \fIValue\fR.
52 .Ve
53 .PP
54 The variable names are case insensitive, and any spaces, tabs,
55 newlines and carriage returns are ignored. \fINote\fR: it is not
56 required that you put in the \fB=\fR sign, but doing so improves
57 readability. If you leave it out, remember to replace it with at least
58 one space character.
59 .PP
60 .SH "VARIABLES"
61 .PP
62 Here are all valid variables, listed in alphabetical order:
63 .TP
64 \fBAllowConnect = \fB(\fIyes\fB|\fIno\fB)\fR
65 If set to \fIyes\fR, anyone may try to connect to you. If you set this
66 to no, no incoming connections will be accepted. This does not affect
67 the outgoing connections.
68 .TP
69 \fBConnectPort = \fIport\fR
70 Connect to the upstream host (given with the \fBConnectTo\fR
71 directive) on port \fIport\fR. \fIport\fR may be given in decimal
72 (default), octal (when preceded by a single zero) or hexadecimal
73 (prefixed with \fB0x\fR). \fIport\fR is the port number for both the
74 UDP and the TCP (meta) connections.
75 .TP
76 \fBConnectTo = \fB(\fIIP address\fB|\fIhostname\fB)\fR
77 Specifies which host to connect to on startup. If the
78 \fBConnectPort\fR variable is omitted, then tinc will try to connect
79 to port 655.
80
81 If you don't specify a host with \fBConnectTo\fR, tinc won't connect
82 at all, and will instead just listen for incoming connections. Only
83 the initiator of a tinc VPN should need this.
84 .TP
85 \fBKeyExpire = \fIs\fR
86 The secret (and public) key expires after \fIs\fR seconds. The default
87 is 3600 seconds, or one hour.
88
89 If you make it shorter, a lot of time and bandwidth is spent
90 negotiating over the new keys. If you make it longer, you make
91 yourself more vulnerable to crackers, because they have more data to
92 work with. The best value depends on the speed of the link, and the
93 amount of data that goes over it.
94 .TP
95 \fBListenPort = \fIport\fR
96 Listen on local port \fIport\fR. The computer connecting to this
97 daemon should use this number as the argument for his
98 \fBConnectPort\fR. Again, the default is 655.
99 .TP
100 \fBMyOwnVPNIP = \fInetwork address\fR[\fB/\fImaskbits\fR]
101 The \fInetwork address\fR is the number that the daemon will propagate
102 to other daemons on the network when it is identifying itself. Hence
103 this will be the file name of the passphrase file that the other end
104 expects to find the passphrase in.
105
106 \fImaskbits\fR is the number of bits set to 1 in the netmask part.
107 .TP
108 \fBMyVirtualIP = \fInetwork address\fR[\fB/\fImaskbits\fR]
109 This is an alias for \fBMyOwnVPNIP\fR.
110 .TP
111 \fBPassphrases = \fIdirectory\fR
112 The directory where tinc will look for passphrases when someone tries
113 to cennect. Please see the manpage for \fBgenauth\fR(8) for more
114 information about passphrases as used by tinc.
115 .TP
116 \fBPingTimeout = \fInumber\fR
117 The number of seconds of inactivity that tinc will wait before sending
118 a probe to the other end. If that other end doesn't answer within that
119 same amount of seconds, the connection is terminated, and the others
120 will be notified of this.
121 .TP
122 \fBTapDevice = \fIdevice\fR
123 The ethertap device to use. Note that you can only use one device per
124 daemon. The info pages of the tinc package contain more information
125 about configuring an ethertap device for linux.
126 .PP
127 .SH "FILES"
128 .TP
129 \fI/etc/tinc/\fR
130 The top directory for configuration files.
131 .TP
132 \fI/etc/tinc/\fBnn\fI/tincd.conf\fR
133 The default name of the configuration file for net
134 \fBnn\fR.
135 .TP
136 \fI/etc/tinc/\fBnn\fI/passphrases/\fR
137 Passphrases are kept in this directory. (See the section
138 \fBPASSPHRASES\fR above).
139 .PP
140 .SH "SEE ALSO"
141 \fBtincd\fR(8), \fBgenauth\fR(8)
142 .TP
143 \fBhttp://tinc.nl.linux.org/\fR
144 .PP
145 The full documentation for
146 .B tinc
147 is maintained as a Texinfo manual.  If the
148 .B info
149 and
150 .B tinc
151 programs are properly installed at your site, the command
152 .IP
153 .B info tinc
154 .PP
155 should give you access to the complete manual.
156 .PP
157 tinc comes with ABSOLUTELY NO WARRANTY.  This is free software,
158 and you are welcome to redistribute it under certain conditions;
159 see the file COPYING for details.