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

# Networking

> Sandbox network modes: public internet, a CIDR allowlist, or no network at all. Sandboxes never reach Telnyx internal addresses.

Each sandbox has one network mode, fixed at create and shown as `network_mode`. Every mode denies inbound connections and access to Telnyx internal addresses.

| `network_mode` | Request | Outbound access | DNS |
| - | - | - | - |
| `public` | Default | The public internet | Public resolvers |
| `allowlist` | `cidr_allowlist: ["…"]` | Only the listed CIDRs | Not included |
| `blocked` | `block_network: true` | None | None |

`block_network` and `cidr_allowlist` can't be combined.

## Public

The default. The sandbox reaches any public internet address, including `api.telnyx.com` and Telnyx Cloud Storage, and resolves names through public DNS resolvers. Internal addresses are never reachable or resolvable.

## Allowlist

```json theme={null}
{ "cidr_allowlist": ["203.0.113.0/24", "198.51.100.7/32"] }
```

* Outbound traffic is allowed only to the listed CIDRs.
* Internal ranges are always excluded. A CIDR that lies entirely inside them fails with `422 cidr_not_allowed`. A CIDR that contains internal ranges, such as `0.0.0.0/0`, is allowed minus those ranges.
* DNS isn't included. Add your resolvers' addresses to the list, or connect to IP addresses directly.

## Blocked

```json theme={null}
{ "block_network": true }
```

The sandbox has no network at all, not even DNS. Execs, files, logs, and metrics keep working: they don't use the sandbox's network.

## Inbound Connections

Sandboxes accept no inbound connections, and ports can't be exposed. Interact with a running sandbox through [execs](https://developers.telnyx.com/docs/gpu-sandboxes/execs.md), [WebSocket attach](https://developers.telnyx.com/docs/gpu-sandboxes/attach.md), and [files](https://developers.telnyx.com/docs/gpu-sandboxes/files.md).
