返回顶部
w

wcs-helper-network-skill

SSH tunnel for China servers to access internationally blocked sites (GitHub, ClawHub, HuggingFace, arXiv, Google, YouTube). Password-auth based, one-command setup, auto-reconnect.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
70
下载量
0
收藏
概述
安装方式
版本历史

wcs-helper-network-skill

# WCS Helper: Network Tunnel > Access internationally blocked websites from your China-based server. --- ## When You Need This **Scenario A — "git push keeps timing out"** ``` git push github main # → Connection timeout ``` → `/万重山-隧道-开启` → try push again → succeeds **Scenario B — "npm install keeps failing for a package from GitHub"** ``` npm install some-github-package # → network timeout ``` → `/万重山-隧道-开启` → npm works through tunnel **Scenario C — "HuggingFace model download is stuck"** ``` huggingface-cli download ... # → timeout or connection reset ``` → `/万重山-隧道-开启` → download completes through tunnel **Scenario D — "ClawHub skill install is super slow"** ``` clawhub install author/skill # → extremely slow, often fails ``` → `/万重山-隧道-开启` → ClawHub installs at full speed --- ## Supported Sites | Site | Use Case | Status | |------|----------|--------| | GitHub | git clone/push, npm packages | ✅ | | ClawHub | skill install, plugin browsing | ✅ | | HuggingFace | model downloads, datasets | ✅ | | arXiv | research paper access | ✅ | | Google | search, fonts, analytics | ✅ | | YouTube | video embeds, APIs | ✅ | | Twitter/X | social media embeds | ✅ | | Reddit | forum access, APIs | ✅ | --- ## Prerequisites ### Required - A **server outside China** (any VPS with SSH access) - Recommended: Tencent Cloud Singapore, AWS Singapore, or any international VPS - SSH password authentication must be enabled - SSH password for that server - Server's public IP address ### Recommended - `autossh` installed on your China server (auto-restarts tunnel if it drops) - Install: `apt install autossh` (Debian/Ubuntu) - `sshpass` installed (for password-based SSH) - Install: `apt install sshpass` ### Network Flow ``` Your China Server (autossh client) ↓ SSH tunnel (encrypted) Singapore/International VPS (as SOCKS5 proxy) ↓ GitHub / ClawHub / HuggingFace / Google ``` --- ## Setup ### 1. Get a Tunnel Server Any international VPS works. Recommended: - Tencent Cloud Singapore (CNY ~15/month) - AWS Singapore Free Tier - DigitalOcean Singapore - Vultr Tokyo/Singapore Requirements: - SSH password access enabled - Port 22 (SSH) open to China IPs ### 2. Install the Skill ```bash npx -y clawhub install guanqi0914/wcs-helper-network-skill ``` ### 3. Configure with Your Server Send this command via Feishu private chat: ``` /万重山-隧道-配置 服务器IP SSH端口 用户名 密码 ``` Example: ``` /万重山-隧道-配置 43.134.164.43 22 ubuntu myPassword123 ``` ### 4. Start the Tunnel ``` /万重山-隧道-开启 ``` You should see: ✅ Tunnel connected ### 5. Test It ```bash curl --socks5 127.0.0.1:1080 https://api.github.com # Should return: HTTP 200 ``` --- ## All Commands | Command | What It Does | |---------|-------------| | `/万重山-隧道-配置 <IP> <端口> <用户> <密码>` | Set up tunnel server credentials | | `/万重山-隧道-开启` | Start the tunnel | | `/万重山-隧道-关闭` | Stop the tunnel | | `/万重山-隧道-状态` | Show tunnel connection status | | `/万重山-隧道-测试` | Test tunnel speed | | `/万重山-隧道-帮助` | Show help | --- ## Usage Tips ### Before Running git/npm Commands Send `/万重山-隧道-状态` first. If you see "Tunnel: ✅", you're good. If "Tunnel: ❌", send `/万重山-隧道-开启` first. ### Tunnel Stays On Until You Close It The tunnel runs in the background. Send `/万重山-隧道-关闭` when you don't need international access any more. ### Which Ports Are Proxied Only TCP connections through the SOCKS5 proxy are tunneled: - GitHub (443) ✅ - ClawHub (443) ✅ - HuggingFace (443) ✅ - Google (443) ✅ UDP traffic (some gaming, VoIP) is NOT proxied. --- ## How It Works ### Connection Process ``` 1. autossh connects to your international server via SSH sshpass -p 'password' ssh -N -D 127.0.0.1:1080 user@server-ip 2. SSH creates encrypted tunnel 3. autossh monitors the tunnel every 30 seconds 4. If tunnel drops → autossh auto-restarts it 5. Applications use 127.0.0.1:1080 as SOCKS5 proxy ``` ### Without the Tunnel (Direct Connection) ``` China Server → GitHub/ClawHub/HuggingFace ↓ Connection timeout / reset / very slow ``` ### With the Tunnel ``` China Server → SSH Tunnel → International VPS → GitHub/ClawHub/HuggingFace ↓ Stable encrypted connection ``` --- ## Performance | Metric | Value | |--------|-------| | Tunnel latency | ~50-100ms (China → Singapore) | | GitHub clone speed | 500KB/s - 5MB/s | | ClawHub install | 1-5 seconds | | Proxy overhead | ~5-10% bandwidth | --- ## Troubleshooting **"Tunnel: ❌ Connection failed"** → Check server IP, SSH port, username, password → Make sure SSH password auth is enabled on your VPS **"Tunnel connects but git push still times out"** → Try again — GitHub sometimes rate-limits tunnel IPs temporarily → If persistent, your VPS IP may be on GitHub's blacklist **"autossh process not running after server restart"** → Send `/万重山-隧道-开启` to restart manually → Or set up systemd service (advanced — see auto-fix.sh) **"SSH connection refused"** → Check if port 22 is open on your VPS firewall → Try SSH port 2222 if 22 is blocked --- ## Security Notes - The tunnel only handles outbound connections from your China server - Your VPS provider can see the traffic (GitHub, ClawHub, etc.) but NOT your China server's other traffic - No data is stored on the VPS — only encrypted transit - Tunnel credentials are stored locally in `~/.wcs_tunnel.conf` (chmod 600) --- ## Uninstall ```bash # Stop tunnel /万重山-隧道-关闭 # Remove skill files rm -rf ~/.openclaw/workspace/skills/wcs-helper-network-skill rm -f ~/.wcs_tunnel.conf ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wcs-helper-network-skill-1776025683 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wcs-helper-network-skill-1776025683 技能

通过命令行安装

skillhub install wcs-helper-network-skill-1776025683

下载 Zip 包

⬇ 下载 wcs-helper-network-skill v1.0.1

文件大小: 7.06 KB | 发布时间: 2026-4-13 12:32

v1.0.1 最新 2026-4-13 12:32
wcs-helper-network-skill v1.0.1

- Overhauled SKILL.md: now simpler, more concise, and better focused on real-world usage scenarios.
- Updated description to emphasize password-auth setup, one-command configuration, and supported major sites (GitHub, ClawHub, HuggingFace, arXiv).
- Clarified prerequisites, setup steps, recommended software, troubleshooting, and security notes.
- Updated command list and usage flows for better guidance.
- Minor metadata change: removed command-tool and command-arg-mode from openclaw metadata.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部