Update README.md

fix typo

update

移除 client、bridge 配置中的 "allowInsecure": true
默认注释 portal.json 中仅转发内网流量的配置
update readme.md
This commit is contained in:
N1klaz 2022-07-01 03:06:13 +08:00
parent 99c3567db3
commit 4cc60b0a79
6 changed files with 14 additions and 11 deletions

View File

@ -1,10 +1,10 @@
# 反向代理
# 原理
Xray Client <--- VMESS/SS ---> Xray Protal(需要公网 IP) <--- VMESS/SS ---> Xray Bridge
Xray Client <--- VMESS/SS ---> Xray Portal(需要公网 IP) <--- VMESS/SS ---> Xray Bridge
# 说明
配置中,内网设备使用的配置为 `bridge.json`,有公网 ip 的设备使用 `protal.json`,通过`protal`连接到内网的设备使用`client.json`
配置中,内网设备使用的配置为 `bridge.json`,有公网 ip 的设备使用 `portal.json`,通过`portal`连接到内网的设备使用`client.json`
实际应用中,可以使用`VMESS-TCP、Shadowsocks-2022`等作为Xray Client 到 Xray Protal、Xray Bridge 到 Xray Protal 的传输协议。
实际应用中,可以使用`VMESS-TCP、Shadowsocks-2022`等作为Xray Client 到 Xray Portal、Xray Bridge 到 Xray Portal 的传输协议。
## psk

View File

@ -10,6 +10,12 @@ portal 设置默认回落到 80 端口的 Web 服务器(也可以换成数据
如果你的 portal 在境外,可以使用路由分流来同时实现科学上网 + 访问内网设备。
## 路由分流
根据配置内提示,在 `Portal` 配置中的路由设置为:
匹配 `"external","externalws"` 标签,且访问的目标 ip 为`私有 ip`时,才将流量转发至 bridge其余流量走 direct。
根据配置内提示,在 `Portal` 配置中, 取消注释第一项路由中的:
```
// "ip": [
// "geoip:private"
// ],
```
此时流量匹配 `"external"``"externalws"` 标签,且访问的目标 ip 为`私有 ip 地址`时,才会将流量转发至 bridge其余流量走 direct。

View File

@ -33,7 +33,6 @@
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": true,
"serverName": "reverse.example" //
},
"wsSettings": {

View File

@ -53,7 +53,6 @@
"network": "tcp",
"security": "xtls",
"xtlsSettings": {
"allowInsecure": true,
"serverName": "reverse.example" //
}
}

View File

@ -52,7 +52,6 @@
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": true,
"serverName": "reverse.example" //
},
"wsSettings": {

View File

@ -122,9 +122,9 @@
],
// external bridge
//
"ip": [
"geoip:private"
],
// "ip": [
// "geoip:private"
// ],
"outboundTag": "portal"
},
{