Twingate

Deploying Connectors

For context, it's helpful to review Understanding Connectors first. With that in mind, we recommend the following:

  1. Deploy as many Connectors as you need; at least one per network segment. There is no advantage to forcing network traffic to flow through a single or smaller number of Connectors. If traffic must flow to a Resource on a different network segment to the Connector, then you should configure and deploy another Remote network / Connector combination on your Twingate network.
  2. For redundancy, deploy at least two Connectors in every network segment. Multiple Connectors in the same Twingate Remote network are automatically clustered, which means that any Connector can forward traffic to Resources on the same Twingate Remote network.
  3. Connectors on the same Twingate Remote network should have the same network permissions. Because Connectors on the same Twingate Remote network are clustered, they should be considered interchangeable. Network permissions should be the same for every Connector to ensure that Resources are always accessible, regardless of which Connector is in use.
  4. Connectors should be deployed as close to Resources as possible. A significant benefit of establishing your Twingate network is that traffic is routed directly from users' devices to the Resource they are accessing. Because Connectors serve as the destination exit point for traffic, it's important that the "last mile" between the Connector and any Resources it serves is as short as possible to provide users with the best performance.

Network Considerations

Regardless of your chosen deployment method, the following principles apply:

  1. Connectors only require outbound Internet access. Inbound Internet access to a Connector host is neither required nor recommended from a security standpoint. If you wish to limit outbound ports, you may limit to 443, and the inclusive range of 30000-31000.
  2. Ensure that Connectors have both permission and routing rules to access private Resources. Resources that you configure in the Admin console will be resolved and routed from the Connector host.

These same principles apply if you are using Connectors as public exit nodes, except that you need to ensure that the Connector host has a static public IP assigned to it, either directly or via a NAT Internet gateway.

Hardware Considerations

In general, the host that the connector is running on should be optimized for, in decreasing order of importance:

  • Network bandwidth
  • Memory
  • CPU

If a connector host becomes resource-bound, you can deploy additional connectors within the same Remote network. Twingate will automatically load balance across multiple connectors in the same logical Remote network that you define within Twingate.

Below we have some platform-specific machine recommendations for Connectors.

AWS

A t3a.micro Linux EC2 instance is a cost-effective choice and sufficient to handle bandwidth for at least a hundred remote users under typical usage patterns.

Google Cloud

A g1-small machine is sufficient as a starting point for at least a hundred remote users under typical usage patterns.

Azure

For Azure, we recommend using their Container Instance service, which does not require hardware selection.

On-premise / Colo / VPS

A Linux VM allocated with 1 CPU and 2GB RAM is sufficient to handle at least a hundred remote users under typical usage patterns.

  • Any Linux flavor that supports Docker is acceptable.
  • Another option is to run Docker on Windows. More detailed information can be found on our Windows documentation page.

Updated 14 days ago


Deploying Connectors


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.