Skip to content

GoHomeEasy:基于Cloudflare Workers的Shadowsocks订阅管理工具,专为家庭用户设计

Published:

原文链接


🚀 GoHomeEasy

English | 中文

GoHomeEasy is a Shadowsocks subscription management tool based on Cloudflare Workers, designed specifically for home broadband users without a public IP to access their home network remotely.

It leverages Lucky’s NAT traversal and automatic subscription updates, allowing users to access their home Shadowsocks server from anywhere without frequently changing dynamic IP addresses and ports manually.


🌟 Features

Ideal for home broadband users without a public IP to access their home LAN remotely
Supports Lucky Webhook for automatic Shadowsocks subscription updates
Supports dynamic configuration of Shadowsocks method (encryption method) and password
Based on Cloudflare Workers + KV, no need for a self-hosted server
API Key authentication ensures data security
Supports Cloudflare custom domain access to bypass workers.dev restrictions in Mainland China


⚙️ Prerequisites

To successfully deploy GoHomeEasy, prepare the following:

🔹 Linux home server or OpenWRT router
🔹 Shadowsocks server setup (Recommended: PassWall2 plugin for OpenWRT)
🔹 Install Lucky NAT Traversal and map the Shadowsocks server port to the public network
🔹 Cloudflare account (free account is sufficient for Workers deployment)
🔹 Domain managed by Cloudflare DNS (optional, for bypassing workers.dev restrictions in China)
🔹 Shadowsocks-compatible client for mobile/PC (e.g., Shadowrocket on iOS)


💻 Shadowsocks Server Configuration

Using PassWall2 as an example:

  1. Navigate to the “Server” tab in PassWall2 and click “Add”

  2. Configure as follows:

    • Enable: ✅ Checked
    • Name: Custom
    • Type: Sing-Box
    • Protocol: Shadowsocks
    • Listening Port: 8000 (or custom)
    • Password: Custom
    • Encryption: Recommended chacha20-ietf-poly1305
    • Allow LAN Access: ✅ Checked
    • Keep other settings default
  3. Click Save & Apply, return to the main menu

  4. Check “Enable” and click Save & Apply


🛠 Cloudflare Workers Configuration

1️⃣ Create a Workers Service

  1. Log in to Cloudflare Dashboard
  2. Go to Workers & Pages, click Create
  3. Select “Start from template” → “Hello world”
  4. Enter Service Name (e.g., GoHomeEasy), click Deploy

2️⃣ Edit Workers Code

  1. Open the newly created Worker, click ”< / >” to edit the code
  2. Delete the default code
  3. Paste GoHomeEasy.js code from this repository
  4. Modify "your_secure_api_key" in the source code and keep it safe
  5. Click Deploy

3️⃣ Bind Cloudflare KV Storage

  1. Navigate to Objects & Storage → KV

  2. Click + Create, name it GoHomeEasy_KV

  3. Go to your WorkerSettings

  4. Click Bindings → + Add KV Namespace

    • Variable Name: KV_NAMESPACE
    • KV Namespace: Select GoHomeEasy_KV
  5. Click Deploy


🌍 Use Cloudflare Custom Domain (Optional, only recommend for Mainland China Users)

Follow these steps: EdgeTunnel Issue #27


🔗 Configure Lucky Webhook

In Lucky Webhook Settings, enter the following:

1️⃣ Webhook URL (POST Request)

2️⃣ Request Headers

  Content-Type: application/json
  Authorization: Bearer your_secure_api_key

3️⃣ Request Body

{
  "ip": "#{ip}",
  "port": "#{port}",
  "method": "chacha20-ietf-poly1305",
  "password": "your_password"
}

📥 Client Subscription Configuration

Using Shadowrocket 🚀 as an example:

1️⃣ Add Subscription URL

  1. Open Shadowrocket, tap +, select “Subscription”

  2. Enter Subscription URL:

    • Cloudflare Workers Native Domain:

      https://your-worker-name.workers.dev/?api_key=your_secure_api_key
      
    • Cloudflare Custom Domain:

      https://gohome.yourdomain.com/?api_key=your_secure_api_key
      
  3. Tap Save, subscription updates automatically ✅


2️⃣ Modify Shadowrocket Rules

  1. Go to Settings → Rules

  2. Add a rule:

    • Type: IP-CIDR
    • IP CIDR: 192.168.1.0/24 (or your home LAN segment)
    • Policy: GoHomeEasy proxy node
  3. Save and restart VPN ✅


🚀 GoHomeEasy - Access your home LAN from anywhere, even without a public IP! 🌎



Previous Post
Seed-VC: 实时支持的零样本语音转换与歌声转换工具
Next Post
PDFgear:免费的全功能PDF编辑软件,支持多平台及AI功能