1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
4.15.0
2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
Chrome 通过 VMess链接nginx反向代理
3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
偶尔能打开,大多数时候不能打开,过一段时间又恢复工作
4) 你期待看到的正确表现是怎样的?
同样的配置在家里或手机上基本没问题,在办公网络是双网卡配置了默认路由经常出现无法打开的情况
5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。
服务器端配置:
{
"log" : {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbound": {
"port": 30351,
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "",
"level": 1,
"alterId": 64,
"security": "none"
}
]
},
"streamSettings": {
"network": "ws",
"security": "auto",
"wsSettings": {
"path": "/path/"
}
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
}
}
客户端配置:
{
"log" : {
"access": "D:\\Program Files\\V2Ray\\access.log",
"error": "D:\\Program Files\\V2Ray\\error.log",
"loglevel": "warning"
},
"inbounds": [
{
"port": 1070,
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"settings": {
"auth": "noauth"
}
},
{
"port": 8090,
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"settings": {
"auth": "noauth"
}
}
],
"outbounds": [
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "server",
"port": 443,
"users": [
{
"id": "",
"security":"auto",
"alterId": 64
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"wsSettings": {
"path": "/path/"
}
}
}
],
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "direct"
}
]
}
}
Nginx:
server {
listen 443 ssl;
ssl on;
ssl_certificate /etc/v2ray/v2ray.crt;
ssl_certificate_key /etc/v2ray/v2ray.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
server_name server;
index index.html index.htm;
root /home/wwwroot/sCalc;
error_page 400 = /400.html;
location /path/ {
proxy_redirect off;
proxy_pass http://127.0.0.1:30351;
proxy_http_version 1.1;
proxy_set_header Host "server";
proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade "WebSocket";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_intercept_errors on;
}
}
server {
listen 80;
server_name server;
return 301 https://server$request_uri;
}
6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。
服务器端错误日志:
无错误,没有对应的access记录
客户端错误日志:
2019/02/27 10:14:12 [Warning] [3500187612] 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: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://server_name/path/): > read tcp 20.4.57.94:59041->server_ip:443: i/o timeout v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://server_name/path/): > read tcp 20.4.57.94:59048->server_ip:443: i/o timeout v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://server_name/path/): > read tcp 20.4.57.94:59060->server_ip:443: i/o timeout v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://server_name/path/): > read tcp 20.4.57.94:59068->server_ip:443: i/o timeout v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://server_name/path/): > dial tcp: operation was canceled] > v2ray.com/core/common/retry: all retry attempts failed
7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。
服务器端没有对应ip访问记录
8) 其它相关的配置文件(如 Nginx)和相关日志。
Nginx没有对应ip访问记录
是网络的问题,另外如果docker运行要监听0.0.0.0才能转发
我也遇到了这个问题,请问楼主后来解决了吗?
@fbens 检查两边的配置文件,如果找不到就用示例配置改
可以用这个方法试试
这个问题可能是系统时间不对, 我也是这个问题更新系统时间就好了, 希望能帮到你
这个问题可能是系统时间不对, 我也是这个问题更新系统时间就好了, 希望能帮到你
还真是时间问题,修改时间就正常了
经常要同步时间是为什么?大概几小时就要同步一次
经常要同步时间是为什么?大概几小时就要同步一次
换ntp服务器
Most helpful comment
这个问题可能是系统时间不对, 我也是这个问题更新系统时间就好了, 希望能帮到你