X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=doc%2Ftinc.texi;h=66300eae8d01760e1f7605efaaf4b7c25830d440;hb=eb01fd96258e5f99be0e4930eac04e5487a108a0;hp=b595aec1741f0b6ffaac91519065238513e97ab0;hpb=19be9cf7150858311f7898fa3fb525d692d02f64;p=tinc diff --git a/doc/tinc.texi b/doc/tinc.texi index b595aec1..66300eae 100644 --- a/doc/tinc.texi +++ b/doc/tinc.texi @@ -262,7 +262,7 @@ alias char-major-10-200 tun @subsection Configuration of FreeBSD kernels For FreeBSD version 4.1 and higher, tun and tap drivers are included in the default kernel configuration. -Using tap devices is recommended. +The tap driver can be loaded with @code{kldload if_tap}, or by adding @code{if_tap_load="YES"} to @file{/boot/loader.conf}. @c ================================================================== @@ -276,6 +276,7 @@ which adds a tap device to OpenBSD which should work with tinc, but with recent versions of OpenBSD, a tun device can act as a tap device by setting the link0 option with ifconfig. + @c ================================================================== @node Configuration of NetBSD kernels @subsection Configuration of NetBSD kernels @@ -2039,6 +2040,26 @@ the value of this environment variable is used. @c from the manpage @table @code +@item init [@var{name}] +Create initial configuration files and RSA and ECDSA keypairs with default length. +If no @var{name} for this node is given, it will be asked for. + +@item config [set] @var{variable} @var{value} +Set configuration variable @var{variable} to the given @var{value}. +All previously existing configuration variables with the same name are removed. +To set a variable for a specific host, use the notation @var{host}.@var{variable}. + +@item config add @var{variable} @var{value} +As above, but without removing any previously existing configuration variables. + +@item config del @var{variable} [@var{value}] +Remove configuration variables with the same name and @var{value}. +If no @var{value} is given, all configuration variables with the same name will be removed. + +@item edit @var{filename} +Start an editor for the given configuration file. +You do not need to specify the full path to the file. + @item start Start @samp{tincd}. @@ -2121,6 +2142,15 @@ tincctl -n vpn pcap | tcpdump -r - tincctl -n vpn top @end example +Example of configuring tinc using tincctl: + +@example +tincctl -n vpn init foo +tincctl -n vpn config Subnet 192.168.1.0/24 +tincctl -n vpn config bar.Address bar.example.com +tincctl -n vpn config ConnectTo bar +@end example + @c ================================================================== @node tincctl top @section tincctl top