Skip to content

Commit cd941a1

Browse files
authored
Update README.md
1 parent 4389f26 commit cd941a1

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ tg交流群 https://t.me/+ft-zI76oovgwNmRh
5858

5959
- `-l`: 监听地址(默认:`127.0.0.1:30000`
6060
```bash
61-
-l 127.0.0.1:1080
61+
-l 127.0.0.1:30001
6262
```
6363

6464
- `-token`: 身份验证令牌
@@ -87,18 +87,18 @@ tg交流群 https://t.me/+ft-zI76oovgwNmRh
8787

8888
```bash
8989
# Windows
90-
ech-workers.exe -f your-worker.workers.dev:443 -l 127.0.0.1:1080
90+
ech-workers.exe -f your-worker.workers.dev:443 -l 127.0.0.1:30001
9191

9292
# macOS / Linux
93-
./ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:1080
93+
./ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:30001
9494
```
9595

9696
#### 完整参数示例
9797

9898
```bash
9999
./ech-workers \
100100
-f your-worker.workers.dev:443 \
101-
-l 0.0.0.0:1080 \
101+
-l 0.0.0.0:30001 \
102102
-token your-token \
103103
-ip saas.sin.fan \
104104
-dns dns.alidns.com/dns-query \
@@ -110,11 +110,11 @@ ech-workers.exe -f your-worker.workers.dev:443 -l 127.0.0.1:1080
110110
**Linux/macOS:**
111111
```bash
112112
# 使用 nohup
113-
nohup ./ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:1080 > ech-workers.log 2>&1 &
113+
nohup ./ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:30001 > ech-workers.log 2>&1 &
114114

115115
# 使用 screen
116116
screen -S ech-workers
117-
./ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:1080
117+
./ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:30001
118118
# 按 Ctrl+A 然后 D 分离会话
119119

120120
# 使用 systemd (创建服务文件)
@@ -131,7 +131,7 @@ After=network.target
131131
Type=simple
132132
User=your-username
133133
WorkingDirectory=/path/to/ech-workers
134-
ExecStart=/path/to/ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:1080
134+
ExecStart=/path/to/ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:30001
135135
Restart=always
136136
RestartSec=5
137137

@@ -150,7 +150,7 @@ sudo systemctl status ech-workers
150150
**Windows:**
151151
```powershell
152152
# 使用 Start-Process
153-
Start-Process -FilePath "ech-workers.exe" -ArgumentList "-f", "your-worker.workers.dev:443", "-l", "127.0.0.1:1080" -WindowStyle Hidden
153+
Start-Process -FilePath "ech-workers.exe" -ArgumentList "-f", "your-worker.workers.dev:443", "-l", "127.0.0.1:30001" -WindowStyle Hidden
154154
155155
# 或使用任务计划程序创建计划任务
156156
```
@@ -159,41 +159,41 @@ Start-Process -FilePath "ech-workers.exe" -ArgumentList "-f", "your-worker.worke
159159

160160
启动代理后,配置你的应用程序使用 SOCKS5 代理:
161161

162-
- **代理地址**: `127.0.0.1:1080`(或你指定的监听地址)
162+
- **代理地址**: `127.0.0.1:30001`(或你指定的监听地址)
163163
- **代理类型**: SOCKS5
164-
- **端口**: 1080(或你指定的端口)
164+
- **端口**: 30001(或你指定的端口)
165165

166166
#### 浏览器配置示例
167167

168168
**Chrome/Edge:**
169169
```bash
170170
# Linux/macOS
171-
google-chrome --proxy-server="socks5://127.0.0.1:1080"
171+
google-chrome --proxy-server="socks5://127.0.0.1:30001"
172172

173173
# Windows
174-
chrome.exe --proxy-server="socks5://127.0.0.1:1080"
174+
chrome.exe --proxy-server="socks5://127.0.0.1:30001"
175175
```
176176

177177
**Firefox:**
178178
- 设置 → 网络设置 → 手动代理配置
179179
- SOCKS 主机: `127.0.0.1`
180-
- 端口: `1080`
180+
- 端口: `30001`
181181
- SOCKS v5
182182

183183
#### 环境变量配置
184184

185185
**Linux/macOS:**
186186
```bash
187-
export ALL_PROXY=socks5://127.0.0.1:1080
188-
export HTTP_PROXY=socks5://127.0.0.1:1080
189-
export HTTPS_PROXY=socks5://127.0.0.1:1080
187+
export ALL_PROXY=socks5://127.0.0.1:30001
188+
export HTTP_PROXY=socks5://127.0.0.1:30001
189+
export HTTPS_PROXY=socks5://127.0.0.1:30001
190190
```
191191

192192
**Windows (PowerShell):**
193193
```powershell
194-
$env:ALL_PROXY="socks5://127.0.0.1:1080"
195-
$env:HTTP_PROXY="socks5://127.0.0.1:1080"
196-
$env:HTTPS_PROXY="socks5://127.0.0.1:1080"
194+
$env:ALL_PROXY="socks5://127.0.0.1:30001"
195+
$env:HTTP_PROXY="socks5://127.0.0.1:30001"
196+
$env:HTTPS_PROXY="socks5://127.0.0.1:30001"
197197
```
198198

199199
### 查看帮助
@@ -214,7 +214,7 @@ $env:HTTPS_PROXY="socks5://127.0.0.1:1080"
214214

215215
将输出重定向到文件:
216216
```bash
217-
./ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:1080 > ech-workers.log 2>&1
217+
./ech-workers -f your-worker.workers.dev:443 -l 127.0.0.1:30001 > ech-workers.log 2>&1
218218
```
219219

220220
## 软路由部署
@@ -253,7 +253,7 @@ start_service() {
253253
procd_open_instance
254254
procd_set_param command /usr/bin/ech-workers \
255255
-f your-worker.workers.dev:443 \
256-
-l 0.0.0.0:1080 \
256+
-l 0.0.0.0:30001 \
257257
-token your-token \
258258
-ip saas.sin.fan \
259259
-dns dns.alidns.com/dns-query \
@@ -291,7 +291,7 @@ logread | grep ech-workers
291291
在插件中配置:
292292
- 代理类型: SOCKS5
293293
- 服务器: `127.0.0.1`
294-
- 端口: `1080`
294+
- 端口: `30001`
295295

296296
**方法 2: 使用 Shadowsocks-libev 的 ss-local**
297297

@@ -305,7 +305,7 @@ opkg update
305305
opkg install redsocks
306306

307307
# 配置 redsocks.conf
308-
# 将流量转发到 127.0.0.1:1080
308+
# 将流量转发到 127.0.0.1:30001
309309
```
310310

311311
### iKuai 软路由部署
@@ -320,7 +320,7 @@ opkg install redsocks
320320

321321
```bash
322322
#!/bin/sh
323-
/bin/ech-workers -f your-worker.workers.dev:443 -l 127.0.1:1080 -token your-token &
323+
/bin/ech-workers -f your-worker.workers.dev:443 -l 127.0.1:30001 -token your-token &
324324
```
325325

326326
设置权限:
@@ -338,7 +338,7 @@ chmod +x /etc/init.d/ech-workers.sh
338338
#### 4. 配置 iKuai 代理
339339

340340
在 iKuai 的"流控分流" → "端口分流"中配置:
341-
- 将指定流量转发到 `127.0.0.1:1080` (SOCKS5)
341+
- 将指定流量转发到 `127.0.0.1:30001` (SOCKS5)
342342

343343
### 其他软路由系统
344344

@@ -362,10 +362,10 @@ chmod +x /etc/init.d/ech-workers.sh
362362

363363
```bash
364364
# 监听地址建议使用 0.0.0.0 以允许局域网访问
365-
./ech-workers -f your-worker.workers.dev:443 -l 0.0.0.0:1080
365+
./ech-workers -f your-worker.workers.dev:443 -l 0.0.0.0:30001
366366

367367
# 或仅监听内网接口
368-
./ech-workers -f your-worker.workers.dev:443 -l 192.168.1.1:1080
368+
./ech-workers -f your-worker.workers.dev:443 -l 192.168.1.1:30001
369369
```
370370

371371
#### 防火墙规则
@@ -377,7 +377,7 @@ chmod +x /etc/init.d/ech-workers.sh
377377
uci add firewall rule
378378
uci set firewall.@rule[-1].name='Allow-ECH-Workers'
379379
uci set firewall.@rule[-1].src='lan'
380-
uci set firewall.@rule[-1].dest_port='1080'
380+
uci set firewall.@rule[-1].dest_port='30001'
381381
uci set firewall.@rule[-1].proto='tcp'
382382
uci set firewall.@rule[-1].target='ACCEPT'
383383
uci commit firewall
@@ -400,7 +400,7 @@ ps | grep ech-workers
400400
logread | grep ech-workers
401401

402402
# 测试连接
403-
curl --socks5 127.0.0.1:1080 http://www.google.com
403+
curl --socks5 127.0.0.1:30001 http://www.google.com
404404
```
405405

406406
### 常见问题
@@ -476,7 +476,7 @@ python3 gui.py
476476

477477
1. **配置服务器**
478478
- 点击"新增"添加服务器配置(会创建新配置,不会覆盖现有配置)
479-
- 填写服务地址(如:`your-worker.workers.dev:443`)和监听地址(如:`127.0.0.1:1080`
479+
- 填写服务地址(如:`your-worker.workers.dev:443`)和监听地址(如:`127.0.0.1:30001`
480480
- 可选:填写身份令牌、优选IP、DOH服务器、ECH域名等高级选项
481481
- 点击"保存"保存当前配置
482482

0 commit comments

Comments
 (0)