Previous: , Up: Configuration files   [Contents][Index]


4.4.4 How to configure

Step 1. Creating the main configuration file

The main configuration file will be called /etc/tinc/netname/tinc.conf. Adapt the following example to create a basic configuration file:

Name = yourname
Device = /dev/tap0

Then, if you know to which other tinc daemon(s) yours is going to connect, add ‘ConnectTo’ values.

Step 2. Creating your host configuration file

If you added a line containing ‘Name = yourname’ in the main configuration file, you will need to create a host configuration file /etc/tinc/netname/hosts/yourname. Adapt the following example to create a host configuration file:

Address = your.real.hostname.org
Subnet = 192.168.1.0/24

You can also use an IP address instead of a hostname. The ‘Subnet’ specifies the address range that is local for your part of the VPN only. If you have multiple address ranges you can specify more than one ‘Subnet’. You might also need to add a ‘Port’ if you want your tinc daemon to run on a different port number than the default (655).