负载均衡终于整上了,接下来该弄qb代理了
This commit is contained in:
@@ -19,19 +19,20 @@
|
||||
|
||||
---
|
||||
|
||||
## Nginx SNI 分流 (`beijing-vps-stream.conf`)
|
||||
## Nginx SNI 分流 (`北京vps-stream.conf`)
|
||||
|
||||
监听 `:443`,按 SNI 将流量分发到不同后端:
|
||||
**端口 443 — 公网入口**,按 SNI 分发流量:
|
||||
|
||||
| SNI | 后端 | 端口 | 用途 |
|
||||
|---|---|---|---|
|
||||
| `www.apple.com` | Xray interconn | :9443 | 反向代理隧道 |
|
||||
| `www.microsoft.com` | Xray mihomo_in | :9444 | Mihomo 客户端 → 搬瓦工出口 |
|
||||
| `news.apple.com` | Xray proxy_from_lan | :9445 | 北京直连代理 |
|
||||
| `www.apple.com` / `www.samsung.com` / `addons.mozilla.org` | Xray interconn | :9443 | 反向代理隧道(多 SNI 轮换) |
|
||||
| `news.apple.com` | Xray proxy_from_lan | :9445 | 北京直连代理(qBittorrent 出站) |
|
||||
| `drive.salmonstill.cn` | NAS | :38653 | 绿联云直接转发 |
|
||||
| 默认 | NPM | :8443 | Nginx Proxy Manager |
|
||||
|
||||
搬瓦工 VPS(部署 `东京-vps-stream.conf` + `tokyo-vps-config.json`):`www.microsoft.com` → Xray :9443,默认 → NPM。
|
||||
**端口 9447 — 数据中心回落**:Reality 探针/探测流量回落到此,按 SNI 代理到真实网站。
|
||||
|
||||
搬瓦工 VPS(部署 `代理vps-stream.conf` + `xray-代理服务器-config.json`):`www.cloudflare.com` → Xray :9443,默认 → NPM。
|
||||
|
||||
---
|
||||
|
||||
@@ -41,11 +42,12 @@
|
||||
|
||||
**Reality 入站** — 共享 privateKey `GGT9LfN_...`,由 Nginx SNI 转发:
|
||||
|
||||
| Tag | 端口 | SNI | Reality target |
|
||||
|---|---|---|---|
|
||||
| `interconn` | :9443 | `www.apple.com` | `www.apple.com:443` |
|
||||
| `mihomo_in` | :9444 | `www.microsoft.com` | `www.microsoft.com:443` |
|
||||
| `proxy_from_lan` | :9445 | `news.apple.com` | `www.apple.com:443` |
|
||||
| Tag | 端口 | serverNames | Reality target | 说明 |
|
||||
|---|---|---|---|---|
|
||||
| `interconn` | :9443 | apple/samsung/mozilla 轮换 | `127.0.0.1:9447` | 反向隧道,多 SNI 防封 + 数据中心回落 |
|
||||
| `proxy_from_lan` | :9445 | `news.apple.com` | `www.apple.com:443` | 北京直连代理(qBittorrent) |
|
||||
|
||||
> `mihomo_in`(旧 Mihomo 中转)已删除,客户端直接连接搬瓦工。
|
||||
|
||||
**dokodemo-door 入站** — 端口转发到旁路由反向隧道,共 11 个:
|
||||
|
||||
@@ -71,12 +73,13 @@
|
||||
|
||||
| Tag | 端口 | 类型 | 用途 |
|
||||
|---|---|---|---|
|
||||
| `proxy_in` | 10809 | mixed | SOCKS5/HTTP 代理 → 搬瓦工出口 |
|
||||
| `socks-dynamic` | 38658 | SOCKS5 (password) | 动态 LAN 端口访问 |
|
||||
|
||||
**出站**:`direct`(freedom 直连)、`to_tokyo`(VLESS+Reality → `67.230.189.235:443`)
|
||||
**出站**:`direct`(freedom 直连)
|
||||
|
||||
**路由**:所有 `external_*` + `interconn` + `socks-dynamic` → `portal`(反向隧道);`mihomo_in` + `proxy_in` → `to_tokyo`;`proxy_from_lan` → `direct`
|
||||
**路由**:所有 `external_*` + `interconn` + `socks-dynamic` → `portal`(反向隧道);`interconn` 探测流量(baidu.com)→ `direct`;`proxy_from_lan` → `direct`
|
||||
|
||||
> `mihomo_in` + `proxy_in` + `to_tokyo` 旧中转链路(北京→搬瓦工),已删除。
|
||||
|
||||
### 旁路由 (`xray-旁路由-config.json`)
|
||||
|
||||
@@ -100,7 +103,7 @@
|
||||
| `to_spark_ssh` | `192.168.1.166:22` | Spark SSH 远程 |
|
||||
| `to_spark_rdp` | `192.168.1.166:3389` | Spark xRDP 桌面远程 |
|
||||
| `to_spark_38662` | `192.168.1.166:38662` | Spark 自定义服务 |
|
||||
| `interconn` | VLESS+Reality → `salmonstill.cn:443` (SNI=www.apple.com) | 隧道链接 |
|
||||
| `interconn-apple/samsung/mozilla` | VLESS+Reality → `salmonstill.cn:443` (多 SNI 轮换) | 隧道链接(balancer + leastPing + fallback) |
|
||||
| `to_beijing_direct` | VLESS+Reality → `salmonstill.cn:443` (SNI=news.apple.com) | 北京直连 |
|
||||
| `direct` | freedom | 直连 |
|
||||
|
||||
@@ -127,9 +130,9 @@
|
||||
|
||||
> 所有显式端口规则优先于 catch-all,现有端口转发不受影响。
|
||||
|
||||
### 搬瓦工 VPS / 洛杉矶 (`tokyo-vps-config.json`)
|
||||
### 搬瓦工 VPS (`xray-代理服务器-config.json`)
|
||||
|
||||
极简:VLESS+Reality 入站 `:9443`(SNI=www.microsoft.com),freedom 出站。
|
||||
极简:VLESS+Reality 入站 `:9443`(SNI=www.cloudflare.com, dest=www.cloudflare.com),freedom 出站。
|
||||
所有客户端(Spark、旁路由、macOS)直连此服务器,不再经北京 VPS 中转。
|
||||
|
||||
---
|
||||
@@ -149,7 +152,9 @@
|
||||
配合 **fake-ip DNS**(`enhanced-mode: fake-ip`),DNS 请求返回 `198.18.x.x` 假 IP,强制流量进入代理路由。
|
||||
|
||||
**代理节点**:
|
||||
- `US-Direct` — VLESS+Reality → `67.230.189.235:443`(默认国外出口,客户端直连搬瓦工)
|
||||
- `US-Direct` — VLESS+Reality → `67.230.189.235:443`(默认国外出口,客户端直连搬瓦工,SNI=www.cloudflare.com)
|
||||
|
||||
> `Xray-Real` 代理节点(经北京 VPS 中转)已移除,Mihomo 全部直连搬瓦工。
|
||||
|
||||
**关键策略组**:
|
||||
- 国外 → `[US-Direct, 直连]`
|
||||
@@ -862,15 +867,15 @@ BT Peer → salmonstill.cn:51413 → portal → 隧道 → bridge → to_qbit
|
||||
|
||||
|
||||
| 文件 | 目标设备 | 部署路径 |
|
||||
|---|---|---|
|
||||
| `beijing-vps-stream.conf` | 北京 VPS | `/etc/nginx/stream.conf.d/` |
|
||||
|---|---|---|---|
|
||||
| `北京vps-stream.conf` | 北京 VPS | `/etc/nginx/nginx.conf` 的 `stream {}` 块 |
|
||||
| `xray-北京vps-config.json` | 北京 VPS | `/usr/local/etc/xray/config.json` |
|
||||
| `东京-vps-stream.conf` | 搬瓦工 VPS | `/etc/nginx/stream.conf.d/` |
|
||||
| `tokyo-vps-config.json` | 搬瓦工 VPS | `/usr/local/etc/xray/config.json` |
|
||||
| `代理vps-stream.conf` | 搬瓦工 VPS | `/etc/nginx/nginx.conf` 的 `stream {}` 块 |
|
||||
| `xray-代理服务器-config.json` | 搬瓦工 VPS | `/usr/local/etc/xray/config.json` |
|
||||
| `xray-旁路由-config.json` | 旁路由 | `/etc/xray/config.json` |
|
||||
| `旁路由的mihomo config.yaml` | 旁路由 | `/opt/mihomo/config.yaml` |
|
||||
| `非tun模式的主机mihomo config.yaml` | macOS | `~/Library/LaunchAgents/` (launchctl 管理) |
|
||||
| `tun模式的主机mihomo config.yaml` | Spark (Ubuntu) | `/opt/mihomo/config.yaml` (systemd) |
|
||||
| `非tun模式的主机mihomo config.yaml` | macOS | `~/Library/Application Support/mihomo/config.yaml` (launchctl 管理) |
|
||||
| `tun模式的主机mihomo config.yaml` | Spark (Ubuntu) | `/opt/mihomo/config.yaml`
|
||||
| `subscribe-7891-only.yaml` | 通用 | 精简版模板(单独 7891 端口) |
|
||||
| `qbittorrent流量转发.md` | — | 方案文档(已合并到 README,可删除) |
|
||||
| `我的世界udp转发.md` | — | 方案文档(已合并到 README,可删除) |
|
||||
|
||||
Reference in New Issue
Block a user