How to run two or multiple networks instance of Tinc VPN on same box

How to run two or multiple networks instance of Tinc VPN on same box

To run two or more instances of the Tinc VPN on the same Linux or Unix system, you can use the following steps:

  1. Install Tinc on the system using the package manager or by compiling from source.

  2. Create a configuration directory for each instance of Tinc that you want to run. For example:

refe‮t r‬o:lautturi.com
mkdir /etc/tinc/instance1
mkdir /etc/tinc/instance2
  1. Create the configuration files for each instance of Tinc. The configuration files should be placed in the corresponding configuration directories that you created in step 2.

  2. For each instance of Tinc, create a tinc.conf file in the corresponding configuration directory. The tinc.conf file should contain the following line:

Name = hostname

Replace hostname with the hostname of the Tinc VPN node.

  1. For each instance of Tinc, create a tinc-up script in the corresponding configuration directory. The tinc-up script should contain the commands to bring up the Tinc VPN interface.

  2. For each instance of Tinc, create a tinc-down script in the corresponding configuration directory. The tinc-down script should contain the commands to bring down the Tinc VPN interface.

  3. For each instance of Tinc, create a tinc-nets.boot file in the corresponding configuration directory. The tinc-nets.boot file should contain the list of Tinc VPN nodes that should be connected to when the Tinc VPN is started.

Created Time:2017-10-29 22:08:37  Author:lautturi