> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview of the VPN

> How the Formal VPN connects Endpoints to Connectors, and how it stays available without the Formal Control Plane

## Overview

The Formal VPN gives [Endpoints](https://docs.formal.ai/docs/guides/client-apps/desktop-app.md) an end-to-end encrypted tunnel to your [Connectors](https://docs.formal.ai/docs/guides/core-concepts/connectors/introduction.md).
Your Connectors need no inbound firewall rules.
Formal's VPN infrastructure helps the two sides find each other, but can't read your traffic.

## Components

* **What you run:** the [Formal Endpoint](https://docs.formal.ai/docs/guides/client-apps/desktop-app.md) (laptops and cloud agent sandboxes) and the [Formal Connector](https://docs.formal.ai/docs/guides/core-concepts/connectors/introduction.md)
* **What Formal runs:** the VPN infrastructure, made up of [Gateways](https://docs.formal.ai/docs/guides/vpn/connections.md#signaling-protocol), [Rendezvous Servers](https://docs.formal.ai/docs/guides/vpn/connections.md#rendezvous-servers), and [Relays](https://docs.formal.ai/docs/guides/vpn/connections.md#relays)

![Formal VPN components: Endpoint, Connector, Gateway, Rendezvous Servers, and Relays](https://mintcdn.com/formal/wnk1fid_RLxPKuYB/assets/diagrams/vpn-topology.svg?fit=max\&auto=format\&n=wnk1fid_RLxPKuYB\&q=85\&s=3303b7dcf613cecf08dfb64e9d161b14)

## How connections work

Connectors aren't reachable from the internet.
Instead, each Connector keeps persistent outbound connections to Rendezvous Servers.
When an Endpoint wants to connect, a Gateway sets up a signaling channel to the Connector through those servers.
Over that channel, the two sides use hole punching to open a direct, end-to-end encrypted path.
If the network blocks a direct path, traffic goes through a Relay instead.

See [How connections work](https://docs.formal.ai/docs/guides/vpn/connections.md).

## Security

The VPN is built on CONNECT-IP ([RFC 9484](https://www.rfc-editor.org/rfc/rfc9484)), over QUIC ([RFC 9000](https://www.rfc-editor.org/rfc/rfc9000)) with TLS 1.3 ([RFC 8446](https://www.rfc-editor.org/rfc/rfc8446)), encrypted end to end.
Gateways, Rendezvous Servers, and Relays can't read your traffic.
Tunnels use a post-quantum key exchange, and work with [FIPS 140-3](https://csrc.nist.gov/pubs/fips/140-3/final) Connectors.
You can restrict which regions a Connector's VPN traffic passes through.

See [Security](https://docs.formal.ai/docs/guides/vpn/security.md).

## Reliability

The VPN is designed to run independently of the [Formal Control Plane](https://docs.formal.ai/docs/guides/getting-started/architecture.md).
It stays up when the Control Plane fails, and when entire cloud regions go down.
Every tier runs on several servers across several regions, with no shared database.
Established tunnels don't depend on Gateways or Rendezvous Servers.

See [Reliability](https://docs.formal.ai/docs/guides/vpn/reliability.md).

## Cloud workloads

Agent sandboxes such as Cursor and Devin run the Endpoint too.
They exchange the platform's [OpenID Connect](https://openid.net/specs/openid-connect-core-1_0.html) (OIDC) token for a short-lived certificate, then connect like a laptop.

See [Cloud workloads](https://docs.formal.ai/docs/guides/vpn/cloud-workloads.md).

## Network requirements

* Connector: outbound only, [UDP](https://www.rfc-editor.org/rfc/rfc768) and [HTTPS](https://www.rfc-editor.org/rfc/rfc9110), [IPv6](https://www.rfc-editor.org/rfc/rfc8200) for hole punching
* Endpoint, direct path: UDP over IPv6
* Endpoint, through a Relay: [TURN](https://www.rfc-editor.org/rfc/rfc8656) over UDP or [TCP](https://www.rfc-editor.org/rfc/rfc9293) on port 3478, or over TLS on port 443

## Next steps

> [card] [How connections work](https://docs.formal.ai/docs/guides/vpn/connections.md)
>
> Rendezvous, signaling, hole punching, and Relays

> [card] [Security](https://docs.formal.ai/docs/guides/vpn/security.md)
>
> End-to-end encryption, post-quantum key exchange, and FIPS 140-3

> [card] [Reliability](https://docs.formal.ai/docs/guides/vpn/reliability.md)
>
> Fault tolerance and Control Plane independence

> [card] [Cloud workloads](https://docs.formal.ai/docs/guides/vpn/cloud-workloads.md)
>
> Cursor, Devin, and other agent sandboxes


## Related topics

- [Overview](https://docs.formal.ai/docs/changelog/index.md)
- [Get connector VPN](https://docs.formal.ai/api-reference/corev1connectorservice/get-connector-vpn.md)
- [Update connector VPN](https://docs.formal.ai/api-reference/corev1connectorservice/update-connector-vpn.md)
- [List connector VPN regions](https://docs.formal.ai/api-reference/corev1connectorservice/list-connector-vpn-regions.md)
- [GetInsightsOverview](https://docs.formal.ai/api-reference/corev1insightsservice/getinsightsoverview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.