|
发表于 2019-5-27 20:10:41
|
显示全部楼层
本帖最后由 ymcoming 于 2019-5-28 10:14 编辑
2只鸡都装V2,落地鸡的服务器端就是普通V2_ray的装法
中转鸡的的服务器端"outbound": 原来是这样的:
---------------------------------------------------------------
{
"streamSettings": null,
"tag": null,
"protocol": "freedom",
"mux": null,
"settings": null
},
------------------------------------------------------
现在中转鸡的服务器端新增一个 "outboundDetour":
---------------------------------------------------------
[
{
"tag": "netflix",
-------------落地鸡的本地客户端的config里的outbound部分复制过来,例如我这里的ws+tls----------
"streamSettings": {
"network": "ws",
"kcpSettings": null,
"wsSettings": {
"headers": {
"host": "xxx.com"
},
"connectionReuse": true,
"path": "/ws"
},
"tcpSettings": null,
"tlsSettings": {},
"security": ""
},
"settings": {
"ip": null,
"udp": true,
"clients": [
{
"alterId": 16,
"security": "auto",
"id": "xxxxxx-xxxx-xxxx-xxxx-xxxxx"
}
],
"auth": null
},
"protocol": "vmess",
"port": xxxxx,
"listen": null
-------------落地鸡的本地客户端的config里的outbound部分复制过来,例如我这里的ws+tls----------
},
------------------------------------------------------------
再在中转鸡的服务器端"routing":新增一个:
--------------------------------------------------------
{
"type": "field",
"port": null,
"outboundTag": "netflix",
"ip": null,
"domain": [
"geosite:netflix"
]
}
----------------------------------------------------
就OK了,你访问中转鸡时,中转鸡自动把netflix的流量指向落地鸡。其它流量还是走中转鸡。
也就是说,你的中转鸡或落地鸡的本地客户端config完全不变,落地鸡的VPS服务器端config也不变,只变一个中转鸡的VPS服务器端的config
当然,如果你落地鸡是SS,也可以不变,唯一变的是中转鸡的V2服务器端的"outboundDetour":
---------------------------------------------------------
[
{
"tag": "netflix",
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "xxx.com",
"port": xxx,
"method": "aes-256-gcm",
"password": "xxxx",
"ota": false,
"level": 1
}
]
}
----------------------------------------------------
"routing":新增同上
--------------------------------------------------------
{
"type": "field",
"port": null,
"outboundTag": "netflix",
"ip": null,
"domain": [
"geosite:netflix"
]
}
----------------------------------------------------
总结:落地鸡是S_S,也只需改一个中转鸡的V2_ray的服务器端的config,落地鸡是S_S_R不行,因为v2_ray不支持s_s_r
此方式支持一切形式的连接,包括路由器/手机/电脑均正常观看netflix
流程图可以有以下形式:
1、 本地v2ray客户端-------》VPS中转鸡v2ray(进v2,出v2)-------》VPS落地鸡v2ray
2、 本地v2ray客户端-------》VPS中转鸡v2ray(进v2,出ss)-------》VPS落地鸡ss
3、 本地ss客户端-------》VPS中转鸡v2ray(进ss,出v2)-------》VPS落地鸡v2ray
4、 本地ss客户端-------》VPS中转鸡v2ray(进ss,出ss)-------》VPS落地鸡ss
还有落地鸡装socks5也行,中转鸡也能连socks5到落地鸡 |
|