现在准备加一个手机软件开发映射的功能。
This commit is contained in:
+8
-8
@@ -7,7 +7,7 @@
|
||||
qBittorrent(192.168.1.200) 互联网
|
||||
↓ SOCKS5 旁路由:1080 (socks-lan) ↑
|
||||
↓ Xray routing → to_beijing_direct │
|
||||
↓ Reality(VLESS, SNI=news.apple.com) │
|
||||
↓ Reality(VLESS, SNI=www.bilibili.com) │
|
||||
↓ 北京VPS:443 → Nginx分流 │
|
||||
↓ proxy_from_lan:9445 → direct(freedom) ─────────────────┘
|
||||
|
||||
@@ -33,14 +33,14 @@ Peer → 北京VPS:51413 → external_qbit → portal
|
||||
|
||||
### 1.1 Nginx Stream SNI 分流 `beijing-vps-stream.conf`
|
||||
|
||||
新增 `news.apple.com` SNI 映射(用于旁路由 Mihomo 直连代理):
|
||||
新增 `www.bilibili.com` SNI 映射(用于旁路由 Mihomo 直连代理):
|
||||
|
||||
```nginx
|
||||
stream {
|
||||
map $ssl_preread_server_name $backend {
|
||||
www.apple.com xray; # 旁路由反向代理隧道
|
||||
www.microsoft.com mihomo; # 外部客户端代理 → 东京出口
|
||||
news.apple.com xray_lan; # 旁路由 Mihomo 北京直连代理
|
||||
www.bilibili.com xray_lan; # 旁路由 Mihomo 北京直连代理
|
||||
drive.salmonstill.cn nas; # 绿联云服务
|
||||
default npm; # Nginx Proxy Manager
|
||||
}
|
||||
@@ -84,7 +84,7 @@ stream {
|
||||
"realitySettings": {
|
||||
"show": false,
|
||||
"target": "www.apple.com:443",
|
||||
"serverNames": ["news.apple.com"],
|
||||
"serverNames": ["www.bilibili.com"],
|
||||
"privateKey": "GGT9LfN_2JdQG68cwrULgUK-adfT6wIokLzWjaB0fXs",
|
||||
"shortIds": ["7c947a71b94f369e"]
|
||||
}
|
||||
@@ -92,7 +92,7 @@ stream {
|
||||
}
|
||||
```
|
||||
|
||||
> Reality 公私钥复用已有的 `interconn` 入站 keypair,`serverNames` 用新的 `news.apple.com` 与 Nginx 对应。
|
||||
> Reality 公私钥复用已有的 `interconn` 入站 keypair,`serverNames` 用新的 `www.bilibili.com` 与 Nginx 对应。
|
||||
> `target` 设为 `www.apple.com:443`,Reality 从此地址偷取真实 TLS 证书用于伪装。
|
||||
|
||||
#### 新增入站 `external_qbit`(BT 入站端口)
|
||||
@@ -177,7 +177,7 @@ qBittorrent 出站不走 Mihomo 透明代理,而是通过旁路由上 Xray 的
|
||||
"security": "reality",
|
||||
"realitySettings": {
|
||||
"fingerprint": "chrome",
|
||||
"serverName": "news.apple.com",
|
||||
"serverName": "www.bilibili.com",
|
||||
"publicKey": "62y5gDjPrdeuePGl-D2IW4Cw9Kb8_bSBBTmArvL7Nhs",
|
||||
"shortId": "7c947a71b94f369e"
|
||||
}
|
||||
@@ -191,7 +191,7 @@ qBittorrent 出站不走 Mihomo 透明代理,而是通过旁路由上 Xray 的
|
||||
{ "type": "field", "inboundTag": ["socks-lan"], "outboundTag": "to_beijing_direct" }
|
||||
```
|
||||
|
||||
> 路径:`qBittorrent → SOCKS5 旁路由:1080 → to_beijing_direct → 北京VPS:443(SNI=news.apple.com) → proxy_from_lan:9445 → direct → 互联网`
|
||||
> 路径:`qBittorrent → SOCKS5 旁路由:1080 → to_beijing_direct → 北京VPS:443(SNI=www.bilibili.com) → proxy_from_lan:9445 → direct → 互联网`
|
||||
|
||||
---
|
||||
|
||||
@@ -359,6 +359,6 @@ nc -zv salmonstill.cn 51413
|
||||
|
||||
| 文件 | 位置 | 作用 |
|
||||
|---|---|---|
|
||||
| `beijing-vps-stream.conf` | 北京VPS `/etc/nginx/stream.conf.d/` | Nginx SNI分流(含 news.apple.com → 9445) |
|
||||
| `beijing-vps-stream.conf` | 北京VPS `/etc/nginx/stream.conf.d/` | Nginx SNI分流(含 www.bilibili.com → 9445) |
|
||||
| `xray-北京vps-config.json` | 北京VPS `/usr/local/etc/xray/config.json` | Xray 入站+路由(含 proxy_from_lan + external_qbit) |
|
||||
| `xray-旁路由-config.json` | 旁路由 `/etc/xray/config.json` | Xray bridge + to_qbit(51413) + socks-lan(1080) → to_beijing_direct |
|
||||
|
||||
Reference in New Issue
Block a user