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

# Connect to other networks

> Connect an e6data deployment on AWS to your other networks with Transit Gateway, shared subnets, VPC peering, VPN or Direct Connect, and reach it from BI tools.

How-to guideApplies to: CloudPrem on AWS

e6data works with the usual ways of joining networks: VPC peering, AWS Transit Gateway, site-to-site VPN and AWS Direct Connect. e6data needs no permissions in your hub or network account. Your network team does a short list of hub-side tasks.

## Requirements

* The workspace ranges must not overlap any network they connect to. This includes the Kubernetes service range.
* Routes are needed in both directions.
* Users and tools reach the workspace endpoint on TCP 443 and 5432.
* The workspace hostname must resolve to the private address from wherever users connect.

## Transit Gateway and a central inspection VPC

This setup works end to end: the workspace VPC has no NAT gateway, all egress goes through a Transit Gateway to a central firewall that allows only the e6data control-plane host, and the console sends through that firewall as an explicit proxy. Clusters resume and queries run.

1. Attach the workspace VPC to your Transit Gateway.

2. Add routes:

   | Route table | Destination | Target |
   | - | - | - |
   | Workspace subnets | Inspection VPC range, or `0.0.0.0/0` if all egress goes central | Transit Gateway |
   | Inspection VPC | Every workspace VPC range, including secondary and IPAM ranges | Transit Gateway |
   | Inspection VPC | `0.0.0.0/0` | Your NAT or internet gateway |

3. On the central firewall, allow HTTPS to the e6data control-plane host ([Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md)).

