This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vpn-tinc [2023/05/26 18:43] – [Config Tab] 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, | ||
+ | |||
===== Config Tab ===== | ===== Config Tab ===== | ||
Line 11: | 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: | + | * TUN - a routed protocol running at the network (IP) layer. |
+ | * TAP - a switched protocol running at the datalink layer. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | 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: | ||
+ | |||
+ | \\ | ||
- | **Poll interval: | + | **Poll interval: |
| | ||
Line 27: | Line 43: | ||
\\ | \\ | ||
- | **Ed25519 Private Key: **In this field, enter your private Ed25519 encryption key. This key is needed for the encryption process. | + | **Ed25519 Private Key: **the private Ed25519 encryption key. |
- | **RSA Private Key: * **Here, enter the private RSA key. RSA encryption uses much more CPU power than the Ed25519 protocol. \\ The RSA key is optional and is needed | + | This is needed for the encryption process. |
- | **Custom: **This | + | \\ |
+ | |||
+ | **RSA Private Key: * **here, enter the private RSA key. | ||
+ | |||
+ | 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. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Custom: **here | ||
===== Hosts Tab ===== | ===== Hosts Tab ===== | ||
- | Most of the hosts on your network should be defined on this page. Tinc doesn' | + | Most hosts on your network should be defined on this page. Tinc doesn' |
However, you do need to define " | However, you do need to define " | ||
Line 46: | Line 70: | ||
\\ | \\ | ||
- | **ConnectTo: | + | **ConnectTo: |
- | **Name: | + | \\ |
- | **Address: **This is used only when direct communication is possible and defines the IP address or (fully qualified domain name) where the host can be found. Direct communication means without relay. | + | **Name:** as on the Config tab, this is a unique Tinc identifier defined in the Host Name field. |
- | **Port: | + | \\ |
- | **Compression:** In some cases, compression may increase VPN speeds. The default of " | + | **Address: **this is used only for direct communication. It defines |
- | **Subnet: | + | \\ |
- | **Ed25519 Public Key:** This is where you enter your Ed25519 encryption Public Key. | + | **Port: **if blank, sets the default setting of TCP/ |
- | **RSA Public Key: * ** If you're using an RSA key, you must define the public key for each host here. RSA is optional in Tinc versions 1.0 and later. | + | You might need to tune this for network devices without root/ |
- | You must provide minimum information for every host defined before you can click OK and proceed to the next row. Clicking OK **does not** save settings. After you've defined all hosts, and clicked " | + | \\ |
- | **Custom:** In this field, | + | **Compression:** lets you set the compression level (between the default of " |
- | For example, if a host communicates | + | 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 = 10.10.8.0/ | + | \\ |
- | You must ensure these settings are consistent with the host IP/subnet | + | **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/ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | These settings must be consistent with the host IP/subnet + config-page " | ||
+ | |||
+ | \\ \\ \\ | ||