1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
都是4.14.0 客户端用的V2rayN
2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
打开Google.com
3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
无法访问此网站 www.google.com 意外终止了连接。
请试试以下办法:
检查网络连接
检查代理服务器和防火墙
运行 Windows 网络诊断
ERR_CONNECTION_CLOSED
4) 你期待看到的正确表现是怎样的?
打开google
5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。
服务器端配置:
{
"inbounds": [
{
"port": 12306,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "UUID",
"level": 1,
"alterId": 64
}
]
},
"streamSettings": {
"network": "kcp",
"security": "tls",
"tlsSettings": {
"serverName": "the.right.domain",
"allowInsecure": false,
"alpn": [
"http/1.1"
],
"certificates": [
{
"certificateFile": "/etc/v2ray/v2ray.crt",
"keyFile": "/etc/v2ray/v2ray.key"
}
]
},
"kcpSettings": {
"mtu": 1350,
"tti": 20,
"uplinkCapacity": 10,
"downlinkCapacity": 100,
"congestion": false,
"readBufferSize": 1,
"writeBufferSize": 1,
"header": {
"type": "utp"
}
}
}
},
{
"port": 443,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "UUID",
"level": 1,
"alterId": 64
}
]
},
"streamSettings": {
"network": "quic",
"security": "tls",
"tlsSettings": {
"serverName": "the.right.domain",
"allowInsecure": false,
"alpn": [
"http/1.1"
],
"certificates": [
{
"certificateFile": "/etc/v2ray/v2ray.crt",
"keyFile": "/etc/v2ray/v2ray.key"
}
]
},
"quicSettings": {
"security": "none",
"key": "",
"header": {
"type": "none"
}
}
}
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "blocked"
}
]
}
}
客户端配置:
出错的配置:
{
"log": {
"access": "C:\\Temp\\v2ray\\_access.log",
"error": "C:\\Temp\\v2ray\\_error.log",
"loglevel": "warning"
},
"inbounds": [
{
"port": 1080,
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"settings": {
"auth": null
}
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "the.right.domain",
"port": 443,
"users": [
{
"id": "UUID",
"alterId": 64
}
]
}
]
},
"streamSettings": {
"network": "quic",
"security": "tls",
"quicSettings": {
"security": "none",
"key": "",
"header": {
"type": "none"
}
}
}
}
]
}
作为对照的可以使用的mkcp,tls设置
{
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"inbounds": [
{
"port": 1080,
"listen": "127.0.0.1",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"ip": null,
"clients": null
},
"streamSettings": null
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "the.right.domain",
"port": 12306,
"users": [
{
"id": "UUID",
"alterId": 64,
"email": "[email protected]",
"security": "aes-128-gcm"
}
]
}
],
"servers": null,
"response": null
},
"streamSettings": {
"network": "kcp",
"security": "tls",
"tlsSettings": null,
"tcpSettings": null,
"kcpSettings": {
"mtu": 1350,
"tti": 50,
"uplinkCapacity": 12,
"downlinkCapacity": 12,
"congestion": false,
"readBufferSize": 2,
"writeBufferSize": 2,
"header": {
"type": "utp",
"request": null,
"response": null
}
},
"wsSettings": null,
"httpSettings": null
},
"mux": {
"enabled": true
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {
"vnext": null,
"servers": null,
"response": null
},
"streamSettings": null,
"mux": null
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"vnext": null,
"servers": null,
"response": {
"type": "http"
}
},
"streamSettings": null,
"mux": null
}
],
"dns": null,
"routing": {
"strategy": "rules",
"settings": {
"domainStrategy": "IPIfNonMatch",
"rules": []
}
}
}
6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。
服务器端错误日志:
2019/02/06 04:49:09 [Warning] v2ray.com/core: V2Ray 4.14.0 started
客户端错误日志:
2019/02/06 17:46:11 [Warning] v2ray.com/core: V2Ray 4.14.0 started
2019/02/06 17:46:13 [Warning] [901938644] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:13 [Warning] [2858915964] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:13 [Warning] [1554404465] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:13 [Warning] [589984885] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:15 [Warning] [1094986759] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:15 [Warning] [1664075750] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:17 [Warning] [349918465] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:17 [Warning] [3781407420] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:18 [Warning] [3834276080] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:19 [Warning] [3739477303] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:19 [Warning] [633264040] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:19 [Warning] [2383844478] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:19 [Warning] [3513065507] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
2019/02/06 17:46:22 [Warning] [4226517202] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [missing port in address] > v2ray.com/core/common/retry: all retry attempts failed
7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。
没有生成该文件。
客户端加入tlsSettings:{"serverName":"域名"}
问题解决
Most helpful comment
客户端加入tlsSettings:{"serverName":"域名"}
问题解决