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

# Networking and private networks

> Allow Cotool traffic, control sandbox destinations, and connect supported private services.

Use the setting that matches the traffic you need to control:

| What you want to do | Where to go |
| - | - |
| Allow requests from Cotool through your firewall | [Settings > Networking](https://app.cotool.ai/settings/networking), **Egress IPs** |
| Limit the public hosts an agent sandbox can reach | [Settings > Networking](https://app.cotool.ai/settings/networking), **Sandbox destinations** |
| Connect a supported integration to a service without a public address | [Settings > Private networks](https://app.cotool.ai/settings/private-networks), on Enterprise workspaces where enabled |

## Allow Cotool's outbound IP addresses

In **Egress IPs**, copy the addresses shown for your deployment into the IP allowlists for services that Cotool calls, such as integrations, log sources, and webhooks. If the page shows **No fixed egress IPs**, that deployment has no fixed addresses to allow.

> [!NOTE]
>
> Some sandbox traffic can use other addresses; the listed IPs aren't a
> guarantee for every sandbox command.

## Control sandbox destinations

**1. Add a destination**

In **Sandbox destinations**, select **Add destination**.

**2. Enter the host and ports**

Enter a public DNS hostname and the ports the command needs, such as
`api.example.com` on `443`. You can use a leading subdomain wildcard
such as `*.example.com`; it doesn't include `example.com` itself. IP
addresses and URLs aren't accepted.

**3. Save the policy**

Save the policy. Changes apply from each sandbox's next command. An
empty list denies proxied sandbox traffic, and private addresses remain
blocked regardless of the list.

Changing the policy requires `setting.sandbox.manage`. An agent inherits the organization policy unless you give it a **Custom policy** under **Sandbox > Network** on the agent details page. A custom policy replaces rather than extends the organization list. Select **Organization policy** to resume inheriting it. **Agents with their own sandbox policy** in Networking lists those overrides.

## Connect a Tailscale private network

> [!NOTE]
>
> Private networks are available on Enterprise workspaces where enabled.
> Managing networks requires organization-wide integration management
> permission (`tool.manage`).

Unlike a sandbox destination, a private network routes traffic for a supported integration, not traffic from an agent sandbox.

**1. Add a network**

In **Settings > Private networks**, select **Add network** and enter a name.

**2. Choose how Cotool joins your tailnet**

The recommended **OAuth client** needs the Tailscale auth keys write scope and at least one authorized tag. Cotool uses it to mint an ephemeral, pre-approved key when it joins. Alternatively, use a reusable, tagged **Auth key** and replace it before it expires.

**3. Restrict access and test the connection**

Restrict the node's tags in your tailnet policy to the hosts and ports the integration needs. Save the network, then select **Test connection** from its actions menu. This checks that Cotool can join the tailnet; it doesn't verify that it can reach the target service.

**4. Use the network in an integration**

In the supported integration's connection settings, choose the private network, save, and verify an operation against the service. For a custom MCP server, select the tailnet in **Network** and use API-key authentication or no authentication; OAuth isn't supported over private networks.

> [!WARNING]
>
> Deleting a network doesn't move affected integrations to the public
> internet. Update their connection settings to a working network first to
> avoid interrupting them.


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