mirror of
https://github.com/rookiestar28/ComfyUI-OpenClaw.git
synced 2026-08-17 10:22:02 +00:00
1.8 KiB
1.8 KiB
Deployment Recipe 3: Tailscale Funnel / VPN (Recommended Remote)
This recipe allows you to access ComfyUI securely from anywhere without opening ports on your router or exposing the service to the public internet.
Architecture
graph LR
Remote[Remote Device] -->|WireGuard VPN| Tailscale
Tailscale -->|127.0.0.1:8188| ComfyUI[ComfyUI Host]
Prerequisites
- Tailscale installed on the ComfyUI host and your remote device (phone/laptop).
- A Tailscale account.
Configuration
1. ComfyUI Host
Keep ComfyUI bound to localhost (127.0.0.1). Tailscale will route traffic to it via the tailnet IP.
Start ComfyUI:
python main.py
# Do NOT use --listen
2. Tailscale Serve (Optional)
If you want to expose ComfyUI on your tailnet with a nice DNS name (e.g., http://comfyui.monkey-magic.ts.net), use tailscale serve.
# Expose port 8188 to your Tailnet only
tailscale serve --bg 8188
Now you can access ComfyUI from any device on your Tailnet.
3. OpenClaw Hardening
Since traffic comes via Tailscale, it might appear as "remote" or "proxy" traffic depending on configuration. To be safe:
- Set
OPENCLAW_ADMIN_TOKENto a strong secret. - Enforce
OPENCLAW_OBSERVABILITY_TOKENif you plan to view logs remotely. - Optional: set
OPENCLAW_LOG_TRUNCATE_ON_START=1to clear staleopenclaw.logat startup.
4. "Red Lines"
- ❌ Do not use
tailscale funnel(public internet exposure) unless you have implemented Gate B (Bridge Safety) controls from the Release Checklist. - ❌ Do not share your Tailnet with untrusted users.
Testing
- Disconnect your phone from WiFi (use 5G/LTE).
- Enable Tailscale on your phone.
- Navigate to
http://100.x.y.z:8188(your host's Tailscale IP). - Verify ComfyUI loads and OpenClaw is accessible.