This tutorial shows how to run Tailscale inside a Blaxel sandbox. Once set up, your sandbox is reachable via SSH from any device on your Tailscale network.Documentation Index
Fetch the complete documentation index at: https://docs.blaxel.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before starting, ensure you have:- a Blaxel account
- a Tailscale account
- a Tailscale authentication key
- the Blaxel TypeScript or Python SDK installed in your project
- Log in to your Tailscale account and navigate to the administration section.
- Click Generate auth key
- Configure the key:
- Reusable — enable if you want to use the same key across multiple sandboxes
- Ephemeral — recommended for sandboxes: the node is automatically removed from your Tailscale network when it disconnects
- Expiry — set an appropriate duration (e.g. 90 days)
- Click Generate key and copy the value, typically starting with
tskey-auth-...
Create a sandbox
Tailscale requires iptables, which is not enabled in sandboxes by default. You enable it by passingextraArgs at creation time.
Install and configure Tailscale in the sandbox
Connect to the sandbox terminal:tailscale and iptables packages and start the tailscaled daemon as a background process.
tailscale up --ssh to authenticate and enable Tailscale SSH.
