Purge through the 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 .El
102 .Sh DEBUG LEVELS
103 The tinc daemon can send a lot of messages to the syslog.
104 The higher the debug level,
105 the more messages it will log.
106 Each level inherits all messages of the previous level:
107 .Bl -tag -width indent
108 .It 0
109 This will log a message indicating
110 .Nm
111 has started along with a version number.
112 It will also log any serious error.
113 .It 1
114 This will log all connections that are made with other tinc daemons.
115 .It 2
116 This will log status and error messages from scripts and other tinc daemons.
117 .It 3
118 This will log all requests that are exchanged with other tinc daemons. These include
119 authentication, key exchange and connection list updates.
120 .It 4
121 This will log a copy of everything received on the meta socket.
122 .It 5
123 This will log all network traffic over the virtual private network.
124 .El
125 .Sh FILES
126 .Bl -tag -width indent
127 .It Pa @sysconfdir@/tinc/
128 Directory containing the configuration files tinc uses.
129 For more information, see
130 .Xr tinc.conf 5 .
131 .It Pa @localstatedir@/run/tinc. Ns Ar NETNAME Ns Pa .pid
132 The PID of the currently running
133 .Nm
134 is stored in this file.
135 .El
136 .Sh BUGS
137 The
138 .Va BindToInterface
139 option may not work correctly.
140 .Pp
141 .Sy The cryptography in tinc is not well tested yet. Use it at your own risk!
142 .Pp
143 If you find any bugs, report them to tinc@tinc-vpn.org.
144 .Sh TODO
145 A lot, especially security auditing.
146 .Sh SEE ALSO
147 .Xr tincctl 8 ,
148 .Xr tinc.conf 5 ,
149 .Pa http://www.tinc-vpn.org/ ,
150 .Pa http://www.cabal.org/ .
151 .Pp
152 The full documentation for tinc is maintained as a Texinfo manual.
153 If the info and tinc programs are properly installed at your site,
154 the command
155 .Ic info tinc
156 should give you access to the complete manual.
157 .Pp
158 tinc comes with ABSOLUTELY NO WARRANTY.
159 This is free software, and you are welcome to redistribute it under certain conditions;
160 see the file COPYING for details.
161 .Sh AUTHORS
162 .An "Ivo Timmermans"
163 .An "Guus Sliepen" Aq guus@tinc-vpn.org
164 .Pp
165 And thanks to many others for their contributions to tinc!