Clawdbot (OpenClaw/Moltbot) 内网穿透部署方案(安全有效-Linux-2026.01.30)

基于 Tailscale 的内网穿透方案:详解如何在 Linux 环境下安装 Clawdbot,并配置 Funnel 模式实现无公网 IP 下的远程连接

安装Clawdbot:

bash 复制代码
# Install the CLI
curl -fsSL https://openclaw.ai/install.sh | bash

# Run the onboarding wizard
clawdbot onboard --install-daemon

# Start the Gateway
clawdbot gateway status

安装Tailscale: (注:所有proxy配置均在"网络环境受限"时进行配置)

bash 复制代码
sudo apt-get -o Acquire::http::Proxy="yourproxy" update
sudo apt-get -o Acquire::http::Proxy="yourproxy" install tailscale

为Tailscale添加proxy配置:

bash 复制代码
sudo systemctl edit tailscaled
复制代码
### Editing /etc/systemd/system/tailscaled.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

[Service]
Environment="HTTP_PROXY=yourproxy"
Environment="HTTPS_PROXY=yourproxy"
Environment="NO_PROXY=localhost,127.0.0.1,::1"

### Edits below this comment will be discarded
...

重启Tailscale使配置生效:

bash 复制代码
sudo systemctl restart tailscaled

# 验证Tailscale连通性
sudo journalctl -u tailscaled -f
# 200 Connection established

注册Tailscale: (https://tailscale.com/)

bash 复制代码
sudo tailscale up

# 核验状态
sudo tailscale status

编辑Clawdbot配置:

bash 复制代码
vim ~/.clawdbot/clawdbot.json
json 复制代码
"gateway": {
    "port": 18789,
    "mode": "local",
    "bind": "loopback",
    "auth": {                   // <== 新增
      "mode": "password",       // <== 新增 (验证方法可以是password或token(default))
      "password": "yourpw"      // <== 新增: 密码后续网页端会用上(shared secret via OPENCLAW_GATEWAY_PASSWORD or config)
    },
    "tailscale": {              // <== 新增
      "mode": "funnel",         // <== 新增
      "resetOnExit": false      // <== 新增
    }
  },

Tailscale Funnel 是 Tailscale 提供的一项公网服务暴露功能,允许你将本地的服务(比如 Clawdbot 的 18789 端口)暴露给整个互联网。

重启Clawdbot gateway:

bash 复制代码
systemctl --user stop clawdbot-gateway.service
clawdbot gateway

访问Tailscale, 查看机器是否注册成功:


访问full domain, 配置password:

此时为Pending挂起状态, 需要在Linux端下发许可

bash 复制代码
clawdbot devices list
clawdbot devices approve yourdeviceid

成功通过, 开始使用你的Clawdbot吧!

参考链接:

相关推荐
lingggggaaaa16 小时前
PHP原生开发篇&SQL注入&数据库监控&正则搜索&文件定位&静态分析
数据库·sql·安全·web安全·php
OPHKVPS16 小时前
严重漏洞曝光:Google Fast Pair(WhisperPair)允许攻击者在 14 米内无声劫持无线耳机、窃听对话并追踪位置
安全
Frank_refuel16 小时前
Linux操作系统 - > 进程信号(中)
linux·运维·服务器
xixixi7777716 小时前
微软推出 Critique 双模型协作系统:GPT + Claude 协同,开启“生成 + 审查”新范式
人工智能·安全·ai·微软·大模型·多模态·合规
CV-deeplearning16 小时前
Claw Code:Better Harness Tools,让 AI 真正干实事
人工智能·agent·智能体·openclaw·claw code
s听风忆雪16 小时前
aliyun 阿里云服务器 mysql 开启安全组 3306 依然访问不了
服务器·安全·阿里云
阿杜杜不是阿木木16 小时前
authentik开源身份认证与管理平台-与 Jenkins 集成(5)
运维·servlet·jenkins·authing·authentik
wanhengidc16 小时前
云手机 性能不受限 数据安全
服务器·网络·安全·游戏·智能手机
kongba00716 小时前
win系统环境检查工具,powershell 脚本,一次检查AI全面掌握系统运行环境 ,AI 它写代码更兼容,更少折腾,无需中间来回折腾环境配置
网络·安全
cookies_s_s16 小时前
C++ 模板与泛型编程
linux·服务器·开发语言·c++