现在正在进行xray的更新,因为最近xray有点出问题了
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
| 设备 | IP / 域名 | 角色 |
|
| 设备 | IP / 域名 | 角色 |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| **北京 VPS** | `salmonstill.cn` / `49.232.242.90` | 公网入口,Nginx + Xray + socat + WireGuard |
|
| **北京 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 代理 |
|
| **旁路由** | `192.168.1.199` / WG `10.0.0.2` | 内网核心,Xray bridge + Mihomo 代理 |
|
||||||
| **NAS** | `192.168.1.188` | 绿联云 UGOS,思源笔记等服务 |
|
| **NAS** | `192.168.1.188` | 绿联云 UGOS,思源笔记等服务 |
|
||||||
| **qBittorrent** | `192.168.1.200` (macvlan) | PT 下载,独立 IP |
|
| **qBittorrent** | `192.168.1.200` (macvlan) | PT 下载,独立 IP |
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
| `proxy_in` | 10809 | mixed | SOCKS5/HTTP 代理 → 搬瓦工出口 |
|
| `proxy_in` | 10809 | mixed | SOCKS5/HTTP 代理 → 搬瓦工出口 |
|
||||||
| `socks-dynamic` | 38658 | SOCKS5 (password) | 动态 LAN 端口访问 |
|
| `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`
|
**路由**:所有 `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,强制流量进入代理路由。
|
配合 **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, 直连]`
|
- 国外 → `[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`(强制直连)
|
**额外监听器**:`: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 校验会失败。
|
`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:代理翻墙(直连搬瓦工)
|
### 路径 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 → 互联网
|
→ Nginx 分流 → Xray :9443 → freedom → 互联网
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -64,14 +64,14 @@ proxies:
|
|||||||
|
|
||||||
- name: US-Direct
|
- name: US-Direct
|
||||||
type: vless
|
type: vless
|
||||||
server: 173.242.118.60
|
server: 67.230.189.235
|
||||||
port: 443
|
port: 443
|
||||||
uuid: "4d222c16-53bb-4402-814e-c8188cebcea6"
|
uuid: "4d222c16-53bb-4402-814e-c8188cebcea6"
|
||||||
udp: true
|
udp: true
|
||||||
flow: xtls-rprx-vision
|
flow: xtls-rprx-vision
|
||||||
packet-encoding: xudp
|
packet-encoding: xudp
|
||||||
tls: true
|
tls: true
|
||||||
servername: www.microsoft.com
|
servername: www.cloudflare.com
|
||||||
client-fingerprint: chrome
|
client-fingerprint: chrome
|
||||||
reality-opts:
|
reality-opts:
|
||||||
public-key: "jr_zQjC4mvlQITuG5Ap5Mxqe5EBbGyyvwbVLDEi8OCA"
|
public-key: "jr_zQjC4mvlQITuG5Ap5Mxqe5EBbGyyvwbVLDEi8OCA"
|
||||||
@@ -297,7 +297,7 @@ rules:
|
|||||||
- DOMAIN-SUFFIX,hf-mirror.com,国内
|
- DOMAIN-SUFFIX,hf-mirror.com,国内
|
||||||
- DOMAIN-KEYWORD,raylink,直连
|
- DOMAIN-KEYWORD,raylink,直连
|
||||||
- IP-CIDR,49.232.242.90/32,直连
|
- IP-CIDR,49.232.242.90/32,直连
|
||||||
- IP-CIDR,173.242.118.60/32,直连
|
- IP-CIDR,67.230.189.235/32,直连
|
||||||
- DOMAIN-SUFFIX,ubuntu.com,国外
|
- DOMAIN-SUFFIX,ubuntu.com,国外
|
||||||
- DOMAIN-SUFFIX,canonical.com,国外
|
- DOMAIN-SUFFIX,canonical.com,国外
|
||||||
- DOMAIN-SUFFIX,okx.com,国外
|
- DOMAIN-SUFFIX,okx.com,国外
|
||||||
|
|||||||
@@ -22,10 +22,10 @@
|
|||||||
"security": "reality",
|
"security": "reality",
|
||||||
"realitySettings": {
|
"realitySettings": {
|
||||||
"show": false,
|
"show": false,
|
||||||
"dest": "www.microsoft.com:443",
|
"dest": "www.cloudflare.com:443",
|
||||||
"xver": 0,
|
"xver": 0,
|
||||||
"serverNames": [
|
"serverNames": [
|
||||||
"www.microsoft.com"
|
"www.cloudflare.com"
|
||||||
],
|
],
|
||||||
"privateKey": "iBlu3eH1VLf1S5Qw87m_1w0TGYUktDwHAzgpQ2aKuGI",
|
"privateKey": "iBlu3eH1VLf1S5Qw87m_1w0TGYUktDwHAzgpQ2aKuGI",
|
||||||
"shortIds": [
|
"shortIds": [
|
||||||
|
|||||||
@@ -314,7 +314,7 @@
|
|||||||
"settings": {
|
"settings": {
|
||||||
"vnext": [
|
"vnext": [
|
||||||
{
|
{
|
||||||
"address": "173.242.118.60",
|
"address": "67.230.189.235",
|
||||||
"port": 443,
|
"port": 443,
|
||||||
"users": [
|
"users": [
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
stream {
|
stream {
|
||||||
map $ssl_preread_server_name $backend {
|
map $ssl_preread_server_name $backend {
|
||||||
www.microsoft.com xray;
|
www.cloudflare.com xray;
|
||||||
default npm;
|
default npm;
|
||||||
}
|
}
|
||||||
upstream xray {
|
upstream xray {
|
||||||
|
|||||||
+3
-19
@@ -54,32 +54,16 @@ proxies:
|
|||||||
- name: 拒绝
|
- name: 拒绝
|
||||||
type: reject
|
type: reject
|
||||||
|
|
||||||
- name: Xray-Real
|
|
||||||
type: vless
|
|
||||||
server: 49.232.242.90
|
|
||||||
port: 443
|
|
||||||
uuid: "113e167a-a2be-4b46-9010-60020108626c"
|
|
||||||
udp: true
|
|
||||||
flow: xtls-rprx-vision
|
|
||||||
packet-encoding: xudp
|
|
||||||
tls: true
|
|
||||||
servername: www.microsoft.com
|
|
||||||
client-fingerprint: chrome
|
|
||||||
reality-opts:
|
|
||||||
public-key: "62y5gDjPrdeuePGl-D2IW4Cw9Kb8_bSBBTmArvL7Nhs"
|
|
||||||
short-id: "7c947a71b94f369e"
|
|
||||||
network: tcp
|
|
||||||
|
|
||||||
- name: US-Direct
|
- name: US-Direct
|
||||||
type: vless
|
type: vless
|
||||||
server: 173.242.118.60
|
server: 67.230.189.235
|
||||||
port: 443
|
port: 443
|
||||||
uuid: "4d222c16-53bb-4402-814e-c8188cebcea6"
|
uuid: "4d222c16-53bb-4402-814e-c8188cebcea6"
|
||||||
udp: true
|
udp: true
|
||||||
flow: xtls-rprx-vision
|
flow: xtls-rprx-vision
|
||||||
packet-encoding: xudp
|
packet-encoding: xudp
|
||||||
tls: true
|
tls: true
|
||||||
servername: www.microsoft.com
|
servername: www.cloudflare.com
|
||||||
client-fingerprint: chrome
|
client-fingerprint: chrome
|
||||||
reality-opts:
|
reality-opts:
|
||||||
public-key: "jr_zQjC4mvlQITuG5Ap5Mxqe5EBbGyyvwbVLDEi8OCA"
|
public-key: "jr_zQjC4mvlQITuG5Ap5Mxqe5EBbGyyvwbVLDEi8OCA"
|
||||||
@@ -305,7 +289,7 @@ rules:
|
|||||||
- DOMAIN-SUFFIX,volces.com,直连
|
- DOMAIN-SUFFIX,volces.com,直连
|
||||||
- DOMAIN-KEYWORD,raylink,直连
|
- DOMAIN-KEYWORD,raylink,直连
|
||||||
- IP-CIDR,49.232.242.90/32,直连
|
- IP-CIDR,49.232.242.90/32,直连
|
||||||
- IP-CIDR,173.242.118.60/32,直连
|
- IP-CIDR,67.230.189.235/32,直连
|
||||||
- DOMAIN-SUFFIX,ubuntu.com,国外
|
- DOMAIN-SUFFIX,ubuntu.com,国外
|
||||||
- DOMAIN-SUFFIX,canonical.com,国外
|
- DOMAIN-SUFFIX,canonical.com,国外
|
||||||
- DOMAIN-SUFFIX,okx.com,国外
|
- DOMAIN-SUFFIX,okx.com,国外
|
||||||
|
|||||||
@@ -51,32 +51,16 @@ proxies:
|
|||||||
- name: 拒绝
|
- name: 拒绝
|
||||||
type: reject
|
type: reject
|
||||||
|
|
||||||
- name: Xray-Real
|
|
||||||
type: vless
|
|
||||||
server: salmonstill.cn
|
|
||||||
port: 443
|
|
||||||
uuid: "113e167a-a2be-4b46-9010-60020108626c"
|
|
||||||
udp: true
|
|
||||||
flow: xtls-rprx-vision
|
|
||||||
packet-encoding: xudp
|
|
||||||
tls: true
|
|
||||||
servername: www.microsoft.com
|
|
||||||
client-fingerprint: chrome
|
|
||||||
reality-opts:
|
|
||||||
public-key: "62y5gDjPrdeuePGl-D2IW4Cw9Kb8_bSBBTmArvL7Nhs"
|
|
||||||
short-id: "7c947a71b94f369e"
|
|
||||||
network: tcp
|
|
||||||
|
|
||||||
- name: US-Direct
|
- name: US-Direct
|
||||||
type: vless
|
type: vless
|
||||||
server: 173.242.118.60
|
server: 67.230.189.235
|
||||||
port: 443
|
port: 443
|
||||||
uuid: "4d222c16-53bb-4402-814e-c8188cebcea6"
|
uuid: "4d222c16-53bb-4402-814e-c8188cebcea6"
|
||||||
udp: true
|
udp: true
|
||||||
flow: xtls-rprx-vision
|
flow: xtls-rprx-vision
|
||||||
packet-encoding: xudp
|
packet-encoding: xudp
|
||||||
tls: true
|
tls: true
|
||||||
servername: www.microsoft.com
|
servername: www.cloudflare.com
|
||||||
client-fingerprint: chrome
|
client-fingerprint: chrome
|
||||||
reality-opts:
|
reality-opts:
|
||||||
public-key: "jr_zQjC4mvlQITuG5Ap5Mxqe5EBbGyyvwbVLDEi8OCA"
|
public-key: "jr_zQjC4mvlQITuG5Ap5Mxqe5EBbGyyvwbVLDEi8OCA"
|
||||||
@@ -302,7 +286,7 @@ rules:
|
|||||||
- DOMAIN-SUFFIX,hf-mirror.com,国内
|
- DOMAIN-SUFFIX,hf-mirror.com,国内
|
||||||
- DOMAIN-KEYWORD,raylink,直连
|
- DOMAIN-KEYWORD,raylink,直连
|
||||||
- IP-CIDR,49.232.242.90/32,直连
|
- IP-CIDR,49.232.242.90/32,直连
|
||||||
- IP-CIDR,173.242.118.60/32,直连
|
- IP-CIDR,67.230.189.235/32,直连
|
||||||
- DOMAIN-SUFFIX,ubuntu.com,国外
|
- DOMAIN-SUFFIX,ubuntu.com,国外
|
||||||
- DOMAIN-SUFFIX,canonical.com,国外
|
- DOMAIN-SUFFIX,canonical.com,国外
|
||||||
- DOMAIN-SUFFIX,okx.com,国外
|
- DOMAIN-SUFFIX,okx.com,国外
|
||||||
|
|||||||
Reference in New Issue
Block a user