Dump through control socket
[tinc] / doc / tincd.8.in
1 .Dd 2002-03-25
2 .Dt TINCD 8
3 .\" Manual page created by:
4 .\" Ivo Timmermans
5 .\" Guus Sliepen <guus@tinc-vpn.org>
6 .Sh NAME
7 .Nm tincd
8 .Nd tinc VPN daemon
9 .Sh SYNOPSIS
10 .Nm
11 .Op Fl cdDKnL
12 .Op Fl -config Ns = Ns Ar DIR
13 .Op Fl -no-detach
14 .Op Fl -debug Ns Op = Ns Ar LEVEL
15 .Op Fl -net Ns = Ns Ar NETNAME
16 .Op Fl -mlock
17 .Op Fl -logfile Ns Op = Ns Ar FILE
18 .Op Fl -bypass-security
19 .Op Fl -help
20 .Op Fl -version
21 .Sh DESCRIPTION
22 This is the daemon of tinc, a secure virtual private network (VPN) project.
23 When started,
24 .Nm
25 will read it's configuration file to determine what virtual subnets it has to serve
26 and to what other tinc daemons it should connect.
27 It will connect to the ethertap or tun/tap device
28 and set up a socket for incoming connections.
29 Optionally a script will be executed to further configure the virtual device.
30 If that succeeds,
31 it will detach from the controlling terminal and continue in the background,
32 accepting and setting up connections to other tinc daemons
33 that are part of the virtual private network.
34 Under Windows (not Cygwin) tinc will install itself as a service,
35 which will be restarted automatically after reboots.
36 .Sh OPTIONS
37 .Bl -tag -width indent
38 .It Fl c, -config Ns = Ns Ar DIR
39 Read configuration files from
40 .Ar DIR
41 instead of
42 .Pa @sysconfdir@/tinc/ .
43 .It Fl D, -no-detach
44 Don't fork and detach.
45 This will also disable the automatic restart mechanism for fatal errors.
46 If not mentioned otherwise, this will show log messages on the standard error output.
47 .It Fl d, -debug Ns Op = Ns Ar LEVEL
48 Increase debug level or set it to
49 .Ar LEVEL
50 (see below).
51 .It Fl n, -net Ns = Ns Ar NETNAME
52 Connect to net
53 .Ar NETNAME .
54 .It Fl L, -mlock
55 Lock tinc into main memory.
56 This will prevent sensitive data like shared private keys to be written to the system swap files/partitions.
57 .It Fl -logfile Ns Op = Ns Ar FILE
58 Write log entries to a file instead of to the system logging facility.
59 If
60 .Ar FILE
61 is omitted, the default is
62 .Pa @localstatedir@/log/tinc. Ns Ar NETNAME Ns Pa .log.
63 .It Fl -controlsocket Ns = Ns Ar FILENAME
64 Open control socket at
65 .Ar FILENAME .
66 If
67 .Ar FILE
68 is omitted, the default is
69 .Pa @localstatedir@/run/tinc. Ns Ar NETNAME Ns Pa .control.
70 .It Fl -bypass-security
71 Disables encryption and authentication of the meta protocol.
72 Only useful for debugging.
73 .It Fl -help
74 Display short list of options.
75 .It Fl -version
76 Output version information and exit.
77 .El
78 .Sh SIGNALS
79 .Bl -tag -width indent
80 .It ALRM
81 Forces
82 .Nm
83 to try to connect to all uplinks immediately.
84 Usually
85 .Nm
86 attempts to do this itself,
87 but increases the time it waits between the attempts each time it failed,
88 and if
89 .Nm
90 didn't succeed to connect to an uplink the first time after it started,
91 it defaults to the maximum time of 15 minutes.
92 .It HUP
93 Partially rereads configuration files.
94 Connections to hosts whose host config file are removed are closed.
95 New outgoing connections specified in
96 .Pa tinc.conf
97 will be made.
98 .It INT
99 Temporarily increases debug level to 5.
100 Send this signal again to revert to the original level.
101 .It WINCH
102 Purges all information remembered about unreachable nodes.
103 .El
104 .Sh DEBUG LEVELS
105 The tinc daemon can send a lot of messages to the syslog.
106 The higher the debug level,
107 the more messages it will log.
108 Each level inherits all messages of the previous level:
109 .Bl -tag -width indent
110 .It 0
111 This will log a message indicating
112 .Nm
113 has started along with a version number.
114 It will also log any serious error.
115 .It 1
116 This will log all connections that are made with other tinc daemons.
117 .It 2
118 This will log status and error messages from scripts and other tinc daemons.
119 .It 3
120 This will log all requests that are exchanged with other tinc daemons. These include
121 authentication, key exchange and connection list updates.
122 .It 4
123 This will log a copy of everything received on the meta socket.
124 .It 5
125 This will log all network traffic over the virtual private network.
126 .El
127 .Sh FILES
128 .Bl -tag -width indent
129 .It Pa @sysconfdir@/tinc/
130 Directory containing the configuration files tinc uses.
131 For more information, see
132 .Xr tinc.conf 5 .
133 .It Pa @localstatedir@/run/tinc. Ns Ar NETNAME Ns Pa .pid
134 The PID of the currently running
135 .Nm
136 is stored in this file.
137 .El
138 .Sh BUGS
139 The
140 .Va BindToInterface
141 option may not work correctly.
142 .Pp
143 .Sy The cryptography in tinc is not well tested yet. Use it at your own risk!
144 .Pp
145 If you find any bugs, report them to tinc@tinc-vpn.org.
146 .Sh TODO
147 A lot, especially security auditing.
148 .Sh SEE ALSO
149 .Xr tincctl 8 ,
150 .Xr tinc.conf 5 ,
151 .Pa http://www.tinc-vpn.org/ ,
152 .Pa http://www.cabal.org/ .
153 .Pp
154 The full documentation for tinc is maintained as a Texinfo manual.
155 If the info and tinc programs are properly installed at your site,
156 the command
157 .Ic info tinc
158 should give you access to the complete manual.
159 .Pp
160 tinc comes with ABSOLUTELY NO WARRANTY.
161 This is free software, and you are welcome to redistribute it under certain conditions;
162 see the file COPYING for details.
163 .Sh AUTHORS
164 .An "Ivo Timmermans"
165 .An "Guus Sliepen" Aq guus@tinc-vpn.org
166 .Pp
167 And thanks to many others for their contributions to tinc!