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

# Tunneling setup for cloud providers

> Deploy a Serververse™ Transit tunnel on your cloud server and route a real public IP to it.

**Serververse™ Transit** gives your Linux server a dedicated public IP routed through the Serververse network. Provisioning is token-based: the dashboard generates a single install command that configures and brings up the tunnel for you.

> [!WARNING]
>
> Make sure you have **out-of-band access** (IPMI, VNC, or a provider console) before you start. A misconfigured route can temporarily cut off SSH.

## Before you begin

> [card] A Linux server
>
> VPS, bare-metal server, or homelab machine. For LXC containers, follow the [LXC Container Setup](https://docs.serververs.com/labs/ip-transit/tunneling-lxc) guide.

> [card] Root access
>
> You'll need `root` or `sudo` on the server.

> [card] curl or wget
>
> Used to download and run the installer.

> [card] Network Transit access
>
> A Serververse account with a transit tunnel assigned.

### Unsupported environments

> [!WARNING]
>
> **LXC containers require** `/dev/net/tun `**passthrough before installation.** Follow the [LXC Container Setup](https://docs.serververs.com/labs/ip-transit/tunneling-lxc) guide to configure the container first.

## Set up your tunnel

**1. Open your tunnel in the dashboard**

Sign in to the [Serververse Labs Dashboard](https://labs.serververs.com).

![Serververse Labs sign-in page](https://mintcdn.com/serververse/8tdQmPDJN_khTQSY/labs/images/ip-transit/dashboard-login.png?fit=max\&auto=format\&n=8tdQmPDJN_khTQSY\&q=85\&s=91159cc56d5665fa2d6f47cb89a8a1df)

Sign in to the dashboard

Go to **Tunnels**.

![Network Transit tunnels list](https://mintcdn.com/serververse/8tdQmPDJN_khTQSY/labs/images/ip-transit/dashboard-tunnels-list.png?fit=max\&auto=format\&n=8tdQmPDJN_khTQSY\&q=85\&s=4e11dec4e87a4473e913ef1a6dc3c53c)

Your tunnels

Your assigned tunnel appears as a card. Click it to open the tunnel details.

![Assigned tunnel card](https://mintcdn.com/serververse/8tdQmPDJN_khTQSY/labs/images/ip-transit/cloud-tunnel-card.png?fit=max\&auto=format\&n=8tdQmPDJN_khTQSY\&q=85\&s=497d8ef1a3c3d0d468ade98084ef380a)

Assigned tunnel card

**2. Copy your install command**

The details page shows your public IP, bandwidth usage, and transfer rate. Click **Generate command** to copy the install command to your clipboard.

![Generate command button](https://mintcdn.com/serververse/8tdQmPDJN_khTQSY/labs/images/ip-transit/cloud-generate-command.png?fit=max\&auto=format\&n=8tdQmPDJN_khTQSY\&q=85\&s=15a17b6a5cba823c88b74f7700e3dfb2)

Generate the command

![Command copied confirmation](https://mintcdn.com/serververse/8tdQmPDJN_khTQSY/labs/images/ip-transit/cloud-command-copied.png?fit=max\&auto=format\&n=8tdQmPDJN_khTQSY\&q=85\&s=d6360aa6e14fa82800b15e7a8b4c4727)

Command copied to clipboard

> [!NOTE]
>
> The command is unique to your account and transit IP. Treat it like a password and don't share it publicly.

**3. Run the installer**

SSH into your server and paste the command. It looks like this:

```bash curl theme={null}
bash <(curl -fsSL https://labs-api.serververs.com/api/v0.3/provision/install.sh) --token <YOUR_TOKEN>
```

```bash wget theme={null}
```

**Step 1**

The installer:

* Validates your provisioning token
* Configures Transit for your use case
* Brings up the `sv-transit` tunnel interface
* Routes your allocated public IP through the Serververse network
* Installs the `sv-transit`[ CLI](#manage-your-tunnel)

**2. Verify the tunnel**

Check that the interface is up:

```bash theme={null}
ip link show sv-transit
```

Then confirm traffic leaves through your routed IP:

```bash theme={null}
curl -4 --interface <YOUR_ROUTED_IP> ip.me
```

> [!TIP]
>
> The IP returned should match the transit IP shown in your dashboard.

In the dashboard, the tunnel should show as **Online**, with a recent last handshake, your public IP, and live bandwidth.

![Tunnel details page showing an online tunnel](https://mintcdn.com/serververse/8tdQmPDJN_khTQSY/labs/images/ip-transit/dashboard-tunnel-details.png?fit=max\&auto=format\&n=8tdQmPDJN_khTQSY\&q=85\&s=83d2087b0b5d0463487e4c807aa64ab7)

An online tunnel in the dashboard

## Manage your tunnel

Manage your tunnel from the **dashboard**, or directly on the server with the `sv-transit `**CLI**.

> [tab] Dashboard
>
> View and manage all your tunnels in one place.
>
> **1. Sign in**
>
> Open the [Serververse Labs Dashboard](https://labs.serververs.com).
>
> **2. Open Network Transit**
>
> Go to **Network Transit**.
>
> **3. Select a tunnel**
>
> Click a tunnel to see its public IP, connection status, and settings.

> [tab] sv-transit CLI
>
> The installer adds `sv-transit` to your server automatically.
>
> > [!NOTE]
> >
> > Every command except `version` needs root, so run them with `sudo`. Your provisioning token is the `--token` value in the install command from the dashboard.
>
> | Command | What it does |
> | - | - |
> | `install` | Sets up the tunnel on this machine |
> | `status` | Shows whether the tunnel is up and its last handshake |
> | `migrate` | Replaces an older install with a fresh one |
> | `uninstall` | Removes the tunnel (alias: `remove`) |
> | `version` | Prints the CLI version |
>
> ### Install
>
> ```bash theme={null}
> sudo sv-transit install --token <provisioning-token>
> ```
>
> For scripted setups, add `--yes` to accept the Terms of Service without a prompt:
>
> ```bash theme={null}
> sudo sv-transit install --token <provisioning-token> --yes
> ```
>
> > [!TIP]
> >
> > `--yes` only skips the Terms of Service prompt. Safety warnings for `migrate` and `uninstall` are always shown.
>
> ### Check status
>
> ```bash theme={null}
> sudo sv-transit status
> ```
>
> ### Migrate from an older version
>
> Stops **every** WireGuard tunnel on the machine, clears `/etc/wireguard`, and runs a fresh install with your token.
>
> ```bash theme={null}
> sudo sv-transit migrate --token <provisioning-token>
> ```
>
> > [!WARNING]
> >
> > Migrate deletes **all** WireGuard configs in `/etc/wireguard`, not just Serververse ones. Back up any other tunnels first.
> >
> > Don't run it over SSH through the transit IP, or you'll lose access mid-migration. Use the console or another IP.
>
> ### Uninstall
>
> ```bash theme={null}
> sudo sv-transit uninstall
> ```
>
> To also remove the `sv-transit` command:
>
> ```bash theme={null}
> sudo sv-transit uninstall --purge
> ```
>
> > [!WARNING]
> >
> > Traffic to your public IP stops immediately. Don't run this over a connection that uses the transit IP.
>
> ### Version
>
> ```bash theme={null}
> sv-transit version
> ```

## Troubleshooting

> [accordion] SSH dropped after running the installer
>
> A routing rule has most likely overridden your default gateway. Connect through out-of-band access (IPMI, VNC, or console) and fix the routing table, or restore from a snapshot.

> [accordion] Installer says the token is invalid or expired
>
> Tokens are single-use and time-limited. Return to the tunnel in the dashboard, click **Generate command** again, and run the new command.

> [accordion] Installer fails or the tunnel won't come up in a container
>
> LXC containers require access to `/dev/net/tun` and the `wireguard-go` package before installation. Follow the [LXC Container Setup](https://docs.serververs.com/labs/ip-transit/tunneling-lxc) guide and verify the container prerequisites before running the installer.

> [accordion] Tunnel is unstable or traffic breaks with Tailscale installed
>
> Tailscale shouldn't be installed on the same server as Network Transit, as the two conflict. Remove Tailscale from the server, then check the tunnel with `sudo sv-transit status`. If it's still down, generate a fresh command in the dashboard and re-run the installer.

> [accordion] Public IP isn't reachable externally
>
> Edge provisioning can take 1–2 minutes to propagate. If it still fails:
>
> 1. Check the tunnel interface is up: `wg show`
> 2. Check the loopback interface has your transit IP: `ip addr show lo`
> 3. Confirm your tunnel is still active in the dashboard

## Next steps

> [card] [Hypervisor setup](https://docs.serververs.com/labs/ip-transit/tunneling-hypervisor)
>
> Route a whole subnet to VMs on Proxmox.

> [card] [Customer API](https://docs.serververs.com/labs/ip-transit/transit-api)
>
> Manage tunnels from your own scripts.


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