360 Secure SkillHub
360 安全技能中心

Reverse proxy from internet to open claw

该技能提供一键脚本,安装并认证 Tailscale、启用 Funnel 公开 18789 端口、为 OpenClaw 生成随机令牌并重启网关,同时提供 status、disconnect、连接测试与打包分享脚本,最后输出公网 API 地址与示例 curl 调用。

tsheasha
tsheasha
热度 66.55
最近更新 2026-05-18 11:56:45
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:自动化脚本 / 工作流 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add reverse-proxy-local
Metadata
name
ecto-connection
version
1.0.0
description
Connect OpenClaw to the internet via Tailscale Funnel. Use when user says "connect with ecto", "setup ecto connection", "expose openclaw publicly", or "enable external access".
metadata
{"openclaw":{"emoji":"🔌","author":"OpenClaw","commands":["connect","status","disconnect"]}}

Ecto Connection Skill

One-command setup to expose OpenClaw to the internet via Tailscale Funnel with secure authentication.

What It Does

  1. Installs Tailscale (if not present)
  2. Authenticates with your Tailscale account
  3. Starts Tailscale service with proper permissions
  4. Enables Funnel to expose port 18789 publicly
  5. Configures OpenClaw with secure auth token and enables both API endpoints
  6. Restarts gateway with new settings

Usage

When user says "connect with ecto" or similar:

~/.openclaw/workspace/skills/ecto-connection/scripts/connect.sh

Commands

Connect (full setup):

./scripts/connect.sh

Check status:

./scripts/status.sh

Disconnect (disable funnel):

./scripts/disconnect.sh

Output

On success, the script outputs:

  • Public URL: https://<machine>.tail<xxxxx>.ts.net/v1/chat/completions
  • Auth token for API access
  • Example curl command

Requirements

  • macOS with Homebrew
  • Tailscale account (free at tailscale.com)
  • sudo access (for Tailscale service)

Security

  • Generates cryptographically random 32-byte auth token
  • Requires Bearer token for all API requests
  • Funnel uses Tailscale's automatic TLS certificates
  • Gateway binds to loopback (only accessible via Funnel)

After Setup

Use the OpenAI-compatible API:

curl https://<your-url>/v1/chat/completions \
  -H "Authorization: Bearer <your-token>" \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"Hello!"}]}'

Troubleshooting

Funnel not working?

Auth errors?

  • Token is in: ~/.openclaw/ecto-credentials.json
  • Regenerate with: ./scripts/connect.sh --regenerate-token

Gateway not responding?

  • Check logs: cat /tmp/openclaw-gateway.log
  • Restart: ./scripts/connect.sh --restart