2017-10-31 21:44:25 +00:00
|
|
|
.TH TINC 8
|
|
|
|
.SH NAME
|
2017-11-02 08:05:03 +00:00
|
|
|
tinc - mesh peer to peer VPN
|
2017-10-31 21:44:25 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B ip/tinc
|
|
|
|
[
|
|
|
|
.B -d
|
|
|
|
] [
|
|
|
|
.B -p
|
|
|
|
.I maxprocs
|
|
|
|
] [
|
|
|
|
.B -x
|
|
|
|
.I inside
|
|
|
|
] [
|
|
|
|
.B -o
|
|
|
|
.I outside
|
|
|
|
] [
|
|
|
|
.B -c
|
|
|
|
.I confdir
|
|
|
|
] [
|
|
|
|
.B -n
|
|
|
|
.I myname
|
|
|
|
]
|
|
|
|
.I localip
|
|
|
|
.I localmask
|
|
|
|
[
|
|
|
|
.I hosts...
|
|
|
|
]
|
|
|
|
.SH DESCRIPTION
|
2017-11-02 08:05:03 +00:00
|
|
|
Tinc implements the mesh peer to peer VPN protocol from
|
2017-10-31 21:44:25 +00:00
|
|
|
.I https://www.tinc-vpn.org/
|
2021-08-15 09:54:09 +00:00
|
|
|
as of version 1.0.36. Within a tinc VPN one can reach all
|
2017-10-31 21:44:25 +00:00
|
|
|
the subnets of all hosts within the network even when not
|
|
|
|
directly connected to the owning host of the subnet.
|
|
|
|
.PP
|
|
|
|
Each host that is directly connected to us has its own hostfile under
|
|
|
|
.IR confdir /hosts/ hostname
|
|
|
|
containing its public address, owned subnets, options and RSA public key.
|
|
|
|
The hostfile format is the same as the original tinc implementation.
|
|
|
|
The
|
|
|
|
.I confdir
|
|
|
|
is specified with the
|
|
|
|
.B -c
|
|
|
|
option or defaults to the current working directory.
|
|
|
|
Other hosts might exist behind these directly connected nodes but
|
|
|
|
this information is distributed automatically within the protocol.
|
|
|
|
.PP
|
|
|
|
On startup,
|
|
|
|
.I tinc
|
|
|
|
creates an ip interface with the address
|
|
|
|
.I localip
|
|
|
|
and network mask
|
|
|
|
.I localmask
|
|
|
|
on the
|
|
|
|
.I inside
|
|
|
|
ip stack (specified with
|
|
|
|
.B -x
|
|
|
|
option) and starts listening for incoming connections on the
|
|
|
|
.I outside
|
|
|
|
ip stack (specified with the
|
|
|
|
.B -o
|
|
|
|
option). When optional
|
|
|
|
.I hosts
|
|
|
|
are specified on the command line, then it will also do outgoing connections
|
|
|
|
using the
|
|
|
|
.I outside
|
|
|
|
ip stack. The
|
|
|
|
.I localmask
|
|
|
|
usually is a supernet of all the subnets within the VPN. Our own hostname
|
|
|
|
.I myhost
|
|
|
|
can be specified with
|
|
|
|
.B -n
|
2017-11-01 17:40:17 +00:00
|
|
|
option or is assumed to be the
|
2017-10-31 21:44:25 +00:00
|
|
|
.I sysname
|
|
|
|
when not specified.
|
2017-11-01 17:34:58 +00:00
|
|
|
This host's RSA private key needs to be present in factotum and tagged with
|
2017-10-31 21:44:25 +00:00
|
|
|
.BR "service=tinc"
|
|
|
|
and
|
|
|
|
.BI "host=" myhost .
|
|
|
|
.PP
|
|
|
|
The options:
|
|
|
|
.TP
|
|
|
|
.B -d
|
2017-10-31 21:58:55 +00:00
|
|
|
Enable debug output and do not fork to the background.
|
2017-10-31 21:44:25 +00:00
|
|
|
.TP
|
|
|
|
.B -p
|
2017-11-01 17:34:58 +00:00
|
|
|
Limit the number of client processes (incoming and
|
|
|
|
outgoing connections per protocol) to
|
2017-10-31 21:44:25 +00:00
|
|
|
.IR maxprocs .
|
|
|
|
.TP
|
|
|
|
.B -x
|
|
|
|
Specifies the
|
|
|
|
.I inside
|
|
|
|
and
|
|
|
|
.I outside
|
2017-11-01 17:34:58 +00:00
|
|
|
network stack directory where the tinc ip interface is bound. Defaults to
|
2017-10-31 21:44:25 +00:00
|
|
|
.BR /net .
|
|
|
|
.TP
|
|
|
|
.B -o
|
|
|
|
Specifies the
|
|
|
|
.I outside
|
|
|
|
network stack directory where incoming and outgoing tinc connections
|
|
|
|
are made. Defaults to
|
|
|
|
.BR inside .
|
|
|
|
.TP
|
|
|
|
.B -c
|
|
|
|
Specifies the configuration directory
|
|
|
|
.I confdir
|
|
|
|
for the VPN.
|
|
|
|
.TP
|
|
|
|
.B -n
|
|
|
|
Sets our hostname to
|
2021-08-15 09:54:09 +00:00
|
|
|
.IR myname .
|
2017-10-31 21:44:25 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.IR rsa (8),
|
|
|
|
.IR ip (3)
|
|
|
|
.br
|
|
|
|
.I https://www.tinc-vpn.org/documentation/
|
|
|
|
.SH SOURCE
|
|
|
|
.B /sys/src/cmd/ip/tinc.c
|
2019-07-02 12:54:10 +00:00
|
|
|
.SH HISTORY
|
|
|
|
.I Tinc
|
|
|
|
first appeared in 9front (October, 2017).
|