Tailscale

Tailscale provides a WireGuard-based mesh VPN connecting MEGATRON to other machines in the network. It enables secure, direct SSH access and inter-machine communication without exposing ports to the internet.

Tailscale Mesh

MachineHostnameTailscale IPRoleHardware
MEGATRONmegatron100.70.25.47Primary server, K3s control planeThreadripper 3990X, 251GB, 2x RTX 3090
Mac Studiolucass-mac-studio100.87.201.64Inference, visualization, large modelsM2 Ultra, 512GB unified, 7.3TB
MacBook M4macbook-pro-m4100.91.253.88Development, quick testsM4 Max, 64GB
Lambda Laptoptensorbook100.108.49.109Ablations, single-GPU experiments1x RTX GPU, 64GB

Network Diagram

                    ┌─────────────────────┐
                    │     Tailscale       │
                    │   Coordination      │
                    │     Server          │
                    └─────────┬───────────┘
                              │ (control plane only,
                              │  data flows peer-to-peer)
         ┌────────────────────┼────────────────────┐
         │                    │                    │
         v                    v                    v
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│    MEGATRON     │ │   Mac Studio    │ │  MacBook M4     │
│  100.70.25.47   │ │ 100.87.201.64   │ │ 100.91.253.88   │
│                 │ │                 │ │                 │
│  K3s cluster    │<────────────────>│  Development    │
│  GPU training   │ │  Inference      │ │  Quick tests    │
│  Prod hosting   │ │  Visualization  │ │                 │
└────────┬────────┘ │  Large models   │ └─────────────────┘
         │          └─────────────────┘
         │
         v
┌─────────────────┐
│  Lambda Laptop  │
│ 100.108.49.109  │
│                 │
│  Ablations      │
│  Single-GPU     │
└─────────────────┘

SSH via Tailscale

SSH config entries for Tailscale-based access (from ~/.ssh/config):

SSH AliasTargetIPNotes
mac-studioMac Studio M2 Ultra100.87.201.64Also available as mac-studio-local (10.0.0.71 LAN)
macbook-m4MacBook M4 Max100.91.253.88
tensorbookLambda Laptop100.108.49.109
megatron-rescueMEGATRON rescue SSHlocalhost:2222High-priority access
# SSH to Mac Studio via Tailscale
ssh mac-studio

# SSH to MacBook
ssh macbook-m4

# SSH to Lambda
ssh tensorbook

Use Cases

Research Workload Distribution

MachineUse For
MEGATRONFull training runs, distributed (multi-GPU) experiments
Mac StudioInference, visualization, loading large models (512GB memory)
MacBook M4Development, quick iteration, code editing
LambdaSingle-GPU ablations, smaller experiments

Data Transfer

# Copy dataset from MEGATRON to Mac Studio
scp -r /mnt/shared/datasets/cifar10 mac-studio:~/datasets/

# Rsync checkpoints
rsync -avz /mnt/shared/checkpoints/rosa/ mac-studio:~/checkpoints/rosa/

# Copy results back
scp mac-studio:~/results/inference.json /mnt/shared/results/

Tailscale Management

# Check Tailscale status
tailscale status

# Check connection to a specific peer
tailscale ping mac-studio

# View Tailscale IP
tailscale ip

# Check network diagnostics
tailscale netcheck

# Enable/disable Tailscale
sudo tailscale up
sudo tailscale down

Tailscale on K3s

Tailscale runs as a system service (tailscaled.service) and provides an overlay network independent of the K3s cluster network. Pods within K3s do not use Tailscale directly -- Tailscale is used for machine-to-machine communication and SSH access.