e16ade874d
This introduces a new way of doing local discovery: when tinc has local address information for the recipient node, it will send local discovery packets directly to the local address of that node, instead of using broadcast packets. This new way of doing local discovery provides numerous advantages compared to using broadcasts: - No broadcast packets "polluting" the local network; - Reliable even if the sending host has multiple network interfaces (in contrast, broadcasts will only be sent through one unpredictable interface) - Works even if the two hosts are not on the same broadcast domain. One example is a large LAN where the two hosts might be on different local subnets. In fact, thanks to UDP hole punching this might even work if there is a NAT sitting in the middle of the LAN between the two nodes! - Sometimes a node is reachable through its "normal" address, and via a local subnet as well. One might think the local subnet is the best route to the node in this case, but more often than not it's actually worse - one example is where the local segment is a third party VPN running in parallel, or ironically it can be the local segment formed by the tinc VPN itself! Because this new algorithm only checks the addresses for which an edge is already established, it is less likely to fall into these traps. |
||
---|---|---|
.. | ||
sample-config | ||
CONNECTIVITY | ||
Makefile.am | ||
NETWORKING | ||
PROTOCOL | ||
SECURITY2 | ||
SPTPS | ||
tinc-gui.8.in | ||
tinc.8.in | ||
tinc.conf.5.in | ||
tinc.texi | ||
tincd.8.in | ||
tincinclude.texi.in |