Overview
Gateways and Rendezvous Servers help the Endpoint and Connector find each other. The two sides then use hole punching to connect directly, or fall back to a Relay. This page covers how a connection is set up. For how the tunnel is protected, see Security. For how the VPN tolerates failures, see Reliability.Rendezvous Servers
Formal runs a fleet of Rendezvous Servers in regions around the world. They let Endpoints reach Connectors that nothing on the internet can connect to. The Connector runs in your private network and requires no inbound ports. Instead, the Connector dials out and keeps persistent connections to several Rendezvous Servers. Every connection starts in your network. These Rendezvous Servers sit in more than one region:- Preferred servers are in the region closest to the Connector. New sessions try them first, so setup is fast.
- Fallback servers are in other regions. Sessions use them when the preferred servers don’t answer.
Signaling protocol
The Endpoint starts a session the first time an application connects to a resource behind the Connector.- The Endpoint connects to the nearest Gateway, which GeoDNS selects.
- The Gateway opens a signaling channel to the Connector, through one of the Rendezvous Servers the Connector is connected to.
- Over this channel, the Endpoint and Connector coordinate hole punching. They exchange the network addresses where each side can be reached.
- Both sides use hole punching to open a direct path to each other. They set up the end-to-end encrypted tunnel over it, or over a Relay if no direct path is possible.