Skip to content

Commit e37fe0d

Browse files
authored
Merge pull request #31 from keminar/todo
并行传输优化、直连打洞两段式握手、安全修复与文档完善
2 parents d7d7993 + a1788fc commit e37fe0d

108 files changed

Lines changed: 8385 additions & 1004 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ tunneld-alpine
1616
tunnel/logs/
1717
dev/null
1818
anyproxy.exe
19+
dist.tar

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ Client proxy settings: point your OS / browser proxy at the anyproxy listen port
143143

144144
Full table of contents see [docs/README.md](docs/en/README.md).
145145

146+
## Disclaimer
147+
148+
This program is built for legitimate connectivity needs. **It is not designed for, and is not well-suited to, circumventing network censorship or accessing restricted content**; any consequences arising from such use, or from being mistaken for such use, are the user's own and not the project's or its author's.
149+
146150
## License
147151

148152
[MIT](LICENSE) © [keminar](https://github.com/keminar)

‎README_CN.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ make all
143143

144144
完整目录见 [docs/README.md](docs/README.md)。
145145

146+
## 声明
147+
148+
本程序设计目标是解决合法场景下的连通性问题。**它不是为规避网络监管、访问受限内容而设计的工具,也不擅长用于此类用途**,对此类用途下或被误判为此类用途而产生的后果由使用者自行承担,与本项目及作者无关。
149+
146150
## License
147151

148152
[MIT](LICENSE) © [keminar](https://github.com/keminar)

‎anyproxy.go‎

Lines changed: 126 additions & 27 deletions
Large diffs are not rendered by default.

‎build.bat‎

Lines changed: 75 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
@echo off
2-
rem Build the windows anyproxy packages (amd64 + 386) on Windows.
3-
rem Usage: double-click, or run build.bat in cmd/PowerShell.
2+
rem Build anyproxy packages on Windows. Interactive: prompts for which package(s)
3+
rem to build. Non-interactive: pass the same choice as the first argument, e.g.
4+
rem "build.bat 3", to skip the prompt (handy from scripts/CI).
45
setlocal
56
set CGO_ENABLED=0
6-
set GOOS=windows
77
set RC=0
88
if not exist dist mkdir dist
99

@@ -12,27 +12,82 @@ set VER=dev
1212
for /f %%i in ('git rev-list --tags --max-count^=1 2^>nul') do set REV=%%i
1313
if defined REV for /f %%i in ('git describe --tags %REV% 2^>nul') do set VER=%%i
1414

15+
set CHOICE=%~1
16+
if not "%CHOICE%"=="" goto :dispatch
17+
18+
:prompt
19+
echo Which package(s) to build?
20+
echo 1. Windows 64-bit (amd64, with WinDivert)
21+
echo 2. Windows 32-bit (386, with WinDivert)
22+
echo 3. Linux (amd64)
23+
echo 4. All
24+
set /p CHOICE=Select [1-4, default 4]:
25+
if "%CHOICE%"=="" set CHOICE=4
26+
27+
:dispatch
28+
if "%CHOICE%"=="1" (
29+
call :build_windows amd64 x64
30+
goto :done
31+
)
32+
if "%CHOICE%"=="2" (
33+
call :build_windows 386 x86
34+
goto :done
35+
)
36+
if "%CHOICE%"=="3" (
37+
call :build_linux
38+
goto :done
39+
)
40+
if "%CHOICE%"=="4" (
41+
call :build_windows amd64 x64
42+
if errorlevel 1 goto :done
43+
call :build_windows 386 x86
44+
if errorlevel 1 goto :done
45+
call :build_linux
46+
goto :done
47+
)
48+
echo invalid choice: %CHOICE%
49+
set CHOICE=
50+
goto :prompt
51+
1552
rem One self-contained package dir per arch: dist\anyproxy-windows-<arch>-<VER>\
1653
rem The exe ships next to its own WinDivert runtime. WinDivert.dll has a fixed
1754
rem name but different content for 64/32-bit, so separate dirs avoid clobbering.
18-
rem arch to WinDivert runtime dir: amd64 -> x64, 386 -> x86.
19-
for %%p in (amd64:x64 386:x86) do (
20-
for /f "tokens=1,2 delims=:" %%a in ("%%p") do (
21-
set GOARCH=%%a
22-
echo building dist\anyproxy-windows-%%a-%VER%\anyproxy-windows-%%a-%VER%.exe ...
23-
if not exist "dist\anyproxy-windows-%%a-%VER%" mkdir "dist\anyproxy-windows-%%a-%VER%"
24-
rem -trimpath strips the absolute source path embedded in the binary
25-
go build -trimpath -o "dist\anyproxy-windows-%%a-%VER%\anyproxy-windows-%%a-%VER%.exe" .
26-
if errorlevel 1 (
27-
echo build failed for %%a
28-
set RC=1
29-
goto :done
30-
)
31-
rem WinDivert runtime must sit next to the exe (or set tun.windows.windivertDir).
32-
copy /Y "WinDivert-2.2.2-A\%%b\*" "dist\anyproxy-windows-%%a-%VER%\" >nul
33-
echo build ok: dist\anyproxy-windows-%%a-%VER%
34-
)
55+
rem %1 = GOARCH (amd64/386), %2 = WinDivert runtime subdir (x64/x86).
56+
:build_windows
57+
set GOOS=windows
58+
set GOARCH=%~1
59+
set WDDIR=%~2
60+
echo building dist\anyproxy-windows-%GOARCH%-%VER%\anyproxy-windows-%GOARCH%-%VER%.exe ...
61+
if not exist "dist\anyproxy-windows-%GOARCH%-%VER%" mkdir "dist\anyproxy-windows-%GOARCH%-%VER%"
62+
rem -trimpath strips the absolute source path embedded in the binary
63+
go build -trimpath -o "dist\anyproxy-windows-%GOARCH%-%VER%\anyproxy-windows-%GOARCH%-%VER%.exe" .
64+
if errorlevel 1 (
65+
echo build failed for %GOARCH%
66+
set RC=1
67+
exit /b 1
68+
)
69+
rem WinDivert runtime must sit next to the exe (or set tun.windows.windivertDir).
70+
copy /Y "WinDivert-2.2.2-A\%WDDIR%\*" "dist\anyproxy-windows-%GOARCH%-%VER%\" >nul
71+
echo build ok: dist\anyproxy-windows-%GOARCH%-%VER%
72+
exit /b 0
73+
74+
rem Linux/amd64 package, cross-compiled from Windows: CGO_ENABLED=0 already set
75+
rem above, so this needs no gcc/WSL, just a plain "go build" with GOOS switched.
76+
rem No WinDivert copy and no .exe suffix here -- both are Windows-only, unlike
77+
rem scripts/build.sh linux this doesn't embed -ldflags version info, matching
78+
rem the Windows build above which also skips it.
79+
:build_linux
80+
set GOOS=linux
81+
set GOARCH=amd64
82+
echo building dist\anyproxy-amd64-%VER% ...
83+
go build -trimpath -o "dist\anyproxy-amd64-%VER%" .
84+
if errorlevel 1 (
85+
echo build failed for linux/amd64
86+
set RC=1
87+
exit /b 1
3588
)
89+
echo build ok: dist\anyproxy-amd64-%VER%
90+
exit /b 0
3691

3792
:done
3893
rem Pause only when double-clicked (launched from Explorer), so running from an

‎conf/router.yaml‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# 监听端口IP, 优先级低于启动传参,不监听设置为off
1+
# 监听端口IP, 优先级低于启动传参,不监听设置为off。可逗号分隔写多个完整地址(各自带端口),
2+
# 同时绑定多个内网网段的具体 IP, 如 192.168.1.5:3000,10.0.0.5:3000
23
listen:
34
# 日志目录
45
log:
@@ -82,6 +83,14 @@ tun:
8283
# - 203.0.113.10
8384
# excludeProcs: # 这些进程的出向一律不重定向(逃 OpenVPN 等同机隧道死循环)
8485
# - openvpn.exe
86+
# redirectPorts: # 捕获的出站TCP目标端口; 不配默认[80,443]; 一旦配置则完全覆盖
87+
# - 80 # (需要的端口都要写全, 比如还想抓某远程服务的5000端口)
88+
# - 443
89+
# - 5000
90+
# # 重要: 目的地是 loopback(127.0.0.1/::1)的连接永远不会被 WinDivert 捕获,
91+
# # 不受 redirectPorts/bypassPrivate/skipPorts 等任何配置影响(硬编码防环, 见
92+
# # docs/windows-windivert-redirect.md)。想代理"本机 localhost:port"的流量,
93+
# # 这条路走不通, 只能让发起连接的程序直接配置用 anyproxy 做代理。
8594

8695
# 死循环兜底熔断器(不仅仅应用于全局代理,经过anyproxy的死循环都有效)。
8796
# 同机 A(mode=tun)+B(mode=bypass, 仅Linux) 部署时, 正常应由 bypass 从路由层根治环路;
@@ -301,8 +310,10 @@ websocket:
301310
# # 专用 UDP socket、探到自己的公网端点、让 A/C 都朝它打洞, 之后在两个来源地址间盲
302311
# # 转发不透明 UDP 包。QUIC/TLS 端到端在 A<->C, 本机看不到明文。关键: 本机**不需要**为
303312
# # 每对 A-C 配 forward/rules/receive.allow, 只要这一个开关; 目标 C 由 A 用 via 指定
304-
# relayAllow: # 可选, 收紧 relay: 只允许这些来源 email(发起中继的 A, 经 B 认证)用本机中继。
313+
# relayEmail: # 可选, 收紧 relay: 只允许这些来源 email(发起中继的 A, 经 B 认证)用本机中继。
305314
# - office@example.com # 留空(且 relay=true)=不限制。仅 email 准入名单, 不涉及 uuid(鉴权在 A<->C 的 e2e 层)
315+
# # 精确匹配、大小写敏感。注意与 forward[].allowRelay 不是一回事(那个是布尔开关)
316+
# # 需服务端 B 为同版本(email 由 B 盖章送来): 配了本名单却收到空 email 时本机拒绝中继
306317
# relayPublic: # 可选。只写 IP 时每个 binding 使用随机端口,并把该端口与全部 IP 组合成候选:
307318
# - "192.0.2.10" # 适合按目标选择不同公网源 IP 的多出口 VPS,不占固定端口槽位
308319
# - "198.51.100.10" # IPv6 同样只写裸地址。若写 IP:port,则切换成下面的固定端口模式:
@@ -339,6 +350,8 @@ websocket:
339350
# # 也能取走 dir 下的任何东西, 只配一个方向要靠上面的 readonly
340351
# - email: someone@example.com # 仅备注/查找用, 不是安全边界
341352
# uuid: 3fa85f64-5717-4562-b3fc-2c963f66afa6 # 真正的凭证, 抄对方的 websocket.client.uuid
353+
# wol: false # true 才允许这个 email 用 -wol 让本机代为广播网络唤醒包, 默认 false
354+
# dir: # 这个 email 上传时的落地目录, 覆盖上面共享的 dir; 留空则跟其他人一样落到 dir
342355
# true 时强制这条配置只用来给 -send/-recv 命令行取凭证(以及生成/持久化上面的 uuid),
343356
# 常驻的 anyproxy 进程不会为它发起连接, 哪怕配了 subscribe/forward/direct/
344357
# receive 中的几项也照样跳过。
@@ -348,7 +361,7 @@ websocket:
348361
sendRecvOnly: false
349362
# 同时订阅多台 server: 配了 clients 就只用 clients(上面单个 client 块被忽略), 每项是完整独立配置,
350363
# 字段同上面 client 块(connect/host/user/pass/key/email/subscribe/forward/direct(含
351-
# accept/rules/encrypt/portmap/punchFirst/relay/relayAllow/relayPublic/lanAddrs/plainUdp)/
364+
# accept/rules/encrypt/portmap/punchFirst/relay/relayEmail/relayPublic/lanAddrs/plainUdp)/
352365
# receive/sendRecvOnly; uuid 不可配, 自动生成)
353366
# clients:
354367
# - connect:

‎config/config.go‎

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@ var DebugLevel int
5252
// 绕开一条路径上的问题而牺牲其它路径本来正常的快速路径。
5353
var DirectPlainUDP bool
5454

55-
// ListenPort 监听端口
55+
// ListenPort 监听端口。多地址(ListenAddrs)时取第一个地址的端口, 供只关心"一个端口"
56+
// 的场景使用(回环拨号默认地址、pprof/日志文件名等)。
5657
var ListenPort uint16
5758

59+
// ListenAddrs 代理实际监听的全部地址(host:port)。支持在 -l/配置文件 listen 里用逗号
60+
// 分隔写多个地址, 用来同时绑定多个内网网段的具体 IP, 而不必监听 0.0.0.0(*) 那么宽,
61+
// 也不受限于只能绑一个 IP。
62+
var ListenAddrs []string
63+
5864
// TUNBypassDev TUN 模式下出向连接绑定的物理网卡名(Linux SO_BINDTODEVICE 用)。
5965
var TUNBypassDev string
6066

@@ -154,6 +160,32 @@ func SetListenPort(gListenAddrPort string) {
154160
ListenPort = uint16(intNum)
155161
}
156162

163+
// SetListenAddrs 设置代理实际监听的地址列表。ListenPort 取第一个地址的端口。
164+
func SetListenAddrs(addrs []string) {
165+
ListenAddrs = addrs
166+
if len(addrs) == 0 {
167+
ListenPort = 0
168+
return
169+
}
170+
SetListenPort(addrs[0])
171+
}
172+
173+
// IsListenPort 判断端口是否是本进程某个监听地址的端口。用于死循环检测(代理请求
174+
// 打回自己的监听器); ListenAddrs 可能有多个不同端口, 不能只比较 ListenPort。
175+
func IsListenPort(port uint16) bool {
176+
if port == 0 {
177+
return false
178+
}
179+
for _, addr := range ListenAddrs {
180+
intStr := tools.GetPort(addr)
181+
intNum, err := strconv.Atoi(intStr)
182+
if err == nil && uint16(intNum) == port {
183+
return true
184+
}
185+
}
186+
return false
187+
}
188+
157189
// IfEmptyThen 取值
158190
func IfEmptyThen(str string, str2 string, str3 string) string {
159191
if str == "" {

‎docs/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929
- [multi-instance-loop.md](multi-instance-loop.md) — 同机多实例(A 开 tun + B 普通)死循环防护:`mode=bypass` 根治(仅Linux)、`loopGuard` 熔断器兜底、macOS/Windows 替代方案。
3030
- [direct-punch-order.md](direct-punch-order.md) — NAT 直连打洞顺序专题:跨"运营商 CGNAT 家宽 ↔ 公网云主机"时居民/CGNAT 侧必须先发第一个包,否则 NAT 映射被毒化、双向全灭;含 `direct.punchFirst` 配置由来与排查清单。
3131
- [direct-relay-design.md](direct-relay-design.md) — VPS 盲转发中继(TURN 式 direct relay)设计:两端都在 CGNAT 后时经公网 VPS 中转,QUIC/TLS 端到端、VPS 只盲转发不透明 UDP;信令/鉴权/数据面/失败语义。
32+
- [direct-handshake-flow.md](direct-handshake-flow.md) — 直连/中继握手全流程与耗时:谁先发、等谁的顺序不变量,VPS 什么时候才开始转发(两腿都"亲耳听到"才转),token 与证书指纹的生成/流向,打洞的三个时间量(总预算/发包窗口/收敛窗),一次真实连接 5.3s 的逐段分解,以及"选路收敛窗"与"两段式 offer"两个已落地的优化;附五张流程图与日志速查表。
3233
- [tun-dns-vpn-coexist.md](tun-dns-vpn-coexist.md) — TUN 与 VPN(OpenVPN/TAP)共存的三类回包故障:① VPN 内网 DNS 的 /32 路由丢失;② Windows(WinDivert) VPN 传输死循环与 `excludeProcs`/`bypassIPs` 逃逸;③ 入站连接回包被 TUN 吸走(外网 SSH 断)——Linux 源策略路由(自动)、macOS `pf reply-to`(`inboundPorts`)。
3334
- [windows-winDivert.md](windows-winDivert.md) — Windows WinDivert 运行依赖:`WinDivert.dll`/`.sys` 放置、管理员权限、路径含空格/中文的驱动加载问题、bypass 模式在 Windows 已移除。
35+
- [windows-wol.md](windows-wol.md) — Windows 网络唤醒(WOL)配置教程:网卡电源管理与魔术包唤醒开关、关闭「快速启动」和 PCIe 节能、BIOS 里开 Wake On LAN 且必须关 ErP,以及有线网卡/不断电/同一局域网等硬性条件;魔法包发送见 [cli.md](cli.md) 的 `-wol` 参数。
3436
- [todo.md](todo.md) — 待办/待确认:PR #22 审查中暂留未处理的项(透明代理嗅探 `Peek(1)` 无超时 + 实现分叉、`HostBlocksUDP` 热路径线性扫描)。
3537
- [windows-windivert-redirect.md](windows-windivert-redirect.md) — Windows WinDivert 重定向原理:数据包捕获→NAT 改写→本地代理→恢复目的地转发的完整链路;NAT 表、dual-stack 监听、环路防护。
3638
- [windows-windivert-escape.md](windows-windivert-escape.md) — Windows WinDivert 逃逸机制(环路防护专题):anyproxy 自身出站如何逃过捕获避免自环;SOCKS 层 Guard 的竞态缺陷(IPv4 能逃逸、IPv6 稳定自环)与 egress 源端口段根治方案。

‎docs/cli.md‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| 参数 | 说明 | 配置文件等价项 | 优先级 |
66
|------|------|----------------|--------|
7-
| `-l ADDRPORT` | 监听地址端口,如 `:3000` 或 `127.0.0.1:3000`;设为 `off`(或 `none`/`-`)**关闭代理监听**,仅跑 websocket/tun 等后台服务(纯内网穿透用) | `listen` | 命令行 > 配置 > `:3000` |
7+
| `-l ADDRPORT` | 监听地址端口,如 `:3000` 或 `127.0.0.1:3000`;可用逗号分隔写多个地址,同时绑定多个内网网段的具体 IP,如 `192.168.1.5:3000,10.0.0.5:3000`(不必监听 `0.0.0.0`,也不受限于只能绑一个 IP);设为 `off`(或 `none`/`-`)**关闭代理监听**,仅跑 websocket/tun 等后台服务(纯内网穿透用) | `listen` | 命令行 > 配置 > `:3000` |
88
| `-p PROXIES` | 上级代理,如 `tunnel://10.2.2.2:3001` / `socks5://10.2.2.2:3128` / `http://10.1.1.1:80`;支持逗号分隔多代理与末尾 `local`/`deny` 后缀(见 [routing.md](routing.md#proxy-字段)) | `default.proxy` | 命令行 > 配置 |
99
| `-c FILEPATH` | 配置文件路径,默认 `conf/router.yaml` | — | — |
1010
| `-mode` | 运行模式(互斥):`proxy`(默认)/ `tunnel`(tunneld 服务端) / `tun`(TUN 全局代理) / `bypass`(物理网卡绕行, 仅 Linux) / `tcpcopy`(端口转发) | `mode` | 命令行 > 配置 |
@@ -18,9 +18,10 @@
1818
| `-v` | 显示编译版本信息 | — | — |
1919
| `-h` | 显示帮助 | — | — |
2020
| `-genkey` | 生成一对 websocket 鉴权密钥并退出(私钥填 `websocket.client.key`,公钥填 `websocket.server.users[].key`) | `websocket.client.key` / `websocket.server.users[].key` | CLI 一次性 |
21+
| `-wol MAC[,MAC2,...]` | 发送网络唤醒(WOL)魔术包后退出,MAC 支持逗号分隔多个、`AA:BB:CC:DD:EE:FF`/`AA-BB-CC-DD-EE-FF` 两种写法均可;复用 `-to`/`-via` 两个 flag(见下两行),不单独开新名字;`-via` 留默认值 `direct`(即不传)时在本机广播,显式传一个订阅端 email 时改为让该订阅端广播;发送成功不代表对方真的醒了 | — | CLI 一次性 |
2122
| `-send PATH` | 把文件/目录发给另一个订阅端并退出(可跟多个路径);接收端需开 `direct.accept`,端到端加密 | — | CLI 一次性 |
22-
| `-to EMAIL[:subdir]` / `DIR` | `-send`:接收方 email(scp 风格 `:subdir` 落到 `receive.dir/subdir`);`-recv`:本机存放目录(默认当前目录) | — | CLI 一次性 |
23-
| `-via direct\|relay\|VPS的email` | `-send`/`-recv`:直连打洞(`direct`,打不通直接失败)、经服务端 B 中继(`relay`,无需打洞),或填一台公网 VPS 的 email(该机需开 `direct.relay`)盲转发中继打洞(双方都在 CGNAT 后无法直连时用,详见 [direct-relay-design.md](direct-relay-design.md));均端到端加密 | `websocket.client.direct.relay`(VPS 侧) | CLI 一次性 |
23+
| `-to EMAIL[:subdir]` / `DIR` | `-send`:接收方 email(scp 风格 `:subdir` 落到 `receive.dir/subdir`);`-recv`:本机存放目录(默认当前目录);`-wol`:广播目标地址 `ADDR[:PORT]`,默认 `255.255.255.255:9`(受限广播,只在本机所在链路内扩散,不经路由器转发;目标在特定网段时可填该网段定向广播地址,如 `192.168.1.255`),这是**实际执行广播那一端**(本机或 `-via` 指定的订阅端)用的地址 | — | CLI 一次性 |
24+
| `-via direct\|relay\|VPS的email` | `-send`/`-recv`:直连打洞(`direct`,打不通直接失败)、经服务端 B 中继(`relay`,无需打洞),或填一台公网 VPS 的 email(该机需开 `direct.relay`)盲转发中继打洞(双方都在 CGNAT 后无法直连时用,详见 [direct-relay-design.md](direct-relay-design.md));均端到端加密。`-wol`:要唤醒的机器本来就没开机,没法自己接这条命令,这里填**同一个局域网里另一台已经开着**的订阅端 email,由它代为广播(不认 `direct`/`relay` 这两个 `-send`/`-recv` 专用关键字,固定走服务端 B 中继,不打洞——魔术包只有 102 字节,用不上打洞开销),需在该订阅端的 `receive.allow` 里放行本机、且那一条要显式加 `wol: true`(默认 `false`,与收发文件是分开的权限,见 [configuration.md](configuration.md)) | `websocket.client.direct.relay`(VPS 侧) | CLI 一次性 |
2425
| `-recv EMAIL:PATH` | 从另一个订阅端取回文件/目录并退出(scp 风格,路径相对对方 `receive.dir`) | — | CLI 一次性 |
2526
| `-parallel N` | `-send`/`-recv`:单个大文件按字节区间切最多 N 块并行传(默认 1,小文件不切) | — | CLI 一次性 |
2627
| `-direct-plain-udp` | 直连(NAT 打洞)连接:跳过 quic-go 批量/ECN 快速 UDP 路径,回落逐包 I/O;高丢包、拥塞窗口卡死时尝试 | `websocket.client.direct.plainUdp` | 命令行 > 配置 |
@@ -74,6 +75,14 @@
7475

7576
# TUN 全局代理(需管理员/root,网卡名/地址经配置 tun.name / tun.addr 指定)
7677
sudo ./anyproxy -mode tun -p 'socks5://127.0.0.1:10000'
78+
79+
# 唤醒本机局域网内一台开了 WOL 的机器,可一次唤醒多台、指定网段广播地址
80+
./anyproxy -wol AA:BB:CC:DD:EE:FF
81+
./anyproxy -wol AA:BB:CC:DD:EE:FF,11:22:33:44:55:66 -to 192.168.1.255:9
82+
83+
# 唤醒另一个订阅端所在局域网里的机器(该订阅端需在 receive.allow 里放行本机;
84+
# 要唤醒的机器本身没开机,填的是同一局域网里另一台已开机的订阅端)
85+
./anyproxy -wol AA:BB:CC:DD:EE:FF -via home@example.com
7786
```
7887

7988
> 上级代理协议前缀支持 `tunnel://`、`socks5://`、`http://`。**不写 `://` 前缀时默认按 `tunnel://` 处理**(全局 `-p`/`default.proxy` 与 `hosts[].proxy` 一致)。注:`-h` 帮助里"裸地址按 http"的旧描述与当前实现不符,以此为准。详见 [routing.md](routing.md)。

0 commit comments

Comments
 (0)