This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vpn-tinc [2022/02/11 00:14] – [Tinc Configuration]-clarity, formatting hogwild | vpn-tinc [2024/11/28 23:27] (current) – [Hosts Tab] hogwild | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Tinc Daemon | + | ====== Tinc ====== |
- | Tinc is a newer VPN technology | + | Tinc is a newer VPN technology. Unlike with other protocols, it lets you create partial/ |
The Tinc Daemon menu is divided into tabbed sections, including Tinc Configuration, | The Tinc Daemon menu is divided into tabbed sections, including Tinc Configuration, | ||
- | ===== Tinc Configuration | + | ===== Config Tab ===== |
{{: | {{: | ||
Line 12: | Line 12: | ||
\\ | \\ | ||
- | **Start with WAN: | + | **Start with WAN: |
- | **Interface type:** TUN/TAP: Here, you specify the communication protocol used within your VPN. TUN is routed, and runs at the network (IP) layer. TAP is switched, and runs at the datalink layer. Generally, you should choose TUN. For more information on these protocols, see the " | + | \\ |
- | **VPN Netmask:** Here, specify | + | **Interface type:** specifies |
- | **Host Name:** This is the unique identifier of the OpenVPN device. This is NOT the same as the device' | + | |
+ | * TAP - a switched protocol running at the datalink layer. | ||
- | **Poll interval:** This enables hello packets | + | \\ |
+ | |||
+ | Generally, you should choose TUN. For more details, see " | ||
\\ | \\ | ||
+ | |||
+ | **VPN Netmask:** here, specify the (sub)netmask to be used for intra-site communications. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Host Name:** a unique identifier of the OpenVPN device. This is NOT the device' | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Poll interval:** if set greater than " | ||
+ | |||
+ | | ||
{{: | {{: | ||
Line 28: | Line 43: | ||
\\ | \\ | ||
- | **Ed25519 Private Key: **In this field, you enter your private Ed25519 key. This key is necessary for the encryption process. | + | **Ed25519 Private Key: **the private Ed25519 |
- | **RSA Private Key * : **This field is where you enter your private RSA key. The RSA encryption protocol uses much more CPU power than the Ed25519 protocol. The RSA key is optional and is only needed for communication with hosts using tinc version 1.0 or lower. | + | This is needed for the encryption process. |
- | **Custom: **This field allows you to specify any custom tinc daemon parameters you might want. \\ | + | \\ |
+ | **RSA Private Key: * **here, enter the private RSA key. | ||
- | ===== Hosts ===== | + | RSA encryption uses much more CPU power than the Ed25519 protocol. \\ This key is optional and needed only for communication with hosts using Tinc 1.0 or lower. |
- | Most of the hosts in your network should be defined on this page. Tinc doesn' | + | \\ |
- | {{:pasted: | + | **Custom: **here you can specify any custom Tinc daemon parameters you wish. |
- | **ConnectTo: | ||
- | **Name:** As on the Config tab, this is the unique tinc identifier defined under the Host Name field. | + | ===== Hosts Tab ===== |
- | **Address: **This is used only when direct reachability is possible and defines | + | Most hosts on your network should be defined on this page. Tinc doesn' |
- | **Port: **An empty value configures the default setting (both TCP/UDP port 655). You might need to tweak this value if you include direclty windows devices in your tinc communication. <Fix Me!> Needs clarification. | + | However, you do need to define " |
- | **Compression: | + | \\ |
- | **Subnet:** Defines the primary subnet reachable via the host being defined. | + | {{:pasted: |
- | {{:pasted:20220204-091844.png}} | + | \\ |
+ | |||
+ | **ConnectTo:** this can be set " | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Name:** as on the Config tab, this is a unique Tinc identifier defined in the Host Name field. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Address: **this is used only for direct communication. It defines the IP/FQDN where the host can be found (without a relay). | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Port: **if blank, sets the default setting of TCP/ | ||
+ | |||
+ | You might need to tune this for network devices without root/ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Compression: | ||
+ | |||
+ | Sometimes, compression can increase VPN speeds. You must configure all nodes with the same setting. Think carefully about whether you need this, as most VPN traffic is already compressed at the application layer. Enabling compression adds extra CPU workload and may not increase throughput. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Subnet:** the primary subnet reachable via the host being defined. | ||
+ | |||
+ | This is published to tinc peers so they know which peer hosts the subnet. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Ed25519 Public Key:** here, enter your Ed25519 encryption Public Key. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **RSA Public Key: * ** if you're using RSA encryption, you must define each host's public key here. | ||
+ | |||
+ | RSA is optional in Tinc 1.0 and later. You must provide minimal details for all hosts defined before you can click OK and go to the next row. Clicking OK **does not** save settings. Only after you've defined all hosts, clicked " | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Custom:** in this field, you can define custom settings for each host. | ||
+ | |||
+ | For example, if a host communicates with with another subnet, you could add: | ||
+ | |||
+ | // Subnet = 10.10.8.0/ | ||
+ | |||
+ | \\ | ||
- | **Ed25519 Public Key:** This is where you enter your Ed25519 encryption Public Key. | + | These settings must be consistent with the host IP/subnet + config-page " |
- | **RSA Public Key *:** In case of RSA key you must define the public on on a host basis here. RSA is optional in tinc 1.0+ | + | \\ \\ \\ |
- | For every host you define, you must provide the minimum info before being able to click OK and proceed to the next row. OK doesn' | ||
- | **Custom:** In this field, you are free to define custom configuration settings for each host. For example, if a host is providing reachability to a second subnet you could add something like: //Subnet = 10.10.8.0/ |