4. If the firewall decrypts TLS, exempt the control-plane host or give the console your CA ([Proxy and TLS inspection](https://docs.e6data.com/platform/deploy/aws-cloudprem/proxy-and-tls-inspection.md)).

All traffic reaches the firewall from node addresses, even with pods in `100.64.0.0/16`.

## Subnets shared from a network account (AWS RAM)

This works end to end across two accounts.

| Task | Network (owner) account | Workload account, where e6data runs |
| - | - | - |
| VPC, subnets, route tables, NAT / Transit Gateway, VPC endpoints, secondary ranges | Yes | |
| Share subnets through RAM | Yes | |
| Subnet discovery tags | Owner's tags are not visible to the workload account | Add them here if needed |
| EKS cluster, node groups, security groups, load balancers | | Yes |

1. In the management account, turn on RAM sharing with AWS Organizations: `aws ram enable-sharing-with-aws-organization`. Without it, RAM refuses to share subnets.
2. Share at least two private subnets in different AZs.
3. VPC endpoint security groups (owner account) must allow 443 from the e6data subnets, and from the pod range with custom networking.
4. The workload account can't change route tables, NACLs, VPC endpoints or the owner's tags. Ask the network team.

## VPC peering

Peer the workspace VPC with your other VPCs as you would any VPC. The requirements above apply: no overlapping ranges (including the Kubernetes service range), and routes in both directions. The peering connection must be active with traffic forwarded. For an example Terraform setup for peering two VPCs, see [VPC peering on AWS](https://docs.e6data.com/platform/networking/vpc-peering.md).

## On-premises: VPN, Direct Connect

e6data needs no special settings. Tunnels carry smaller packets, so check packet size:

| Path | What to set |
| - | - |
| Any path | Don't block ICMP "fragmentation needed" (IPv4 type 3 code 4) or "packet too big" (ICMPv6) |

AWS values, from AWS documentation:

| Path | What to set |
| - | - |
| AWS Site-to-Site VPN | Tunnel MTU 1446 and TCP MSS 1406 at most. Lower with some ciphers: for example AES-CBC with SHA2-256 and NAT traversal needs MTU 1422 and MSS 1382. Use AWS's table for your cipher ([AWS: customer gateway best practices](https://docs.aws.amazon.com/vpn/latest/s2svpn/cgw-best-practice.html)). General guidance: clamp TCP MSS to 1360-1379 in both directions |
| AWS Direct Connect | MTU 1500 by default. Private virtual interfaces can use 9001 and transit virtual interfaces 8500. If a VPN advertises the same route, 1500 is used ([AWS: Direct Connect MTU](https://docs.aws.amazon.com/directconnect/latest/UserGuide/set-jumbo-frames-vif.html)) |

Test from a machine on your network:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
ping -M do -s 1372 <WORKSPACE_PRIVATE_IP>      # Linux. 1372 + 28 header bytes = 1400
```

```powershell theme={"theme":{"light":"github-light","dark":"github-dark"}}
ping -f -l 1372 <WORKSPACE_PRIVATE_IP>         # Windows
```

If this fails while smaller sizes work, lower MSS clamping on the VPN device.

## BI tools

| Tool | How it connects | Network |
| - | - | - |
| SaaS BI tool through an AWS endpoint service | The tool's private connection to an endpoint service in front of a dedicated internal NLB (443 and 5432 only; never the workspace's own NLB). You accept each connection request. For production, register targets with a `TargetGroupBinding` | Ports 443 and 5432; the NLB uses 1 address per AZ |
| Desktop tools and drivers | Over your VPN or private network | 443 and 5432 to the endpoint |

* Use each tool's built-in PostgreSQL connector.
* With a private CA, install it on the gateway or Bridge hosts.
* Tableau Bridge live queries time out after 15 minutes. Each Bridge client runs 16 live queries at once by default.
* Tableau Cloud Private Connect works only on AWS.

The Power BI and Tableau details come from vendor documentation. An AWS endpoint service in front of the workspace has been checked for connectivity on ports 443 and 5432.

You can also run the endpoint as a NodePort behind your own load balancer, without the AWS Load Balancer Controller. Only nodes that run Envoy pass health checks, so turn on cross-zone load balancing.

> [!NOTE]
>
> [AWS PrivateLink](https://docs.e6data.com/platform/networking/aws-privatelink.md) describes an endpoint service that e6data's own AWS account connects to. A CloudPrem deployment needs no inbound connection from e6data, so you don't need that setup here. Use an endpoint service only to give your own BI tools private access, as in the table above.

## Choosing a connection method

| You need | Use | Notes |
| - | - | - |
| Central egress and inspection for several VPCs | Transit Gateway to an inspection VPC | Works end to end |
| Network team owns the VPC; e6data in a workload account | RAM-shared subnets | Works end to end |
| Users in offices | Site-to-site VPN or Direct Connect | Settings from AWS documentation |
| SaaS BI tool on a private endpoint | Vendor gateway (Power BI, Tableau Bridge) or AWS endpoint service | Endpoint service: connectivity on 443 and 5432 checked. Vendor gateways: settings from vendor documentation |

## Preflight check

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
aws ec2 describe-route-tables --route-table-ids <INSPECTION_RT> --query 'RouteTables[].Routes[]'
```

Expected: every workspace range has a return route; peering is `Connected` with forwarded traffic allowed.

## Verify

1. From your network, the workspace hostname resolves to the private address.
2. `curl https://<WORKSPACE_HOSTNAME>/` returns HTTP 200; port 5432 is open.
3. The central firewall log shows only allowed hosts from the workspace.
4. A cluster resumes and a query runs from the e6data console.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| Egress works from some subnets only | Inspection VPC lacks a return route for a secondary or IPAM range | Add every workspace range to the inspection route table |
| Load balancer gets no address in RAM-shared subnets | Subnet tags set only in the owner account | Add `kubernetes.io/role/internal-elb` in the workload account |
| Small queries work over VPN; large results stall | Packet size on the tunnel | MSS clamping and ICMP, as above |

## Limitations

* Private connectivity to the e6data control plane: Not offered today.

## See also

* [Network requirements](https://docs.e6data.com/platform/deploy/aws-cloudprem/network-requirements.md)
* [Private-only deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/private-only-deployment.md)
* [Proxy and TLS inspection](https://docs.e6data.com/platform/deploy/aws-cloudprem/proxy-and-tls-inspection.md)
* [Hardened reference architecture](https://docs.e6data.com/platform/deploy/aws-cloudprem/reference-architecture-hardened.md)
* [Hostnames and ports](https://docs.e6data.com/platform/deploy/aws-cloudprem/hostnames-and-ports.md)


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