现在正在进行xray的更新,因为最近xray有点出问题了
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
| 设备 | IP / 域名 | 角色 |
|
||||
|---|---|---|
|
||||
| **北京 VPS** | `salmonstill.cn` / `49.232.242.90` | 公网入口,Nginx + Xray + socat + WireGuard |
|
||||
| **搬瓦工 VPS** | `173.242.118.60` | 代理出口,Xray Reality 入站(客户端直连) |
|
||||
| **搬瓦工 VPS** | `67.230.189.235` | 代理出口,Xray Reality 入站(客户端直连) |
|
||||
| **旁路由** | `192.168.1.199` / WG `10.0.0.2` | 内网核心,Xray bridge + Mihomo 代理 |
|
||||
| **NAS** | `192.168.1.188` | 绿联云 UGOS,思源笔记等服务 |
|
||||
| **qBittorrent** | `192.168.1.200` (macvlan) | PT 下载,独立 IP |
|
||||
@@ -74,7 +74,7 @@
|
||||
| `proxy_in` | 10809 | mixed | SOCKS5/HTTP 代理 → 搬瓦工出口 |
|
||||
| `socks-dynamic` | 38658 | SOCKS5 (password) | 动态 LAN 端口访问 |
|
||||
|
||||
**出站**:`direct`(freedom 直连)、`to_tokyo`(VLESS+Reality → `173.242.118.60:443`)
|
||||
**出站**:`direct`(freedom 直连)、`to_tokyo`(VLESS+Reality → `67.230.189.235:443`)
|
||||
|
||||
**路由**:所有 `external_*` + `interconn` + `socks-dynamic` → `portal`(反向隧道);`mihomo_in` + `proxy_in` → `to_tokyo`;`proxy_from_lan` → `direct`
|
||||
|
||||
@@ -149,12 +149,12 @@
|
||||
配合 **fake-ip DNS**(`enhanced-mode: fake-ip`),DNS 请求返回 `198.18.x.x` 假 IP,强制流量进入代理路由。
|
||||
|
||||
**代理节点**:
|
||||
- `US-Direct` — VLESS+Reality → `173.242.118.60:443`(默认国外出口,客户端直连搬瓦工)
|
||||
- `US-Direct` — VLESS+Reality → `67.230.189.235:443`(默认国外出口,客户端直连搬瓦工)
|
||||
|
||||
**关键策略组**:
|
||||
- 国外 → `[US-Direct, 直连]`
|
||||
|
||||
**防死循环 IP**:`49.232.242.90`(北京 VPS)、`173.242.118.60`(搬瓦工 VPS)强制直连。
|
||||
**防死循环 IP**:`49.232.242.90`(北京 VPS)、`67.230.189.235`(搬瓦工 VPS)强制直连。
|
||||
|
||||
**额外监听器**:`:7891`(全局→US-Direct)、`:7892`(强制直连)
|
||||
|
||||
@@ -807,6 +807,20 @@ sudo tcpdump -i bridge0 udp port 19132 -n
|
||||
|
||||
`Beijing-Direct` 节点必须 `skip-cert-verify: true`,因 Reality 返回 target(`www.apple.com`)的证书,而 SNI 是 `news.apple.com`,TLS SAN 校验会失败。
|
||||
|
||||
### Reality 故障排查
|
||||
|
||||
| 现象 | 根因 | 解决 |
|
||||
|---|---|---|
|
||||
| Mihomo 日志 `connect error: EOF`,Xray 日志 `handshake did not complete successfully` | 运营商检测并干扰特定 SNI(如 `www.microsoft.com`)。某次 VPS 迁移后开始出现,同配置在旧 VPS 正常 | 更换 SNI/serverNames/dest 为其他高信誉域名,如 `www.cloudflare.com`。仅 SNI 变换即可,无需更换密钥 |
|
||||
| Xray 日志 `target sent incorrect server hello or handshake incomplete` | Reality dest 目标不适合(如 `www.cloudflare.com` 不支持直连 TLS 1.3 或返回非标准 Server Hello) | 换用标准 Web 站点(如 `www.microsoft.com` 或 `www.youtube.com` 作为 dest,`www.cloudflare.com` 作为 SNI) |
|
||||
|
||||
**Reality 参数一致性清单**(出现握手失败时逐项核对):
|
||||
- Xray `privateKey` ←→ Mihomo `public-key`(`xray x25519 -i <私钥>` 验证)
|
||||
- Xray `shortIds` ←→ Mihomo `short-id`
|
||||
- Xray `id` ←→ Mihomo `uuid`
|
||||
- Xray `serverNames[0]` ←→ Mihomo `servername` ←→ Nginx stream map
|
||||
- VPS 能直连 Reality `dest` 目标(`curl -4s https://<dest> -o /dev/null -w '%{http_code}'`)
|
||||
|
||||
---
|
||||
|
||||
## 流量路径
|
||||
@@ -819,7 +833,7 @@ sudo tcpdump -i bridge0 udp port 19132 -n
|
||||
|
||||
### 路径 2:代理翻墙(直连搬瓦工)
|
||||
```
|
||||
Mihomo 客户端 → 173.242.118.60:443 (SNI=www.microsoft.com)
|
||||
Mihomo 客户端 → 67.230.189.235:443 (SNI=www.cloudflare.com)
|
||||
→ Nginx 分流 → Xray :9443 → freedom → 互联网
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user