# Connect Claude Tag to an IP-allowlisted custom domain with Tailscale

A [custom domain](/docs/ai-control-plane/org-admin/custom-domain) allowlist that admits Anthropic's IP ranges lets [Claude Tag](/docs/ai-control-plane/guides/claude-tag-gateway-endpoint) reach MCP servers, but sign-in fails. The OAuth sign-in step runs in the person's browser, which is outside the allowlist.

## Route sign-in through Tailscale

On a Linux machine with a static public IPv4 address, enable an [exit node](https://tailscale.com/kb/1103/exit-nodes):

```bash
sudo tailscale set --advertise-exit-node
```

Approve it in the Tailscale admin console under **Machines > Edit route settings**. Each person then selects it under **Exit Nodes** in Tailscale.

To route only the custom domain, use an [app connector](https://tailscale.com/kb/1281/app-connectors) instead.

## Allowlist the node

Open **Organization settings > Settings > Network Access**, select **Edit allowlist**, and add the node's IP next to Anthropic's ranges. Sign-in now works only from devices on the tailnet.

## Limitations

- The allowlist accepts IPv4 only.
- The MCP server must be its own authorization server, not behind a [shared authorization server](/docs/ai-control-plane/mcp-gateway/access/user-sessions#shared-authorization-servers).

---

Index of every Speakeasy page for agents: [llms.txt](https://www.speakeasy.com/llms.txt). AI control plane and MCP gateway content in one file: [llms-full.txt](https://www.speakeasy.com/llms-full.txt). Any page is available as markdown by appending `.md` to its URL or by requesting it with `Accept: text/markdown`.
