# Private network

Reach another VM of your project by name, and join a VM to your Tailscale tailnet.

Source: https://slashinfra.com/docs/platform/private-network
Last modified: 2026-11-30T16:36:19.000Z

A named VM is reachable from the other VMs of its project as `<name>.<project>.internal`, on any TCP port. Tailscale joins a VM to your tailnet, so your other devices can reach it by name.

## Reach another VM by name

A private name needs no key and no open port. The connection wakes a sleeping target, and the target’s program must listen on the port you call.

### Dashboard

- Open [SVMs](https://app.slashinfra.com/svms) and select `api`. 
- Select Terminal. 
- Run `python3 -m http.server 8080`. Leave this tab open. 
- In a second tab, open [SVMs](https://app.slashinfra.com/svms), select `client`, and select Terminal. 
- Run `curl http://api.default.internal:8080/`.

### CLI

Start the server as a job in `api`, then call it from `client`:

```bash
si job start api -- python3 -m http.server 8080
```

Output

```text
1
```

```bash
si exec client -- curl -sS http://api.default.internal:8080/ | head -5
```

Output

```text
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Directory listing for /</title>
```

Stop the server with `si job kill api 1` when you are done.

Any TCP port from 1 to 65535 works. You open nothing first, and the target’s program must listen on the port. A private name carries TCP only, so UDP does not travel over it.

## Choose the project of a name

A private name has three labels: the VM name, the project name, then `internal`. The middle label is the project name, not its id. `api.default.internal` reaches the VM `api` in `default`, and `api.staging.internal` reaches the VM `api` in `staging` from a VM in `staging`.

A name resolves only from a VM of the same project, and only to a VM that has a name. A VM of another project, or of another organization, gets a connection reset. `curl` reports it as `(52) Empty reply from server`. See [Isolation](https://slashinfra.com/docs/how/isolation).

```bash
si exec client -- curl -sS http://api.other.internal:8080/
```

Output

```text
curl: (52) Empty reply from server
```

A VM without a name has no private name. The project segment must be the caller’s project name, so a project id reaches nothing.

## Filter outbound traffic

The `egress` block of a VM filters public HTTP and HTTPS destinations. It does not apply to private names or to traffic inside a tailnet. A private call on port 8080 works when filtering is on, even though the filter allows only ports 80 and 443 for public destinations.

When filtering is on, the VM can still reach Tailscale’s control and relay hosts under `tailscale.com`. Change the block in the VM’s Security tab, under Outbound access, or with [`PATCH /svms/{ref}`](https://slashinfra.com/docs/api-reference/control/svms#patchSvmsByRef). See [VMs](https://slashinfra.com/docs/platform/vms#options) for the fields, defaults and CLI flags.

## Join a tailnet

Tailscale is installed in every VM. Enabling it and logging in joins the VM to your tailnet, so your laptop and other devices reach it by its tailnet name.

### Dashboard

- Open [SVMs](https://app.slashinfra.com/svms) and select `api`. 
- Select Terminal. 
- Run `sudo systemctl enable --now tailscaled`. 
- Run `sudo tailscale up`. 
- Open the login URL that `sudo tailscale up` prints, and approve the node.

### CLI

```bash
si exec api -c 'sudo systemctl enable --now tailscaled && sudo tailscale up'
```

Output

```text
To authenticate, visit:

https://login.tailscale.com/a/...
```

The login is stored on the VM’s disk, so you approve the node once.

## Use a tailnet

After you approve the node, a peer on your tailnet reaches the VM by its VM id on any port. For example, `curl http://6f1c0f0e8a:8080/` or `ssh user@6f1c0f0e8a`. The VM must be awake, so set the `on` sleep policy when it must stay reachable.

Tailnet traffic does not pass the secure gateway. The domain filter does not check it, and secret injection does not add a header to it. Tailscale’s own control and relay traffic does pass the gateway; with filtering on, every host under `tailscale.com` is allowed.

Direct connections between peers do not work from inside a VM, so tailnet traffic goes through a relay and can be slower.

## Options

These are the VM fields that set the filter. The full VM options are on [VMs](https://slashinfra.com/docs/platform/vms#options).

| Field | Type | Default | Allowed values | What it changes |
| --- | --- | --- | --- | --- |   
| `egress.filtering` (`--egress-filter` on create) | boolean | `false` | `true` or `false` | Turns the outbound domain filter on. | 
| `egress.allowed_domains` (`--allow-domain` on create) | array of strings | `[]` | An exact host name, or `*.domain` for its subdomains | The public hosts the filter permits while filtering is on. |

## Permissions

| Operation | Who can | Key action |
| --- | --- | --- |   
| Open a shell in a VM | Any member with a key that includes the VM’s project | None | 
| Reach a VM by name | Anyone with a shell in a VM of the project | None | 
| Join a tailnet | Anyone with root in the VM | None | 
| Change the outbound filter | Any member | `svm:write` |

## Limits

- A private name resolves only inside its project, on TCP ports 1 to 65535. UDP does not travel over a private name. 
- A VM of another project or organization gets a connection reset, which `curl` reports as `(52) Empty reply from server`. 
- A target VM must have a name. A VM without a name has no private name. 
- A private connection counts as a preview connection, so the target VM holds up to 64 at once. 
- Tailnet traffic goes through a relay, not a direct peer connection, so transfers can be slower than on a normal network. 
- A sleeping VM is not reachable through its tailnet. Set the `on` sleep policy to keep it reachable.

The full list is in [Limits](https://slashinfra.com/docs/reference/limits).

## Next

- [Isolation](https://slashinfra.com/docs/how/isolation): what a VM can reach and what it cannot. 
- [VMs](https://slashinfra.com/docs/platform/vms): set the outbound filter and keep a VM awake. 
- [SSH](https://slashinfra.com/docs/platform/ssh): log in from your tailnet.
