wtree Cloud

Tailscale

Reach the wtree Cloud dashboard, SSH and your apps over a private Tailscale network, and close public ports.

Tailscale connects your devices over WireGuard. Put the panel and apps behind it and only devices on your tailnet can reach them. You open no firewall ports.

Before you start

  • A running wtree Cloud instance (Install).
  • A Tailscale account (the free plan works).
  • SSH or console access to the server.
  • Tailscale on the client devices that need access.

Connect the server

Find the Docker subnet

You advertise the wtree Cloud network's subnet so you can reach containers through Tailscale.

docker network inspect w3panel-network | grep Subnet

Copy the value from the output, for example 10.254.0.0/24.

Generate an install command

In the Tailscale admin console, click Add a device → Linux, then Generate install script. It looks like this:

curl -fsSL https://tailscale.com/install.sh | sh && sudo tailscale up --auth-key=tskey-auth-something-random

Add SSH and the subnet

Add --ssh and --advertise-routes with your subnet, then run the command on the server.

curl -fsSL https://tailscale.com/install.sh | sh && sudo tailscale up --ssh --advertise-routes=10.254.0.0/24 --auth-key=tskey-auth-something-random

Approve the routes

In the Machines page, find the server and approve its advertised routes.

Connect your clients

In Add a device → Client device, pick your platform and install it. On macOS, download the app from tailscale.com/download/macos. Other platforms are at tailscale.com/download. Sign in to the same account.

Verify

On the server, check the connection and get its Tailscale IP.

sudo tailscale status
sudo tailscale ip -4

From a client, open the panel and SSH using that IP (here 100.100.100.100):

http://100.100.100.100:3000

Apps are reachable on the port they publish, for example http://100.100.100.100:8080. The app or Compose stack must expose that port.

MagicDNS and custom names

Enable MagicDNS in the DNS settings to use hostnames:

http://your-server-name.tailscale.ts.net:3000

For the full name, open the server in Machines and read its Full Domain field, for example ubuntu-2gb-ash-4.tail1ff529.ts.net.

Close public access with UFW

Block everything except Tailscale so bots can't reach the server.

Confirm you can SSH over the Tailscale IP before you enable the firewall. If you lose Tailscale connectivity after locking down, you need console access to recover.

Test SSH over Tailscale

exit
ssh <username>@<tailscale-ip>

Set the rules

sudo ufw enable
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow in on tailscale0

The last rule allows SSH, the panel (port 3000), Traefik (80 and 443) and your apps on the Tailscale interface.

Review

sudo ufw status verbose

You should see ALLOW rules for tailscale0 and no public allow rules.

Docker writes to iptables directly, so published ports (the panel on 3000, Traefik on 80 and 443) can stay reachable from the internet despite UFW. Block ports 22, 80, 443 and 3000 in your VPS provider's firewall, which applies before Docker's rules. This is the recommended fix. You can also install ufw-docker, though with Tailscale subnet routing it is usually unnecessary. Binding services to 127.0.0.1 also works but can break Tailscale access.

Next steps

On this page