Are you trying to create a mesh network of two different VPN on the same server for Tinc? This guide will put you through.
Tinc is basically a Virtual Private Network (VPN) daemon that uses tunneling and encryption to create a secure private network between hosts on the Internet.
Here at LinuxAPT, we regularly help our Customers to perform Software Installation tasks as part of our Server Management Services.
In this context, we shall look into the steps to run two or multiple networks instance of Tinc VPN.
More information about Tinc?
Tinc is an open-source, self-routing, mesh networking protocol and software implementation used for compressed and encrypted virtual private networks.
From Tinc Official Documentation regarding Multiple networks, it is clearly started that;
In order to allow you to run more than one tinc daemon on one computer, for instance if your computer is part of more than one VPN, you can assign a netname to your VPN. It is not required if you only run one tinc daemon, it doesn’t even have to be the same on all the sites of your VPN, but it is recommended that you choose one anyway.
We will assume you use a netname throughout this document. This means that you call tincd with the -n argument, which will assign a netname to this daemon.
The effect of this is that the daemon will set its configuration root to /etc/tinc/netname/, where netname is your argument to the -n option. You’ll notice that it appears in syslog as tinc.netname.
However, it is not strictly necessary that you call tinc with the -n option. In this case, the network name would just be empty, and it will be used as such. tinc now looks for files in /etc/tinc/, instead of /etc/tinc/netname/; the configuration file should be /etc/tinc/tinc.conf, and the host configuration files are now expected to be in /etc/tinc/hosts/.
But it is highly recommended that you use this feature of tinc, because it will be so much clearer whom your daemon talks to. Hence, we will assume that you use it.
Steps to run two or multiple networks instance of Tinc VPN on the same Server?
You can read more about how to set up two or multiple networks instance of Tinc VPN on the same Server.