The contents of an invitation file that is generated by the tinc invite
command looks like this:
Name = client Netname = vpn ConnectTo = server #-------------------------------------# Name = server Ed25519PublicKey = augbnwegoij123587... Address = server.example.com
The file is basically a concatenation of several host config blocks. Each host
config block starts with Name = ...
. Lines that look like #---#
are not important, it just makes it easier for humans to read the file.
The first host config block is always the one representing the invitee. So the
first Name statement determines the name that the invitee will get. From the
first block, the tinc.conf and hosts/client files will be
generated; the tinc join
command on the client will automatically
separate statements based on whether they should be in tinc.conf or in a
host config file. Some statements are special and are treated differently:
The exact commands added to the tinc-up script depends on the operating system the client is using. Multiple Ifconfig statements can be specified, however one should only use one Ifconfig statement per address family.
Subsequent host config blocks are copied verbatim into their respective files
in hosts/. The invitation file generated by tinc invite
will
normally only contain two blocks; one for the client and one for the server.