Decrement TTL of incoming packets.
[tinc] / doc / tinc.conf.5.in
1 .Dd 2010-01-16
2 .Dt TINC.CONF 5
3 .\" Manual page created by:
4 .\" Ivo Timmermans
5 .\" Guus Sliepen <guus@tinc-vpn.org>
6
7 .Sh NAME
8 .Nm tinc.conf
9 .Nd tinc daemon configuration
10
11 .Sh DESCRIPTION
12 The files in the
13 .Pa @sysconfdir@/tinc/
14 directory contain runtime and security information for the tinc daemon.
15
16 .Sh NETWORKS
17 It is perfectly ok for you to run more than one tinc daemon.
18 However, in its default form,
19 you will soon notice that you can't use two different configuration files without the
20 .Fl c
21 option.
22
23 .Pp
24 We have thought of another way of dealing with this: network names.
25 This means that you call
26 .Nm
27 with the
28 .Fl n
29 option, which will assign a name to this daemon.
30
31 .Pp
32 The effect of this is that the daemon will set its configuration root to
33 .Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa / ,
34 where 
35 .Ar NETNAME
36 is your argument to the
37 .Fl n
38 option.
39 You'll notice that messages appear in syslog as coming from
40 .Nm tincd. Ns Ar NETNAME .
41
42 .Pp
43 However, it is not strictly necessary that you call tinc with the
44 .Fl n
45 option.
46 In this case, the network name would just be empty,
47 and it will be used as such.
48 .Nm tinc
49 now looks for files in
50 .Pa @sysconfdir@/tinc/ ,
51 instead of 
52 .Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa / ;
53 the configuration file should be
54 .Pa @sysconfdir@/tinc/tinc.conf ,
55 and the host configuration files are now expected to be in
56 .Pa @sysconfdir@/tinc/hosts/ .
57
58 .Pp
59 But it is highly recommended that you use this feature of
60 .Nm tinc ,
61 because it will be so much clearer whom your daemon talks to.
62 Hence, we will assume that you use it.
63
64 .Sh NAMES
65 Each tinc daemon should have a name that is unique in the network which it will be part of.
66 The name will be used by other tinc daemons for identification.
67 The name has to be declared in the
68 .Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /tinc.conf
69 file.
70
71 .Pp
72 To make things easy,
73 choose something that will give unique and easy to remember names to your tinc daemon(s).
74 You could try things like hostnames, owner surnames or location names.
75
76 .Sh PUBLIC/PRIVATE KEYS
77 You should use 
78 .Ic tincd -K
79 to generate public/private keypairs.
80 It will generate two keys.
81 The private key should be stored in a separate file
82 .Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /rsa_key.priv
83 \-\- where 
84 .Ar NETNAME
85 stands for the network (see 
86 .Sx NETWORKS )
87 above.
88 The public key should be stored in the host configuration file
89 .Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /hosts/ Ns Va NAME
90 \-\- where
91 .Va NAME
92 stands for the name of the local tinc daemon (see
93 .Sx NAMES ) .
94
95 .Sh SERVER CONFIGURATION
96 The server configuration of the daemon is done in the file
97 .Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /tinc.conf .
98 This file consists of comments (lines started with a
99 .Li # )
100 or assignments in the form of:
101
102 .Pp
103 .Va Variable Li = Ar Value .
104
105 .Pp
106 The variable names are case insensitive, and any spaces, tabs,
107 newlines and carriage returns are ignored.
108 Note: it is not required that you put in the 
109 .Li =
110 sign, but doing so improves readability.
111 If you leave it out, remember to replace it with at least one space character.
112
113 .Pp
114 The server configuration is complemented with host specific configuration (see the next section).
115 Although all configuration options for the local host listed in this document can also be put in
116 .Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /tinc.conf ,
117 it is recommended to put host specific configuration options in the host configuration file,
118 as this makes it easy to exchange with other nodes.
119
120 .Pp
121 Here are all valid variables, listed in alphabetical order.
122 The default value is given between parentheses.
123 .Bl -tag -width indent
124
125 .It Va AddressFamily Li = ipv4 | ipv6 | any Pq any
126 This option affects the address family of listening and outgoing sockets.
127 If
128 .Qq any
129 is selected, then depending on the operating system both IPv4 and IPv6 or just
130 IPv6 listening sockets will be created.
131
132 .It Va BindToAddress Li = Ar address Bq experimental
133 If your computer has more than one IPv4 or IPv6 address,
134 .Nm tinc
135 will by default listen on all of them for incoming connections.
136 Multiple
137 .Va BindToAddress
138 variables may be specified,
139 in which case listening sockets for each specified address are made.
140
141 .Pp
142 This option may not work on all platforms.
143
144 .It Va BindToInterface Li = Ar interface Bq experimental
145 If your computer has more than one network interface,
146 .Nm tinc
147 will by default listen on all of them for incoming connections.
148 It is possible to bind only to a single interface with this variable.
149
150 .Pp
151 This option may not work on all platforms.
152
153 .It Va ConnectTo Li = Ar name
154 Specifies which other tinc daemon to connect to on startup.
155 Multiple
156 .Va ConnectTo
157 variables may be specified,
158 in which case outgoing connections to each specified tinc daemon are made.
159 The names should be known to this tinc daemon
160 (i.e., there should be a host configuration file for the name on the
161 .Va ConnectTo
162 line).
163
164 .Pp
165 If you don't specify a host with
166 .Va ConnectTo ,
167 .Nm tinc
168 won't try to connect to other daemons at all,
169 and will instead just listen for incoming connections.
170
171 .It Va DecrementTTL Li = yes | no Po yes Pc
172 When enabled,
173 .Nm tinc
174 will decrement the Time To Live field in IPv4 packets, or the Hop Limit field in IPv6 packets,
175 before forwarding a received packet to the virtual network device or to another node,
176 and will drop packets that have a TTL value of zero,
177 in which case it will send an ICMP Time Exceeded packet back.
178
179 .It Va Device Li = Ar device Po Pa /dev/tap0 , Pa /dev/net/tun No or other depending on platform Pc
180 The virtual network device to use.
181 .Nm tinc
182 will automatically detect what kind of device it is.
183 Note that you can only use one device per daemon.
184 Under Windows, use
185 .Va Interface
186 instead of
187 .Va Device .
188 The info pages of the tinc package contain more information
189 about configuring the virtual network device.
190
191 .It Va DeviceType Li = Ar type Pq platform dependent
192 The type of the virtual network device.
193 Tinc will normally automatically select the right type of tun/tap interface, and this option should not be used.
194 However, this option can be used to select one of the special interface types, if support for them is compiled in.
195 .Bl -tag -width indent
196
197 .It dummy
198 Use a dummy interface.
199 No packets are ever read or written to a virtual network device.
200 Useful for testing, or when setting up a node that only forwards packets for other nodes.
201
202 .It raw_socket
203 Open a raw socket, and bind it to a pre-existing
204 .Va Interface
205 (eth0 by default).
206 All packets are read from this interface.
207 Packets received for the local node are written to the raw socket.
208 However, at least on Linux, the operating system does not process IP packets destined for the local host.
209
210 .It uml Pq not compiled in by default
211 Create a UNIX socket with the filename specified by
212 .Va Device ,
213 or
214 .Pa @localstatedir@/run/ Ns Ar NETNAME Ns Pa .umlsocket
215 if not specified.
216 .Nm tinc
217 will wait for a User Mode Linux instance to connect to this socket.
218
219 .It vde Pq not compiled in by default
220 Uses the libvdeplug library to connect to a Virtual Distributed Ethernet switch,
221 using the UNIX socket specified by
222 .Va Device ,
223 or
224 .Pa @localstatedir@/run/vde.ctl
225 if not specified.
226 .El
227
228 Also, in case tinc does not seem to correctly interpret packets received from the virtual network device,
229 it can be used to change the way packets are interpreted:
230
231 .Bl -tag -width indent
232
233 .It tun Pq BSD and Linux
234 Set type to tun.
235 Depending on the platform, this can either be with or without an address family header (see below).
236
237 .It tunnohead Pq BSD
238 Set type to tun without an address family header.
239 Tinc will expect packets read from the virtual network device to start with an IP header.
240 On some platforms IPv6 packets cannot be read from or written to the device in this mode.
241
242 .It tunifhead Pq BSD
243 Set type to tun with an address family header.
244 Tinc will expect packets read from the virtual network device
245 to start with a four byte header containing the address family,
246 followed by an IP header.
247 This mode should support both IPv4 and IPv6 packets.
248
249 .It tap Pq BSD and Linux
250 Set type to tap.
251 Tinc will expect packets read from the virtual network device
252 to start with an Ethernet header.
253 .El
254
255 .It Va DirectOnly Li = yes | no Po no Pc Bq experimental
256 When this option is enabled, packets that cannot be sent directly to the destination node,
257 but which would have to be forwarded by an intermediate node, are dropped instead.
258 When combined with the IndirectData option,
259 packets for nodes for which we do not have a meta connection with are also dropped.
260
261 .It Va Forwarding Li = off | internal | kernel Po internal Pc Bq experimental
262 This option selects the way indirect packets are forwarded.
263 .Bl -tag -width indent
264
265 .It off
266 Incoming packets that are not meant for the local node,
267 but which should be forwarded to another node, are dropped.
268
269 .It internal
270 Incoming packets that are meant for another node are forwarded by tinc internally.
271
272 .Pp
273 This is the default mode, and unless you really know you need another forwarding mode, don't change it.
274
275 .It kernel
276 Incoming packets are always sent to the TUN/TAP device, even if the packets are not for the local node.
277 This is less efficient, but allows the kernel to apply its routing and firewall rules on them,
278 and can also help debugging.
279 .El
280
281 .It Va GraphDumpFile Li = Ar filename Bq experimental
282 If this option is present,
283 .Nm tinc
284 will dump the current network graph to the file
285 .Ar filename
286 every minute, unless there were no changes to the graph.
287 The file is in a format that can be read by graphviz tools.
288 If
289 .Ar filename
290 starts with a pipe symbol |,
291 then the rest of the filename is interpreted as a shell command
292 that is executed, the graph is then sent to stdin.
293
294 .It Va Hostnames Li = yes | no Pq no
295 This option selects whether IP addresses (both real and on the VPN) should
296 be resolved. Since DNS lookups are blocking, it might affect tinc's
297 efficiency, even stopping the daemon for a few seconds every time it does
298 a lookup if your DNS server is not responding.
299
300 .Pp
301 This does not affect resolving hostnames to IP addresses from the
302 host configuration files.
303
304 .It Va IffOneQueue Li = yes | no Po no Pc Bq experimental
305 (Linux only) Set IFF_ONE_QUEUE flag on TUN/TAP devices.
306
307 .It Va Interface Li = Ar interface
308 Defines the name of the interface corresponding to the virtual network device.
309 Depending on the operating system and the type of device this may or may not actually set the name of the interface.
310 Under Windows, this variable is used to select which network interface will be used.
311 If you specified a
312 .Va Device ,
313 this variable is almost always already correctly set.
314
315 .It Va KeyExpire Li = Ar seconds Pq 3600
316 This option controls the period the encryption keys used to encrypt the data are valid.
317 It is common practice to change keys at regular intervals to make it even harder for crackers,
318 even though it is thought to be nearly impossible to crack a single key.
319
320 .It Va MACExpire Li = Ar seconds Pq 600
321 This option controls the amount of time MAC addresses are kept before they are removed.
322 This only has effect when
323 .Va Mode
324 is set to
325 .Qq switch .
326
327 .It Va MaxTimeout Li = Ar seconds Pq 900
328 This is the maximum delay before trying to reconnect to other tinc daemons.
329
330 .It Va Mode Li = router | switch | hub Pq router
331 This option selects the way packets are routed to other daemons.
332 .Bl -tag -width indent
333
334 .It router
335 In this mode
336 .Va Subnet
337 variables in the host configuration files will be used to form a routing table.
338 Only unicast packets of routable protocols (IPv4 and IPv6) are supported in this mode.
339
340 .Pp
341 This is the default mode, and unless you really know you need another mode, don't change it.
342
343 .It switch
344 In this mode the MAC addresses of the packets on the VPN will be used to
345 dynamically create a routing table just like an Ethernet switch does.
346 Unicast, multicast and broadcast packets of every protocol that runs over Ethernet are supported in this mode
347 at the cost of frequent broadcast ARP requests and routing table updates.
348
349 .Pp
350 This mode is primarily useful if you want to bridge Ethernet segments.
351
352 .It hub
353 This mode is almost the same as the switch mode, but instead
354 every packet will be broadcast to the other daemons
355 while no routing table is managed.
356 .El
357
358 .It Va Name Li = Ar name Bq required
359 This is the name which identifies this tinc daemon.
360 It must be unique for the virtual private network this daemon will connect to.
361
362 .It Va PingInterval Li = Ar seconds Pq 60
363 The number of seconds of inactivity that
364 .Nm tinc
365 will wait before sending a probe to the other end.
366
367 .It Va PingTimeout Li = Ar seconds Pq 5
368 The number of seconds to wait for a response to pings or to allow meta
369 connections to block. If the other end doesn't respond within this time,
370 the connection is terminated,
371 and the others will be notified of this.
372
373 .It Va PriorityInheritance Li = yes | no Po no Pc Bq experimental
374 When this option is enabled the value of the TOS field of tunneled IPv4 packets
375 will be inherited by the UDP packets that are sent out.
376
377 .It Va PrivateKey Li = Ar key Bq obsolete
378 The private RSA key of this tinc daemon.
379 It will allow this tinc daemon to authenticate itself to other daemons.
380
381 .It Va PrivateKeyFile Li = Ar filename Po Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /rsa_key.priv Pc
382 The file in which the private RSA key of this tinc daemon resides.
383 Note that there must be exactly one of
384 .Va PrivateKey
385 or
386 .Va PrivateKeyFile
387 specified in the configuration file.
388
389 .It Va ProcessPriority Li = low | normal | high
390 When this option is used the priority of the tincd process will be adjusted.
391 Increasing the priority may help to reduce latency and packet loss on the VPN.
392
393 .It Va ReplayWindow Li = Ar bytes Pq 16
394 This is the size of the replay tracking window for each remote node, in bytes.
395 The window is a bitfield which tracks 1 packet per bit, so for example
396 the default setting of 16 will track up to 128 packets in the window.  In high
397 bandwidth scenarios, setting this to a higher value can reduce packet loss from
398 the interaction of replay tracking with underlying real packet loss and/or
399 reordering.  Setting this to zero will disable replay tracking completely and
400 pass all traffic, but leaves tinc vulnerable to replay-based attacks on your
401 traffic.
402
403 .It Va StrictSubnets Li = yes | no Po no Pc Bq experimental
404 When this option is enabled tinc will only use Subnet statements which are
405 present in the host config files in the local
406 .Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /hosts/
407 directory.
408
409 .It Va TunnelServer Li = yes | no Po no Pc Bq experimental
410 When this option is enabled tinc will no longer forward information between other tinc daemons,
411 and will only allow connections with nodes for which host config files are present in the local
412 .Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /hosts/
413 directory.
414 Setting this options also implicitly sets StrictSubnets.
415
416 .It Va UDPRcvBuf Li = Ar bytes Pq OS default
417 Sets the socket receive buffer size for the UDP socket, in bytes.
418 If unset, the default buffer size will be used by the operating system.
419
420 .It Va UDPSndBuf Li = Ar bytes Pq OS default
421 Sets the socket send buffer size for the UDP socket, in bytes.
422 If unset, the default buffer size will be used by the operating system.
423 .El
424
425 .Sh HOST CONFIGURATION FILES
426 The host configuration files contain all information needed
427 to establish a connection to those hosts.
428 A host configuration file is also required for the local tinc daemon,
429 it will use it to read in it's listen port, public key and subnets.
430
431 .Pp
432 The idea is that these files are portable.
433 You can safely mail your own host configuration file to someone else.
434 That other person can then copy it to his own hosts directory,
435 and now his tinc daemon will be able to connect to your tinc daemon.
436 Since host configuration files only contain public keys,
437 no secrets are revealed by sending out this information.
438 .Bl -tag -width indent
439
440 .It Va Address Li = Ar address Oo port Oc Bq recommended
441 The IP address or hostname of this tinc daemon on the real network.
442 This will only be used when trying to make an outgoing connection to this tinc daemon.
443 Optionally, a port can be specified to use for this address.
444 Multiple
445 .Va Address
446 variables can be specified, in which case each address will be tried until a working
447 connection has been established.
448
449 .It Va Cipher Li = Ar cipher Pq blowfish
450 The symmetric cipher algorithm used to encrypt UDP packets.
451 Any cipher supported by OpenSSL is recognised.
452 Furthermore, specifying
453 .Qq none
454 will turn off packet encryption.
455 It is best to use only those ciphers which support CBC mode.
456
457 .It Va ClampMSS Li = yes | no Pq yes
458 This option specifies whether tinc should clamp the maximum segment size (MSS)
459 of TCP packets to the path MTU. This helps in situations where ICMP
460 Fragmentation Needed or Packet too Big messages are dropped by firewalls.
461
462 .It Va Compression Li = Ar level Pq 0
463 This option sets the level of compression used for UDP packets.
464 Possible values are 0 (off), 1 (fast zlib) and any integer up to 9 (best zlib),
465 10 (fast lzo) and 11 (best lzo).
466
467 .It Va Digest Li = Ar digest Pq sha1
468 The digest algorithm used to authenticate UDP packets.
469 Any digest supported by OpenSSL is recognised.
470 Furthermore, specifying
471 .Qq none
472 will turn off packet authentication.
473
474 .It Va IndirectData Li = yes | no Pq no
475 This option specifies whether other tinc daemons besides the one you specified with
476 .Va ConnectTo
477 can make a direct connection to you.
478 This is especially useful if you are behind a firewall
479 and it is impossible to make a connection from the outside to your tinc daemon.
480 Otherwise, it is best to leave this option out or set it to no.
481
482 .It Va MACLength Li = Ar length Pq 4
483 The length of the message authentication code used to authenticate UDP packets.
484 Can be anything from
485 .Qq 0
486 up to the length of the digest produced by the digest algorithm.
487
488 .It Va PMTU Li = Ar mtu Po 1514 Pc
489 This option controls the initial path MTU to this node.
490
491 .It Va PMTUDiscovery Li = yes | no Po yes Pc
492 When this option is enabled, tinc will try to discover the path MTU to this node.
493 After the path MTU has been discovered, it will be enforced on the VPN.
494
495 .It Va Port Li = Ar port Pq 655
496 The port number on which this tinc daemon is listening for incoming connections,
497 which is used if no port number is specified in an
498 .Va Address
499 statement.
500
501 .It Va PublicKey Li = Ar key Bq obsolete
502 The public RSA key of this tinc daemon.
503 It will be used to cryptographically verify it's identity and to set up a secure connection.
504
505 .It Va PublicKeyFile Li = Ar filename Bq obsolete
506 The file in which the public RSA key of this tinc daemon resides.
507
508 .Pp
509 From version 1.0pre4 on
510 .Nm tinc
511 will store the public key directly into the host configuration file in PEM format,
512 the above two options then are not necessary.
513 Either the PEM format is used, or exactly one of the above two options must be specified
514 in each host configuration file,
515 if you want to be able to establish a connection with that host.
516
517 .It Va Subnet Li = Ar address Ns Op Li / Ns Ar prefixlength Ns Op Li # Ns Ar weight
518 The subnet which this tinc daemon will serve.
519 .Nm tinc
520 tries to look up which other daemon it should send a packet to by searching the appropriate subnet.
521 If the packet matches a subnet,
522 it will be sent to the daemon who has this subnet in his host configuration file.
523 Multiple
524 .Va Subnet
525 variables can be specified.
526
527 .Pp
528 Subnets can either be single MAC, IPv4 or IPv6 addresses,
529 in which case a subnet consisting of only that single address is assumed,
530 or they can be a IPv4 or IPv6 network address with a prefixlength.
531 Shorthand notations are not supported.
532 For example, IPv4 subnets must be in a form like 192.168.1.0/24,
533 where 192.168.1.0 is the network address and 24 is the number of bits set in the netmask.
534 Note that subnets like 192.168.1.1/24 are invalid!
535 Read a networking HOWTO/FAQ/guide if you don't understand this.
536 IPv6 subnets are notated like fec0:0:0:1:0:0:0:0/64.
537 MAC addresses are notated like 0:1a:2b:3c:4d:5e.
538
539 .Pp
540 A Subnet can be given a weight to indicate its priority over identical Subnets
541 owned by different nodes.  The default weight is 10. Lower values indicate
542 higher priority. Packets will be sent to the node with the highest priority,
543 unless that node is not reachable, in which case the node with the next highest
544 priority will be tried, and so on.
545
546 .It Va TCPOnly Li = yes | no Pq no Bq obsolete
547 If this variable is set to yes,
548 then the packets are tunnelled over the TCP connection instead of a UDP connection.
549 This is especially useful for those who want to run a tinc daemon
550 from behind a masquerading firewall,
551 or if UDP packet routing is disabled somehow.
552 Setting this options also implicitly sets IndirectData.
553
554 .Pp
555 Since version 1.0.10, tinc will automatically detect whether communication via
556 UDP is possible or not.
557 .El
558
559 .Sh SCRIPTS
560 Apart from reading the server and host configuration files,
561 tinc can also run scripts at certain moments.
562 Under Windows (not Cygwin), the scripts should have the extension
563 .Pa .bat .
564 .Bl -tag -width indent
565
566 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /tinc-up
567 This is the most important script.
568 If it is present it will be executed right after the tinc daemon has been started and has connected to the virtual network device.
569 It should be used to set up the corresponding network interface,
570 but can also be used to start other things.
571 Under Windows you can use the Network Connections control panel instead of creating this script.
572
573 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /tinc-down
574 This script is started right before the tinc daemon quits.
575
576 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /hosts/ Ns Ar HOST Ns Pa -up
577 This script is started when the tinc daemon with name
578 .Ar HOST
579 becomes reachable.
580
581 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /hosts/ Ns Ar HOST Ns Pa -down
582 This script is started when the tinc daemon with name
583 .Ar HOST
584 becomes unreachable.
585
586 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /host-up
587 This script is started when any host becomes reachable.
588
589 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /host-down
590 This script is started when any host becomes unreachable.
591
592 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /subnet-up
593 This script is started when a Subnet becomes reachable.
594 The Subnet and the node it belongs to are passed in environment variables.
595
596 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /subnet-down
597 This script is started when a Subnet becomes unreachable.
598 .El
599
600 .Pp
601 The scripts are started without command line arguments, but can make use of certain environment variables.
602 Under UNIX like operating systems the names of environment variables must be preceded by a
603 .Li $ 
604 in scripts.
605 Under Windows, in
606 .Pa .bat
607 files, they have to be put between
608 .Li %
609 signs.
610 .Bl -tag -width indent
611
612 .It Ev NETNAME
613 If a netname was specified, this environment variable contains it.
614
615 .It Ev NAME
616 Contains the name of this tinc daemon.
617
618 .It Ev DEVICE
619 Contains the name of the virtual network device that tinc uses.
620
621 .It Ev INTERFACE
622 Contains the name of the virtual network interface that tinc uses.
623 This should be used for commands like
624 .Pa ifconfig .
625
626 .It Ev NODE
627 When a host becomes (un)reachable, this is set to its name.
628 If a subnet becomes (un)reachable, this is set to the owner of that subnet.
629
630 .It Ev REMOTEADDRESS
631 When a host becomes (un)reachable, this is set to its real address.
632
633 .It Ev REMOTEPORT
634 When a host becomes (un)reachable, this is set to the port number it uses for communication with other tinc daemons.
635
636 .It Ev SUBNET
637 When a subnet becomes (un)reachable, this is set to the subnet.
638
639 .It Ev WEIGHT
640 When a subnet becomes (un)reachable, this is set to the subnet weight.
641 .El
642
643 .Sh FILES
644 The most important files are:
645 .Bl -tag -width indent
646
647 .It Pa @sysconfdir@/tinc/
648 The top directory for configuration files.
649
650 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /tinc.conf
651 The default name of the server configuration file for net
652 .Ar NETNAME .
653
654 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /hosts/
655 Host configuration files are kept in this directory.
656
657 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /tinc-up
658 If an executable file with this name exists,
659 it will be executed right after the tinc daemon has connected to the virtual network device.
660 It can be used to set up the corresponding network interface.
661
662 .It Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /tinc-down
663 If an executable file with this name exists,
664 it will be executed right before the tinc daemon is going to close
665 its connection to the virtual network device.
666 .El
667
668 .Sh SEE ALSO
669 .Xr tincd 8 ,
670 .Pa http://www.tinc-vpn.org/ ,
671 .Pa http://www.linuxdoc.org/LDP/nag2/ .
672
673 .Pp
674 The full documentation for
675 .Nm tinc
676 is maintained as a Texinfo manual.
677 If the info and tinc programs are properly installed at your site, the command
678 .Ic info tinc
679 should give you access to the complete manual.
680
681 .Pp
682 .Nm tinc
683 comes with ABSOLUTELY NO WARRANTY.
684 This is free software, and you are welcome to redistribute it under certain conditions;
685 see the file COPYING for details.