Go to the first, previous, next, last section, table of contents.


Running tinc

If everything else is done, you can start tinc by typing the following command:

tincd -n netname

tinc will detach from the terminal and continue to run in the background like a good daemon. If there are any problems however you can try to increase the debug level and look in the syslog to find out what the problems are.

Runtime options

Besides the settings in the configuration file, tinc also accepts some command line options.

This list is a longer version of that in the manpage. The latter is generated automatically, so may be more up-to-date.

`--bypass-security'
Disables encryption and authentication. Only useful for debugging.
`-c, --config=PATH'
Read configuration options from the directory PATH. The default is `/etc/tinc/netname/'.
`-d, --debug=LEVEL'
Set debug level to LEVEL. The higher the debug level, the more gets logged. Everything goes via syslog.
`-K, --generate-keys[=BITS]'
Generate public/private keypair of BITS length. If BITS is not specified, 1024 is the default. tinc will ask where you want to store the files, but will default to the configuration directory (you can use the -c or -n option in combination with -K). After that, tinc will quit.
`--help'
Display a short reminder of these runtime options and terminate.
`-k, --kill'
Attempt to kill a running tincd and exit. A TERM signal (15) gets sent to the daemon that his its PID in `/var/run/tinc.NETNAME.pid'. Use it in conjunction with the -n option to make sure you kill the right tinc daemon.
`-n, --net=NETNAME'
Connect to net NETNAME. See section Multiple networks.
`-D, --no-detach'
Don't fork and detach. This will also disable the automatic restart mechanism for fatal errors.
`--version'
Output version information and exit.

Error messages

What follows is a list of the most common error messages you can see when configuring tinc. Most of these messages are visible in the syslog only, so keep an eye on it!

Could not open /dev/tap0: No such device
Can't write to /dev/misc/net/tun: No such device
Packet with destination 1.2.3.4 is looping back to us!
Network doesn't work, syslog shows only packets of length 46
Jan 1 12:00:00 host tinc.net[1234]: Read packet of length 46 from tap device
Jan 1 12:00:00 host tinc.net[1234]: Trying to look up 0.0.192.168 in connection list failed!
Network address and subnet mask do not match!
This is a bug: net.c:253: 24: Some error
Error reading RSA key file `rsa_key.priv': No such file or directory


Go to the first, previous, next, last section, table of contents.