X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=doc%2Ftinc.conf.5.in;h=c6af6d7c258108c5e3ffeebb4a1b1fd4b39fbf7e;hb=e994222a4370621a9ac69c13ed23531c1eaa6809;hp=d7aa7d99937ed5c4547bec71af5544de2c18beda;hpb=0f18410ebaf1c503e5d0ca9624b24df930561d7d;p=tinc diff --git a/doc/tinc.conf.5.in b/doc/tinc.conf.5.in index d7aa7d99..c6af6d7c 100644 --- a/doc/tinc.conf.5.in +++ b/doc/tinc.conf.5.in @@ -287,15 +287,6 @@ When combined with the IndirectData option, packets for nodes for which we do not have a meta connection with are also dropped. .It Va Ed25519PrivateKeyFile Li = Ar filename Po Pa @sysconfdir@/tinc/ Ns Ar NETNAME Ns Pa /ed25519_key.priv Pc The file in which the private Ed25519 key of this tinc daemon resides. -This is only used if -.Va ExperimentalProtocol -is enabled. -.It Va ExperimentalProtocol Li = yes | no Pq yes -When this option is enabled, the SPTPS protocol will be used when connecting to nodes that also support it. -Ephemeral ECDH will be used for key exchanges, -and Ed25519 will be used instead of RSA for authentication. -When enabled, an Ed25519 key must have been generated before with -.Nm tinc generate-ed25519-keys . .It Va Forwarding Li = off | internal | kernel Po internal Pc Bq experimental This option selects the way indirect packets are forwarded. .Bl -tag -width indent @@ -492,6 +483,47 @@ the interaction of replay tracking with underlying real packet loss and/or reordering. Setting this to zero will disable replay tracking completely and pass all traffic, but leaves tinc vulnerable to replay-based attacks on your traffic. +.It Va Sandbox Li = off | normal | high Po normal Pc +Use process sandbox on some operating systems where it is supported (currently that's OpenBSD). +Using this directive on other operating systems with levels higher than +.Ar off +will cause +.Nm tincd +to exit with an error. +The goal is to limit the impact of possible remote attacks against the +.Nm tincd +daemon by running it with lowest privileges necessary for the required features to work. +The following levels are provided: +.Bl -tag -width indent +.It off +Disable sandbox. +No restrictions are put on +.Nm tincd , +all functionality works as if this feature did not exist. +.It normal +The default level which aims to be safe for most users. +Adds some level of protection with only minor reductions in functionality. +For example, executables located in non-standard paths may not be available as +.Nm tincd +scripts or +.Ar exec +proxies, and configuration reloading may not work for some variables, forcing you to restart +.Nm tincd +to apply new settings. +.It high +Fully disables +.Ar exec +proxies and +.Nm tincd +scripts, with the exception of initial +.Nm tinc-up +and +.Nm subnet-up . +This allows +.Nm tincd +to block large parts of operating system interface that may be useful to attackers. +Strongly consider using this level if you need neither of these features. +.El .It Va StrictSubnets Li = yes | no Po no Pc Bq experimental When this option is enabled tinc will only use Subnet statements which are present in the host config files in the local @@ -562,15 +594,14 @@ Multiple .Va Address variables can be specified, in which case each address will be tried until a working connection has been established. -.It Va Cipher Li = Ar cipher Pq blowfish +.It Va Cipher Li = Ar cipher Pq aes-256-cbc The symmetric cipher algorithm used to encrypt UDP packets. Any cipher supported by LibreSSL or OpenSSL is recognised. Furthermore, specifying .Qq none will turn off packet encryption. It is best to use only those ciphers which support CBC mode. -This option has no effect for connections between nodes using -.Va ExperimentalProtocol . +This option only affects communication using the legacy protocol. .It Va ClampMSS Li = yes | no Pq yes This option specifies whether tinc should clamp the maximum segment size (MSS) of TCP packets to the path MTU. This helps in situations where ICMP @@ -585,8 +616,7 @@ Any digest supported by LibreSSL or OpenSSL is recognised. Furthermore, specifying .Qq none will turn off packet authentication. -This option has no effect for connections between nodes using -.Va ExperimentalProtocol . +This option only affects communication using the legacy protocol. .It Va IndirectData Li = yes | no Pq no When set to yes, only nodes which already have a meta connection to you will try to establish direct communication with you. @@ -596,8 +626,7 @@ The length of the message authentication code used to authenticate UDP packets. Can be anything from .Qq 0 up to the length of the digest produced by the digest algorithm. -This option has no effect for connections between nodes using -.Va ExperimentalProtocol . +This option only affects communication using the legacy protocol. .It Va PMTU Li = Ar mtu Po 1514 Pc This option controls the initial path MTU to this node. .It Va PMTUDiscovery Li = yes | no Po yes Pc @@ -770,6 +799,23 @@ script is called, this is set to the invitation URL that has been created. .Pp Do not forget that under UNIX operating systems, you have to make the scripts executable, using the command .Nm chmod Li a+x Pa script . +.Pp +Here's the list of script configuration variables in alphabetical order. +.Bl -tag -width indent +.It Va ScriptsExtension Li = Ar .extension Pq empty +File extension to use for +.Nm tincd +scripts. For example, +.Ar .py , +.Ar .pl , +or +.Ar .rb . +Please note than it is simply concatenated with the script name and the dot is not added automatically. +.It Va ScriptsInterpreter Li = Pa /path/to/interpreter Pq empty +Used as an interpreter for scripts started by +.Nm tincd +by prepending it to the start of the command line. +If the variable is empty (which is the default), scripts are executed directly. .Sh FILES The most important files are: .Bl -tag -width indent