v5.0.3配置balancer后不起作用,一直选用第一个outbound
你正在使用哪个版本的 V2Ray?
os: win10 v2ray-core: x64 v5.0.3
你的使用场景是什么?
使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频
你看到的异常现象是什么?
balancer不起作用,日志显示app/dispatcher: default route,只选用第一个outbound。 是不是配置不对? 还有leastPing和leastLoad可不可以给份完整配置示例?那两个不知道怎么配置。
你期待看到的正常表现是怎样的?
balancer能够正常工作
请附上你的配置
服务端配置:
// 在这里附上服务器端配置文件
客户端配置:
{
"log": {
"error": {
"type": "Console",
"level": "Debug"
}
},
"inbounds": [
{
"tag": "agentin",
"protocol": "http",
"listen": "127.0.0.1",
"port": 8080,
"settings": {}
}
],
"outbounds": [
{
"tag": "node0",
"protocol": "vmess",
"settings": {
"address": "1.2.3.4",
"port": 80,
"uuid": "e88645e6-6f19-43cd-9db0-e60938d83bef"
},
"streamSettings": {
"transport": "ws",
"transportSettings": {},
"security": "none",
"securitySettings": {}
}
},
{
"tag": "node1",
"protocol": "vless",
"settings": {
"address": "free-proxy.org",
"port": 443,
"uuid": "0631e463-c1b9-4bad-90f0-848170afe6e8"
},
"streamSettings": {
"transport": "ws",
"transportSettings": {
"path": "/wspath"
},
"security": "tls",
"securitySettings": {
"serverName": "free-proxy.org"
}
}
}
],
"routing": {
"balancingRule": [
{
"tag": "servers",
"outboundSelector": [
"node"
],
"strategy": {
"type": "random"
}
}
],
"rule": [
{
"inboundTag": [
"agentin"
],
"balancingTag": "servers"
}
]
}
}
请附上出错时软件输出的错误日志
服务器端错误日志:
// 在这里附上服务器端日志
客户端错误日志:
2022/02/08 10:41:55 Using config from STDIN
V2Ray 5.0.3 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.17.6 windows/amd64)
A unified platform for anti-censorship.
2022/02/08 10:41:55 [Debug] app/log: Logger started
2022/02/08 10:41:55 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:8080
2022/02/08 10:41:55 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:8080
2022/02/08 10:41:55 [Warning] V2Ray 5.0.3 started
2022/02/08 10:42:01 [Info] [1558043059] proxy/http: request to Method [CONNECT] Host [www.gstatic.com:443] with URL [//www.gstatic.com:443]
2022/02/08 10:42:01 [Warning] [1558043059] app/dispatcher: default route for tcp:www.gstatic.com:443
2022/02/08 10:42:01 [Info] [1558043059] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:01 [Info] [1558043059] proxy/vmess/outbound: tunneling request to tcp:www.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:03 [Info] [3358114264] proxy/http: request to Method [CONNECT] Host [www.youtube.com:443] with URL [//www.youtube.com:443]
2022/02/08 10:42:03 [Warning] [3358114264] app/dispatcher: default route for tcp:www.youtube.com:443
2022/02/08 10:42:03 [Info] [3358114264] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:03 [Info] [3358114264] proxy/vmess/outbound: tunneling request to tcp:www.youtube.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:04 [Info] [1242625309] proxy/http: request to Method [CONNECT] Host [i.ytimg.com:443] with URL [//i.ytimg.com:443]
2022/02/08 10:42:04 [Warning] [1242625309] app/dispatcher: default route for tcp:i.ytimg.com:443
2022/02/08 10:42:04 [Info] [1242625309] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:04 [Info] [1242625309] proxy/vmess/outbound: tunneling request to tcp:i.ytimg.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:04 [Info] [1855028545] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 10:42:04 [Warning] [1855028545] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 10:42:04 [Info] [1855028545] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:04 [Info] [1855028545] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:06 [Info] [1855028545] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:06 [Info] [1855028545] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:06 [Info] [2752717457] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 10:42:06 [Warning] [2752717457] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 10:42:06 [Info] [2752717457] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:06 [Info] [2752717457] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:07 [Info] [2752717457] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:07 [Info] [2752717457] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:07 [Info] [700700677] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 10:42:07 [Warning] [700700677] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 10:42:07 [Info] [700700677] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:07 [Info] [700700677] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:08 [Info] [3253003415] proxy/http: request to Method [CONNECT] Host [yt3.ggpht.com:443] with URL [//yt3.ggpht.com:443]
2022/02/08 10:42:08 [Warning] [3253003415] app/dispatcher: default route for tcp:yt3.ggpht.com:443
2022/02/08 10:42:08 [Info] [3253003415] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:08 [Info] [3253003415] proxy/vmess/outbound: tunneling request to tcp:yt3.ggpht.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:08 [Info] [700700677] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:08 [Info] [700700677] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:08 [Info] [871506760] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 10:42:08 [Warning] [871506760] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 10:42:08 [Info] [871506760] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:08 [Info] [871506760] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:09 [Info] [871506760] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:09 [Info] [871506760] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:16 [Info] [1452878119] proxy/http: request to Method [CONNECT] Host [github.com:443] with URL [//github.com:443]
2022/02/08 10:42:16 [Warning] [1452878119] app/dispatcher: default route for tcp:github.com:443
2022/02/08 10:42:16 [Info] [1452878119] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:16 [Info] [1452878119] proxy/vmess/outbound: tunneling request to tcp:github.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:17 [Info] [3433266276] proxy/http: request to Method [CONNECT] Host [alive.github.com:443] with URL [//alive.github.com:443]
2022/02/08 10:42:17 [Warning] [3433266276] app/dispatcher: default route for tcp:alive.github.com:443
2022/02/08 10:42:17 [Info] [3433266276] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:17 [Info] [3433266276] proxy/vmess/outbound: tunneling request to tcp:alive.github.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:30 [Info] [963984228] proxy/http: request to Method [CONNECT] Host [rr1---sn-i3belnl6.googlevideo.com:443] with URL [//rr1---sn-i3belnl6.googlevideo.com:443]
2022/02/08 10:42:30 [Warning] [963984228] app/dispatcher: default route for tcp:rr1---sn-i3belnl6.googlevideo.com:443
2022/02/08 10:42:30 [Info] [963984228] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:30 [Info] [963984228] proxy/vmess/outbound: tunneling request to tcp:rr1---sn-i3belnl6.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:31 [Info] [181646696] proxy/http: request to Method [CONNECT] Host [rr1---sn-i3b7knld.googlevideo.com:443] with URL [//rr1---sn-i3b7knld.googlevideo.com:443]
2022/02/08 10:42:31 [Warning] [181646696] app/dispatcher: default route for tcp:rr1---sn-i3b7knld.googlevideo.com:443
2022/02/08 10:42:31 [Info] [181646696] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:31 [Info] [2120143839] proxy/http: request to Method [CONNECT] Host [rr1---sn-i3b7knld.googlevideo.com:443] with URL [//rr1---sn-i3b7knld.googlevideo.com:443]
2022/02/08 10:42:31 [Warning] [2120143839] app/dispatcher: default route for tcp:rr1---sn-i3b7knld.googlevideo.com:443
2022/02/08 10:42:31 [Info] [2120143839] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:31 [Info] [2120143839] proxy/vmess/outbound: tunneling request to tcp:rr1---sn-i3b7knld.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:31 [Info] [181646696] proxy/vmess/outbound: tunneling request to tcp:rr1---sn-i3b7knld.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:31 [Info] [1110170909] proxy/http: request to Method [CONNECT] Host [r2---sn-gvnuxaxjvh-hh3l.googlevideo.com:443] with URL [//r2---sn-gvnuxaxjvh-hh3l.googlevideo.com:443]
2022/02/08 10:42:31 [Warning] [1110170909] app/dispatcher: default route for tcp:r2---sn-gvnuxaxjvh-hh3l.googlevideo.com:443
2022/02/08 10:42:31 [Info] [1110170909] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:31 [Info] [1110170909] proxy/vmess/outbound: tunneling request to tcp:r2---sn-gvnuxaxjvh-hh3l.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:31 [Info] [656633336] proxy/http: request to Method [CONNECT] Host [rr5---sn-i3b7knld.googlevideo.com:443] with URL [//rr5---sn-i3b7knld.googlevideo.com:443]
2022/02/08 10:42:31 [Warning] [656633336] app/dispatcher: default route for tcp:rr5---sn-i3b7knld.googlevideo.com:443
2022/02/08 10:42:31 [Info] [3549251012] proxy/http: request to Method [CONNECT] Host [rr5---sn-i3b7knld.googlevideo.com:443] with URL [//rr5---sn-i3b7knld.googlevideo.com:443]
2022/02/08 10:42:31 [Info] [656633336] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:31 [Warning] [3549251012] app/dispatcher: default route for tcp:rr5---sn-i3b7knld.googlevideo.com:443
2022/02/08 10:42:31 [Info] [3549251012] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:31 [Info] [656633336] proxy/vmess/outbound: tunneling request to tcp:rr5---sn-i3b7knld.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:31 [Info] [3549251012] proxy/vmess/outbound: tunneling request to tcp:rr5---sn-i3b7knld.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:32 [Info] [1558043059] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:32 [Info] [1558043059] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:33 [Info] [1577422542] proxy/http: request to Method [CONNECT] Host [www.google.com:443] with URL [//www.google.com:443]
2022/02/08 10:42:33 [Warning] [1577422542] app/dispatcher: default route for tcp:www.google.com:443
2022/02/08 10:42:33 [Info] [1577422542] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:33 [Info] [1577422542] proxy/vmess/outbound: tunneling request to tcp:www.google.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:33 [Info] [4224858470] proxy/http: request to Method [CONNECT] Host [i9.ytimg.com:443] with URL [//i9.ytimg.com:443]
2022/02/08 10:42:33 [Warning] [4224858470] app/dispatcher: default route for tcp:i9.ytimg.com:443
2022/02/08 10:42:33 [Info] [4224858470] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:34 [Info] [4224858470] proxy/vmess/outbound: tunneling request to tcp:i9.ytimg.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:34 [Info] [1550714409] proxy/http: request to Method [CONNECT] Host [www.google.com.hk:443] with URL [//www.google.com.hk:443]
2022/02/08 10:42:34 [Warning] [1550714409] app/dispatcher: default route for tcp:www.google.com.hk:443
2022/02/08 10:42:34 [Info] [1550714409] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:34 [Info] [1550714409] proxy/vmess/outbound: tunneling request to tcp:www.google.com.hk:443 via tcp:1.2.3.4:80
2022/02/08 10:42:36 [Info] [1452878119] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:36 [Info] [1452878119] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:37 [Info] [3433266276] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:37 [Info] [3433266276] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:42 [Info] [1899450591] proxy/http: request to Method [CONNECT] Host [mail.protonmail.com:443] with URL [//mail.protonmail.com:443]
2022/02/08 10:42:42 [Warning] [1899450591] app/dispatcher: default route for tcp:mail.protonmail.com:443
2022/02/08 10:42:42 [Info] [1899450591] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:42 [Info] [1899450591] proxy/vmess/outbound: tunneling request to tcp:mail.protonmail.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:42 [Info] [3708637928] proxy/http: request to Method [CONNECT] Host [rr1---sn-i3b7kns6.googlevideo.com:443] with URL [//rr1---sn-i3b7kns6.googlevideo.com:443]
2022/02/08 10:42:42 [Warning] [3708637928] app/dispatcher: default route for tcp:rr1---sn-i3b7kns6.googlevideo.com:443
2022/02/08 10:42:42 [Info] [3708637928] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:42 [Info] [2560899545] proxy/http: request to Method [CONNECT] Host [rr1---sn-i3b7kns6.googlevideo.com:443] with URL [//rr1---sn-i3b7kns6.googlevideo.com:443]
2022/02/08 10:42:42 [Warning] [2560899545] app/dispatcher: default route for tcp:rr1---sn-i3b7kns6.googlevideo.com:443
2022/02/08 10:42:42 [Info] [2560899545] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:43 [Info] [2560899545] proxy/vmess/outbound: tunneling request to tcp:rr1---sn-i3b7kns6.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:43 [Info] [3708637928] proxy/vmess/outbound: tunneling request to tcp:rr1---sn-i3b7kns6.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:43 [Info] [800330540] proxy/http: request to Method [CONNECT] Host [alive.github.com:443] with URL [//alive.github.com:443]
2022/02/08 10:42:43 [Warning] [800330540] app/dispatcher: default route for tcp:alive.github.com:443
2022/02/08 10:42:43 [Info] [800330540] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:43 [Info] [800330540] proxy/vmess/outbound: tunneling request to tcp:alive.github.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:44 [Info] [1123847444] proxy/http: request to Method [CONNECT] Host [rr5---sn-i3belnls.googlevideo.com:443] with URL [//rr5---sn-i3belnls.googlevideo.com:443]
2022/02/08 10:42:44 [Warning] [1123847444] app/dispatcher: default route for tcp:rr5---sn-i3belnls.googlevideo.com:443
2022/02/08 10:42:44 [Info] [1123847444] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:45 [Info] [1123847444] proxy/vmess/outbound: tunneling request to tcp:rr5---sn-i3belnls.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:45 [Info] [800347675] proxy/http: request to Method [CONNECT] Host [rr5---sn-i3belnls.googlevideo.com:443] with URL [//rr5---sn-i3belnls.googlevideo.com:443]
2022/02/08 10:42:45 [Warning] [800347675] app/dispatcher: default route for tcp:rr5---sn-i3belnls.googlevideo.com:443
2022/02/08 10:42:45 [Info] [800347675] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 10:42:45 [Info] [800347675] proxy/vmess/outbound: tunneling request to tcp:rr5---sn-i3belnls.googlevideo.com:443 via tcp:1.2.3.4:80
2022/02/08 10:42:47 [Info] [800347675] app/proxyman/inbound: connection ends > proxy/http: connection ends > context canceled
2022/02/08 10:42:47 [Info] [800347675] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > context canceled
2022/02/08 10:42:50 [Info] [963984228] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:50 [Info] [963984228] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:51 [Info] [2120143839] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:51 [Info] [2120143839] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:51 [Info] [181646696] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:51 [Info] [181646696] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:51 [Info] [656633336] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:51 [Info] [656633336] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:51 [Info] [3549251012] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:51 [Info] [3549251012] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:53 [Info] [1577422542] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:53 [Info] [1577422542] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:54 [Info] [4224858470] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:54 [Info] [4224858470] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:42:54 [Info] [1550714409] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:42:54 [Info] [1550714409] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:43:02 [Info] [1899450591] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:43:02 [Info] [1899450591] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:43:03 [Info] [2560899545] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:43:03 [Info] [2560899545] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:43:03 [Info] [3708637928] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:43:03 [Info] [3708637928] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:43:03 [Info] [800330540] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:43:03 [Info] [800330540] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 10:43:05 [Info] [1123847444] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 10:43:05 [Info] [1123847444] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
请附上访问日志
// 在这里附上服务器端日志
其它相关的配置文件(如 Nginx)和相关日志
如果 V2Ray 无法启动,请附上 --test 命令的输出
如果 V2Ray 服务运行异常,请附上 journal 日志
You need to use one of the observatory services, such as background observatory.
目前v5的文档没写明services每个服务的keyword是什么,于是我尝试在原配置中添加以下配置:
"services": {
"backgroundObservatory": {
"subjectSelector": [
"node"
],
"probeInterval": 10000000
}
}
首先probeInterval无效,不管设置多大,日志还是一直刷[tcp:api.v2fly.org:443]。然后从日志中可以看到除了api.v2fly.org(默认测试网址)外,其他网址还是显示app/dispatcher: default route,然后走了第一个outbound。而且balancingRule.strategy是random,应该和Observatory没关系吧。
附上日志:
V2Ray 5.0.3 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.17.6 windows/amd64)
A unified platform for anti-censorship.
2022/02/08 23:22:58 Using config from STDIN
2022/02/08 23:22:58 [Debug] app/log: Logger started
2022/02/08 23:22:58 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:8080
2022/02/08 23:22:58 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:8080
2022/02/08 23:22:58 [Warning] V2Ray 5.0.3 started
2022/02/08 23:22:59 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:22:59 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:22:59 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:22:59 [Info] app/observatory: the outbound node0 is alive:0.1216752
2022/02/08 23:22:59 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:22:59 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
2022/02/08 23:23:00 [Info] proxy/vless/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:free-proxy.org:443
2022/02/08 23:23:00 [Info] [234031131] proxy/http: request to Method [CONNECT] Host [www.youtube.com:443] with URL [//www.youtube.com:443]
2022/02/08 23:23:00 [Warning] [234031131] app/dispatcher: default route for tcp:www.youtube.com:443
2022/02/08 23:23:00 [Info] [234031131] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:00 [Info] [234031131] proxy/vmess/outbound: tunneling request to tcp:www.youtube.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:00 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > context canceled
2022/02/08 23:23:00 [Info] [1994436663] proxy/http: request to Method [CONNECT] Host [i.ytimg.com:443] with URL [//i.ytimg.com:443]
2022/02/08 23:23:00 [Warning] [1994436663] app/dispatcher: default route for tcp:i.ytimg.com:443
2022/02/08 23:23:00 [Info] [1994436663] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:00 [Info] [1994436663] proxy/vmess/outbound: tunneling request to tcp:i.ytimg.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:00 [Info] app/observatory: the outbound node1 is alive:1.2080116
2022/02/08 23:23:00 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:00 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:00 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:23:01 [Info] app/observatory: the outbound node0 is alive:0.1825381
2022/02/08 23:23:01 [Info] [1917052404] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 23:23:01 [Warning] [1917052404] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 23:23:01 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:01 [Info] [1917052404] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:01 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
2022/02/08 23:23:01 [Info] [1917052404] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:01 [Info] proxy/vless/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:free-proxy.org:443
2022/02/08 23:23:01 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > context canceled
2022/02/08 23:23:02 [Info] [1917052404] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 23:23:02 [Info] [1917052404] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 23:23:02 [Info] [2413343461] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 23:23:02 [Warning] [2413343461] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 23:23:02 [Info] [2413343461] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:02 [Info] [2413343461] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:03 [Info] app/observatory: the outbound node1 is alive:2.0294515
2022/02/08 23:23:03 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:03 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:03 [Info] [2413343461] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 23:23:03 [Info] [2413343461] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 23:23:04 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > context canceled
2022/02/08 23:23:04 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:23:04 [Info] app/observatory: the outbound node0 is alive:1.1767285
2022/02/08 23:23:04 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:04 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
2022/02/08 23:23:05 [Info] proxy/vless/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:free-proxy.org:443
2022/02/08 23:23:05 [Info] [1396083719] proxy/http: request to Method [CONNECT] Host [www.gstatic.com:443] with URL [//www.gstatic.com:443]
2022/02/08 23:23:05 [Warning] [1396083719] app/dispatcher: default route for tcp:www.gstatic.com:443
2022/02/08 23:23:05 [Info] [1396083719] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:05 [Info] [1396083719] proxy/vmess/outbound: tunneling request to tcp:www.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:05 [Info] app/observatory: the outbound node1 is alive:1.2375378
2022/02/08 23:23:05 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:05 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:05 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:23:05 [Info] app/observatory: the outbound node0 is alive:0.1102498
2022/02/08 23:23:05 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:05 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
2022/02/08 23:23:06 [Info] [2860439608] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 23:23:06 [Warning] [2860439608] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 23:23:06 [Info] [2860439608] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:06 [Info] [2860439608] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:06 [Info] proxy/vless/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:free-proxy.org:443
2022/02/08 23:23:06 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > context canceled
2022/02/08 23:23:06 [Info] app/observatory: the outbound node1 is alive:1.1059207
2022/02/08 23:23:06 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:06 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:06 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:23:06 [Info] app/observatory: the outbound node0 is alive:0.1230548
2022/02/08 23:23:06 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:06 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
2022/02/08 23:23:07 [Info] [2860439608] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 23:23:07 [Info] [2860439608] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 23:23:07 [Info] [254742097] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 23:23:07 [Warning] [254742097] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 23:23:07 [Info] [254742097] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:07 [Info] [254742097] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:07 [Info] proxy/vless/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:free-proxy.org:443
2022/02/08 23:23:07 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > context canceled
2022/02/08 23:23:08 [Info] app/observatory: the outbound node1 is alive:1.1314425
2022/02/08 23:23:08 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:08 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:08 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:23:08 [Info] app/observatory: the outbound node0 is alive:0.144269
2022/02/08 23:23:08 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:08 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
2022/02/08 23:23:08 [Info] [254742097] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 23:23:08 [Info] [254742097] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 23:23:08 [Info] [2252397358] proxy/http: request to Method [CONNECT] Host [yt3.ggpht.com:443] with URL [//yt3.ggpht.com:443]
2022/02/08 23:23:08 [Warning] [2252397358] app/dispatcher: default route for tcp:yt3.ggpht.com:443
2022/02/08 23:23:08 [Info] [2252397358] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:08 [Info] [2252397358] proxy/vmess/outbound: tunneling request to tcp:yt3.ggpht.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:09 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > context canceled
2022/02/08 23:23:09 [Info] proxy/vless/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:free-proxy.org:443
2022/02/08 23:23:09 [Info] app/observatory: the outbound node1 is alive:1.7699143
2022/02/08 23:23:10 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:10 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:10 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:23:10 [Info] app/observatory: the outbound node0 is alive:0.1396541
2022/02/08 23:23:10 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:10 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
2022/02/08 23:23:10 [Info] [1181332412] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 23:23:10 [Warning] [1181332412] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 23:23:10 [Info] [1181332412] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:10 [Info] [1181332412] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:10 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > context canceled
2022/02/08 23:23:11 [Info] proxy/vless/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:free-proxy.org:443
2022/02/08 23:23:11 [Info] app/observatory: the outbound node1 is alive:1.3776835
2022/02/08 23:23:11 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:11 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:11 [Info] [1181332412] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 23:23:11 [Info] [1181332412] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 23:23:11 [Info] [761901184] proxy/http: request to Method [CONNECT] Host [fonts.gstatic.com:443] with URL [//fonts.gstatic.com:443]
2022/02/08 23:23:11 [Warning] [761901184] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2022/02/08 23:23:11 [Info] [761901184] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:11 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:23:11 [Info] [761901184] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via tcp:1.2.3.4:80
2022/02/08 23:23:11 [Info] app/observatory: the outbound node0 is alive:0.137681
2022/02/08 23:23:11 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:11 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
2022/02/08 23:23:12 [Info] proxy/vless/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:free-proxy.org:443
2022/02/08 23:23:12 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > context canceled
2022/02/08 23:23:12 [Info] [761901184] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1000 (normal)
2022/02/08 23:23:12 [Info] [761901184] app/proxyman/inbound: connection ends > proxy/http: connection ends > io: read/write on closed pipe
2022/02/08 23:23:12 [Info] app/observatory: the outbound node1 is alive:1.2451205
2022/02/08 23:23:12 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:12 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:13 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:23:13 [Info] app/observatory: the outbound node0 is alive:0.1397366
2022/02/08 23:23:13 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:13 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
2022/02/08 23:23:13 [Info] proxy/vless/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:free-proxy.org:443
2022/02/08 23:23:13 [Info] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > context canceled
2022/02/08 23:23:14 [Info] app/observatory: the outbound node1 is alive:1.1106325
2022/02/08 23:23:14 [Info] app/dispatcher: taking platform initialized detour [node0] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:14 [Info] transport/internet/websocket: creating connection to tcp:1.2.3.4:80
2022/02/08 23:23:14 [Info] proxy/vmess/outbound: tunneling request to tcp:api.v2fly.org:443 via tcp:1.2.3.4:80
2022/02/08 23:23:14 [Info] app/observatory: the outbound node0 is alive:0.1710512
2022/02/08 23:23:14 [Info] app/dispatcher: taking platform initialized detour [node1] for [tcp:api.v2fly.org:443]
2022/02/08 23:23:14 [Info] transport/internet/websocket: creating connection to tcp:free-proxy.org:443
Sorry, i read it wrong.
不懂代码,我是按v5的文档写的配置。 改成router之后有效果吗?
问一下,如何让5.0.3版本的v2ray运行v5格式的配置文件呢?(win和linux系统) 可能你配置有问题,我目前只是试了试v5版本的v2ray的leastload和并发连接观测,感觉还是不错的,多个outbound的情况下v2ray会自动选择能连通的那个出口,至于leastload什么含义我还不太清楚,是“最小负载(加载)”?leastping应该是“最小ping”的意思,这个observatory检测应该依然是轮询检测,从第一个outbound开始逐个检测到最后一个outbound,然后循环,在路由里设置balancerTag和balancers(选择random者leastping或leastload)从根据obserbatory模块检测的结果来挑选最合适的outbound发出连接,以前只有leastping模式感觉不太好用因为ping最短不代表就是丢包最少的,现在这个leastload是啥意思?并发连接观测和后台连接观测两种模式区别也不太清楚,前者我的感觉是看“当下”,后者是看“综合”
问一下,如何让5.0.3版本的v2ray运行v5格式的配置文件呢?(win和linux系统) 可能你配置有问题,我目前只是试了试v5版本的v2ray的leastload和并发连接观测,感觉还是不错的,多个outbound的情况下v2ray会自动选择能连通的那个出口,至于leastload什么含义我还不太清楚,是“最小负载(加载)”?leastping应该是“最小ping”的意思,这个observatory检测应该依然是轮询检测,从第一个outbound开始逐个检测到最后一个outbound,然后循环,在路由里设置balancerTag和balancers(选择random者leastping或leastload)从根据obserbatory模块检测的结果来挑选最合适的outbound发出连接,以前只有leastping模式感觉不太好用因为ping最短不代表就是丢包最少的,现在这个leastload是啥意思?并发连接观测和后台连接观测两种模式区别也不太清楚,前者我的感觉是看“当下”,后者是看“综合”
说一下,我都是用的jsonv4格式,v5格式不会用,v5版本的v2ray-core都是一闪就关闭了,所以问一下是如何运行v5config
我是在windows的cmd窗口里面打命令运行v2ray。 具体根据 https://www.v2fly.org/v5/config/overview.html#%E6%A6%82%E8%BF%B0 输入:
注意是-format不是-f
v2ray.exe run -c config.json -format jsonv5
或者花哨点
v2ray.exe run -format jsonv5 < cfg.json
上面的配置也是参考那个网页的说明,连懵带猜写出来的。
leastLoad从字面意思上猜是挑选用得最少的服务器,把流量平均分摊出去。
我是在windows的cmd窗口里面打命令运行v2ray。 具体根据 https://www.v2fly.org/v5/config/overview.html#%E6%A6%82%E8%BF%B0 输入:
注意是-format不是-f v2ray.exe run -c config.json -format jsonv5 或者花哨点 v2ray.exe run -format jsonv5 < cfg.json上面的配置也是参考那个网页的说明,连懵带猜写出来的。
leastLoad从字面意思上猜是挑选用得最少的服务器,把流量平均分摊出去。
为什么我的v5配置文件还是会让v2ray一闪而过就关闭了 { "log": { "access": { "Type": "File", "Path": "C:\Users\user\Desktop\VirMach - San Jose v2ray-core\v2ray log\access.log", "Level": "Warning" }, "error": { "Type": "File", "Path": "C:\Users\user\Desktop\VirMach - San Jose v2ray-core\v2ray log\error.log", "Level": "Warning" } },
"inbounds":
[
{
"listen": "127.0.0.1",
"port": 10801,
"protocol": "socks",
"settings":
{
"udpEnabled": true,
"packetEncoding": [ "Packet" ]
},
"sniffing":
{
"enabled": true,
"destOverride": [ "http" , "tls" ]
}
}
],
"outbounds":
[
{
"protocol": "vless",
"settings":
{
"address": "ip",
"port": 443,
"uuid": "uuid"
},
"streamSettings":
{
"transport":"ws",
"transportSettings":
{
"path": "/path"
},
"security":"tls",
"securitySettings":
{
"serverName": "mydomain"
}
},
"mux":
{
"enabled": true,
"concurrency": 8
},
"tag": "proxy"
}
]
}
不应该啊,在cmd里面运行v2ray就算config.json有错也只会显示错误信息而不会闪退。我也不清楚为什么会闪退。然后看了下你的配置,发现以下问题:
1.json里面\是转义符,所以路径要用双斜杠,比如 c:\\error.log
2.log里面的Type/Path/Level首字母要小写。(这个应该是文档写错了)
3.inbounds.settings.packetEncoding要删掉。(又是文档的锅)
v2ray v5的bug实在是有点多。
不应该啊,在cmd里面运行v2ray就算config.json有错也只会显示错误信息而不会闪退。我也不清楚为什么会闪退。然后看了下你的配置,发现以下问题: 1.json里面
\是转义符,所以路径要用双斜杠,比如c:\\error.log2.log里面的Type/Path/Level首字母要小写。(这个应该是文档写错了) 3.inbounds.settings.packetEncoding要删掉。(又是文档的锅)v2ray v5的bug实在是有点多。
我实际配置文件是双斜杠,我直接把log部分注释掉了,inbounds.settings.packetEncoding也注释掉了,还是一样的情况,还有,即使我把配置文件全部注释掉只剩个{}也是一闪而过😢
"packetEncoding": "Packet"
"packetEncoding": "Packet"
大佬大佬,v2ray v5的websocket的设置里,原本有个headers: {Host: ""},在v4中没问题,v5中换成了什么格式呀?
不应该啊,在cmd里面运行v2ray就算config.json有错也只会显示错误信息而不会闪退。我也不清楚为什么会闪退。然后看了下你的配置,发现以下问题: 1.json里面
\是转义符,所以路径要用双斜杠,比如c:\\error.log2.log里面的Type/Path/Level首字母要小写。(这个应该是文档写错了) 3.inbounds.settings.packetEncoding要删掉。(又是文档的锅)v2ray v5的bug实在是有点多。
啊啊啊,今天才发现是怎么回事,通过cmd使用v2ray run -format jsonv5命令调试,一直提示invalid character"/",原来是v5不支持用/* */和//注释,,,,,,,哭死😂
~~使用v4配置也是一样的现象,只会走default route,从配置文件中最靠上的outbound出站。~~
~~下面这个配置文件,不论浏览器从7000还是7001端口进入,都会走default route,从naive_jp_1(最靠上的outbound)出站。~~
订正:
v2ray刚启动就马上测试的话是默认路由走第一个,等observatory测试完所有outbound后,就正常了。
log:
# access: none
# error: "/var/log/v2ray/error_balancing.log"
loglevel: info
inbounds:
- tag: jp_in
listen: 0.0.0.0
port: 7000
protocol: socks
settings:
udp: true
auth: noauth
- tag: us_in
listen: 0.0.0.0
port: 7001
protocol: socks
settings:
udp: true
auth: noauth
outbounds:
- tag: naive_jp_1
protocol: socks
settings:
servers:
- address: 127.0.0.1
port: 1700
- address: 127.0.0.1
port: 1800
- tag: naive_jp_2
protocol: socks
settings:
servers:
- address: 127.0.0.1
port: 1701
- address: 127.0.0.1
port: 1801
- tag: naive_us_1
protocol: socks
settings:
servers:
- address: 127.0.0.1
port: 1702
- address: 127.0.0.1
port: 1802
- tag: naive_us_2
protocol: socks
settings:
servers:
- address: 127.0.0.1
port: 1803
routing:
domainStrategy: AsIs
domainMatcher: mph
rules:
- type: field
inboundTag:
- jp_in
balancerTag: balancer_jp
- type: field
inboundTag:
- us_in
balancerTag: balancer_us
balancers:
- tag: balancer_jp
selector:
- naive_jp
strategy:
type: leastPing
- tag: balancer_us
selector:
- naive_us
strategy:
type: leastPing
observatory:
subjectSelector:
- naive
probeURL: https://www.google.com/gen_204
probeInterval: 10s
看了楼上几位的配置,我暂时已经配置可以使用了,感谢楼上各位,有问题再来问
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days