v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.24k stars 8.93k forks source link

WebSocket+TLS+Web访问Google网站连接失败 #2641

Closed seraphzl closed 4 years ago

seraphzl commented 4 years ago

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) V2Ray 4.26.0

2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 使用firefox通过WebSocket+TLS+Web访问https://www.google.com/网站。

3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) 页面显示:安全连接失败。载入页面时与 www.google.com 的连接被中断。

4) 你期待看到的正确表现是怎样的? 正确打开google主页。

5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

服务器端配置: { "log": { "access": "/var/log/v2ray/access.log", "error": "/var/log/v2ray/error.log", "loglevel": "warning" }, "inbounds": [{ "port": 26298, "listen":"127.0.0.1", "protocol": "vmess", "settings": { "clients": [ { "id": "0e32cfae-5b78-4046-9444-1aee563081b8", "level": 1, "alterId": 64 } ] }, "streamSettings": { "network": "ws", "wsSettings": { "path": "/ray" } } }], "outbounds": [{ "protocol": "freedom", "settings": {} }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" }], "routing": { "rules": [ { "type": "field", "ip": ["geoip:private"], "outboundTag": "blocked" } ] } }

客户端配置: { "log": { "loglevel": "warning" }, "inbounds": [{ "port": 1080, "listen": "127.0.0.1", "tag": "socks-inbound", "protocol": "socks", "settings": { "auth": "noauth", "udp": false, "ip": "127.0.0.1" }, "sniffing": { "enabled": true, "destOverride": ["http", "tls"] } }], "outbounds": [ { "protocol": "vmess", "settings": { "vnext": [{ "address": "SERVERNAME.xyz", "port": 443, "users": [{ "id": "0e32cfae-5b78-4046-9444-1aee563081b8" }] }] }, "streamSettings": { "network": "ws", "security": "tls", "wsSettings": { "path": "/ray" } } }, { "protocol": "freedom", "settings": {}, "tag": "direct" }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" }], "routing": { "domainStrategy": "IPOnDemand", "rules":[ { "type": "field", "domain": ["geosite:cn"], "outboundTag": "direct" }, { "type": "field", "ip": ["geoip:cn", "geoip:private"], "outboundTag": "direct" } ] }, "policy": { "levels": { "0": { "uplinkOnly": 0, "downlinkOnly": 0 } }, "system": { "statsInboundUplink": false, "statsInboundDownlink": false } } }

6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。 客户端错误日志: 2020/07/19 19:44:55 tcp:127.0.0.1:4346 accepted tcp:www.google.com:443 2020/07/19 19:45:37 [Warning] [1771962956] 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://SERVERNAME.xyz/ray): > read tcp 192.168.1.101:4347->SERVERIP: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://SERVERNAME.xyz/ray): > read tcp 192.168.1.101:4348->SERVERIP: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://SERVERNAME.xyz/ray): > read tcp 192.168.1.101:4349->SERVERIP: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://SERVERNAME.xyz/ray): > read tcp 192.168.1.101:4350->SERVERIP: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://SERVERNAME.xyz/ray): > read tcp 192.168.1.101:4351->SERVERIP:443: i/o timeout] > v2ray.com/core/common/retry: all retry attempts failed

7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。 服务端访问日志: 2020/07/19 11:45:03 127.0.0.1:42990 rejected v2ray.com/core/proxy/vmess/encoding: failed to drain connection DrainSize = 1352 11 7 > v2ray.com/core/proxy/vmess/encoding: invalid user > v2ray.com/core/proxy/vmess: Not Found 2020/07/19 11:45:11 127.0.0.1:42992 rejected v2ray.com/core/proxy/vmess/encoding: failed to drain connection DrainSize = 1352 11 9 > v2ray.com/core/proxy/vmess/encoding: invalid user > v2ray.com/core/proxy/vmess: Not Found 2020/07/19 11:45:20 127.0.0.1:42994 rejected v2ray.com/core/proxy/vmess/encoding: failed to drain connection DrainSize = 1352 11 9 > v2ray.com/core/proxy/vmess/encoding: invalid user > v2ray.com/core/proxy/vmess: Not Found 2020/07/19 11:45:28 127.0.0.1:42996 rejected v2ray.com/core/proxy/vmess/encoding: failed to drain connection DrainSize = 1352 11 10 > v2ray.com/core/proxy/vmess/encoding: invalid user > v2ray.com/core/proxy/vmess: Not Found 2020/07/19 11:45:37 127.0.0.1:42998 rejected v2ray.com/core/proxy/vmess/encoding: failed to drain connection DrainSize = 1352 11 9 > v2ray.com/core/proxy/vmess/encoding: invalid user > v2ray.com/core/proxy/vmess: Not Found

8) 其它相关的配置文件(如 Nginx)和相关日志。 Nginx配置文件:

user nginx; worker_processes auto;

error_log /var/log/nginx/error.log info; pid /var/run/nginx.pid;

events { worker_connections 1024; }

http { include /etc/nginx/mime.types; default_type application/octet-stream;

log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for"';

access_log  /var/log/nginx/access.log  main;

sendfile        on;
#tcp_nopush     on;
tcp_nodelay         on;
keepalive_timeout  65;

#gzip  on;

include /etc/nginx/conf.d/*.conf;
server {
    listen 443 ssl;
    listen [::]:443 ssl;

    ssl_certificate       /etc/v2ray/v2ray.crt;
    ssl_certificate_key   /etc/v2ray/v2ray.key;
    ssl_protocols         SSLv3 TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers on;
    ssl_ciphers           EECDH+CHACHA20:ECDHE+aECDSA+CHACHA20:ECDHE+aRSA+CHACHA20:ECDHE+aECDSA+AESGCM:ECDHE+aRSA+AESGCM:ECDHE+aECDSA+AES256+SHA384:ECDHE+aRSA+AES256+SHA384:ECDHE+aECDSA+AES256+SHA:ECDHE+aRSA+AES256+SHA;
    server_name           SERVERNAME.xyz;
    location /ray
    {
        proxy_redirect off;
        proxy_pass http://127.0.0.1:26298;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_set_header Host $http_host;

        # Show realip in v2ray access.log
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

}

rikkix commented 4 years ago

It seems that alterId doesn't match.

seraphzl commented 4 years ago

It seems that alterId doesn't match.

@iochen I added "alterId": 64 to the client config file to match the server. However, the issue remains.

rikkix commented 4 years ago

It seems that alterId doesn't match.

@iochen I added "alterId": 64 to the client config file to match the server. However, the issue remains.

Do error logs remain the same?

mingxiaoyu commented 4 years ago

我也有类似的问题 经常断。。 --------- beginning of system --------- beginning of main 07-20 23:10:05.907 E/com.v2ray.ang( 9361): Not starting debugger since process cannot load the jdwp agent. 07-20 23:10:06.164 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.173 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.218 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.219 W/com.v2ray.ang( 9361): Could not establish class loader context 07-20 23:10:06.220 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.220 W/com.v2ray.ang( 9361): Could not establish class loader context 07-20 23:10:06.223 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.223 W/com.v2ray.ang( 9361): Could not establish class loader context 07-20 23:10:06.224 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.224 W/com.v2ray.ang( 9361): Could not establish class loader context 07-20 23:10:06.225 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.254 W/com.v2ray.ang( 9361): type=1400 audit(0.0:45359): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=17720 scontext=u:r:untrusted_app_27:s0:c192,c256,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 07-20 23:10:17.495 I/GoLog ( 9612): Preparing Domain: www.mingxiaoyu.tk:443 07-20 23:10:17.495 I/GoLog ( 9612): loading v2ray config 07-20 23:10:17.525 I/GoLog ( 9612): Prepare Result: 07-20 23:10:17.525 I/GoLog ( 9612): Domain: www.mingxiaoyu.tk 07-20 23:10:17.525 I/GoLog ( 9612): Port: 443 07-20 23:10:17.525 I/GoLog ( 9612): IPs: [172.64.68.145] 07-20 23:10:17.885 I/GoLog ( 9612): new v2ray core 07-20 23:10:17.890 I/GoLog ( 9612): start v2ray core 07-20 23:10:17.891 I/GoLog ( 9612): [Warning] v2ray.com/core: V2Ray 4.26.0 started 07-20 23:10:17.933 D/com.v2ray.ang( 9612): [/data/app/com.v2ray.ang-FAa3vbe3mk8nLQhJ6dYJwQ==/lib/arm64/libtun2socks.so, --netif-ipaddr, 26.26.26.2, --netif-netmask, 255.255.255.252, --socks-server-addr, 127.0.0.1:10808, --tunmtu, 1500, --sock-path, sock_path, --enable-udprelay, --loglevel, notice] 07-20 23:10:17.936 D/com.v2ray.ang( 9612): Process[pid=9671, hasExited=false] 07-20 23:10:17.936 D/com.v2ray.ang( 9612): /data/user/0/com.v2ray.ang/files/sock_path 07-20 23:10:17.950 I/tun2socks( 9671): NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.130 07-20 23:10:17.988 D/com.v2ray.ang( 9612): sendFd tries: 0 07-20 23:10:17.989 I/tun2socks( 9671): NOTICE(tun2socks): entering event loop 07-20 23:10:18.841 I/GoLog ( 9612): Using Prepared: 172.64.68.145 07-20 23:10:30.589 D/com.v2ray.ang( 9612): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:10:45.611 D/com.v2ray.ang( 9612): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:11:47.373 E/com.v2ray.ang(10754): Not starting debugger since process cannot load the jdwp agent. 07-20 23:11:47.608 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.617 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.661 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.661 W/com.v2ray.ang(10754): Could not establish class loader context 07-20 23:11:47.663 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.663 W/com.v2ray.ang(10754): Could not establish class loader context 07-20 23:11:47.665 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.665 W/com.v2ray.ang(10754): Could not establish class loader context 07-20 23:11:47.666 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.666 W/com.v2ray.ang(10754): Could not establish class loader context 07-20 23:11:47.667 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.694 W/com.v2ray.ang(10754): type=1400 audit(0.0:45399): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=17720 scontext=u:r:untrusted_app_27:s0:c192,c256,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 07-20 23:11:49.384 I/GoLog (10812): loading v2ray config 07-20 23:11:49.384 I/GoLog (10812): Preparing Domain: www.mingxiaoyu.tk:443 07-20 23:11:49.403 I/GoLog (10812): Prepare Result: 07-20 23:11:49.403 I/GoLog (10812): Domain: www.mingxiaoyu.tk 07-20 23:11:49.403 I/GoLog (10812): Port: 443 07-20 23:11:49.403 I/GoLog (10812): IPs: [172.64.68.145] 07-20 23:11:49.752 I/GoLog (10812): new v2ray core 07-20 23:11:49.758 I/GoLog (10812): start v2ray core 07-20 23:11:49.759 I/GoLog (10812): [Warning] v2ray.com/core: V2Ray 4.26.0 started 07-20 23:11:49.791 D/com.v2ray.ang(10812): [/data/app/com.v2ray.ang-FAa3vbe3mk8nLQhJ6dYJwQ==/lib/arm64/libtun2socks.so, --netif-ipaddr, 26.26.26.2, --netif-netmask, 255.255.255.252, --socks-server-addr, 127.0.0.1:10808, --tunmtu, 1500, --sock-path, sock_path, --enable-udprelay, --loglevel, notice] 07-20 23:11:49.794 D/com.v2ray.ang(10812): Process[pid=10883, hasExited=false] 07-20 23:11:49.794 D/com.v2ray.ang(10812): /data/user/0/com.v2ray.ang/files/sock_path 07-20 23:11:49.809 I/tun2socks(10883): NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.130 07-20 23:11:49.855 D/com.v2ray.ang(10812): sendFd tries: 0 07-20 23:11:49.856 I/tun2socks(10883): NOTICE(tun2socks): entering event loop 07-20 23:11:53.266 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:11:55.230 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:11:59.180 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:11:59.448 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:00.142 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:02.231 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:02.778 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:03.006 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:12:05.266 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:05.953 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:06.191 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:06.374 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:06.631 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:07.482 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:08.290 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:09.606 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:09.735 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:13.744 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:14.674 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:15.150 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:15.796 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:16.050 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:16.099 I/GoLog (10812): [Warning] 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://www.mingxiaoyu.tk/ws): 521 Origin Down > websocket: bad handshake v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.mingxiaoyu.tk/ws): > read tcp 192.168.31.236:41762->172.64.68.145: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://www.mingxiaoyu.tk/ws): 521 Origin Down > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed 07-20 23:12:16.234 I/GoLog (10812): [Warning] 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://www.mingxiaoyu.tk/ws): 521 Origin Down > websocket: bad handshake v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.mingxiaoyu.tk/ws): 523 Origin Unreachable > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed 07-20 23:12:17.403 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:12:17.766 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:25.659 D/com.v2ray.ang(10812): tun2socks destroy 07-20 23:12:25.659 I/tun2socks(10883): NOTICE(tun2socks): termination requested 07-20 23:12:25.659 I/tun2socks(10883): NOTICE(tun2socks): tearing down 07-20 23:12:25.659 I/tun2socks(10883): NOTICE(tun2socks): Free TCP connections 07-20 23:12:25.659 I/tun2socks(10883): NOTICE(tun2socks): exiting 07-20 23:12:33.950 I/GoLog (10812): loading v2ray config 07-20 23:12:33.950 I/GoLog (10812): Preparing Domain: www.mingxiaoyu.tk:443 07-20 23:12:33.973 I/GoLog (10812): Prepare Result: 07-20 23:12:33.973 I/GoLog (10812): Domain: www.mingxiaoyu.tk 07-20 23:12:33.973 I/GoLog (10812): Port: 443 07-20 23:12:33.973 I/GoLog (10812): IPs: [172.64.68.145] 07-20 23:12:34.278 I/GoLog (10812): new v2ray core 07-20 23:12:34.281 I/GoLog (10812): start v2ray core 07-20 23:12:34.282 I/GoLog (10812): [Warning] v2ray.com/core: V2Ray 4.26.0 started 07-20 23:12:34.317 D/com.v2ray.ang(10812): [/data/app/com.v2ray.ang-FAa3vbe3mk8nLQhJ6dYJwQ==/lib/arm64/libtun2socks.so, --netif-ipaddr, 26.26.26.2, --netif-netmask, 255.255.255.252, --socks-server-addr, 127.0.0.1:10808, --tunmtu, 1500, --sock-path, sock_path, --enable-udprelay, --loglevel, notice] 07-20 23:12:34.318 D/com.v2ray.ang(10812): Process[pid=11487, hasExited=false] 07-20 23:12:34.318 D/com.v2ray.ang(10812): /data/user/0/com.v2ray.ang/files/sock_path 07-20 23:12:34.325 I/tun2socks(11487): NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.130 07-20 23:12:34.368 D/com.v2ray.ang(10812): sendFd tries: 0 07-20 23:12:34.370 I/tun2socks(11487): NOTICE(tun2socks): entering event loop 07-20 23:12:36.159 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:40.371 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:46.908 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:12:49.091 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:51.678 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:53.230 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:58.961 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:13:06.938 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:13:09.725 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:13:11.806 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:13:23.477 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:13:28.466 D/com.v2ray.ang(10812): tun2socks destroy 07-20 23:13:28.468 I/tun2socks(11487): NOTICE(tun2socks): termination requested 07-20 23:13:28.468 I/tun2socks(11487): NOTICE(tun2socks): tearing down 07-20 23:13:28.468 I/tun2socks(11487): NOTICE(tun2socks): Free TCP connections 07-20 23:13:28.468 I/tun2socks(11487): NOTICE(tun2socks): exiting 07-20 23:21:01.440 E/com.v2ray.ang(20493): Not starting debugger since process cannot load the jdwp agent. 07-20 23:21:01.774 W/com.v2ray.ang(20493): type=1400 audit(0.0:46158): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=17720 scontext=u:r:untrusted_app_27:s0:c192,c256,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0

seraphzl commented 4 years ago

It seems that alterId doesn't match.

@iochen I added "alterId": 64 to the client config file to match the server. However, the issue remains.

Do error logs remain the same?

@iochen Yes, the error logs remain the same.

rikkix commented 4 years ago

It seems that alterId doesn't match.

@iochen I added "alterId": 64 to the client config file to match the server. However, the issue remains.

Do error logs remain the same?

@iochen Yes, the error logs remain the same.

Does the same error occur to other blocked sites?

rikkix commented 4 years ago

我也有类似的问题 经常断。。 --------- beginning of system --------- beginning of main 07-20 23:10:05.907 E/com.v2ray.ang( 9361): Not starting debugger since process cannot load the jdwp agent. 07-20 23:10:06.164 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.173 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.218 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.219 W/com.v2ray.ang( 9361): Could not establish class loader context 07-20 23:10:06.220 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.220 W/com.v2ray.ang( 9361): Could not establish class loader context 07-20 23:10:06.223 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.223 W/com.v2ray.ang( 9361): Could not establish class loader context 07-20 23:10:06.224 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.224 W/com.v2ray.ang( 9361): Could not establish class loader context 07-20 23:10:06.225 W/com.v2ray.ang( 9361): Unsupported class loader 07-20 23:10:06.254 W/com.v2ray.ang( 9361): type=1400 audit(0.0:45359): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=17720 scontext=u:r:untrusted_app_27:s0:c192,c256,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 07-20 23:10:17.495 I/GoLog ( 9612): Preparing Domain: www.mingxiaoyu.tk:443 07-20 23:10:17.495 I/GoLog ( 9612): loading v2ray config 07-20 23:10:17.525 I/GoLog ( 9612): Prepare Result: 07-20 23:10:17.525 I/GoLog ( 9612): Domain: www.mingxiaoyu.tk 07-20 23:10:17.525 I/GoLog ( 9612): Port: 443 07-20 23:10:17.525 I/GoLog ( 9612): IPs: [172.64.68.145] 07-20 23:10:17.885 I/GoLog ( 9612): new v2ray core 07-20 23:10:17.890 I/GoLog ( 9612): start v2ray core 07-20 23:10:17.891 I/GoLog ( 9612): [Warning] v2ray.com/core: V2Ray 4.26.0 started 07-20 23:10:17.933 D/com.v2ray.ang( 9612): [/data/app/com.v2ray.ang-FAa3vbe3mk8nLQhJ6dYJwQ==/lib/arm64/libtun2socks.so, --netif-ipaddr, 26.26.26.2, --netif-netmask, 255.255.255.252, --socks-server-addr, 127.0.0.1:10808, --tunmtu, 1500, --sock-path, sock_path, --enable-udprelay, --loglevel, notice] 07-20 23:10:17.936 D/com.v2ray.ang( 9612): Process[pid=9671, hasExited=false] 07-20 23:10:17.936 D/com.v2ray.ang( 9612): /data/user/0/com.v2ray.ang/files/sock_path 07-20 23:10:17.950 I/tun2socks( 9671): NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.130 07-20 23:10:17.988 D/com.v2ray.ang( 9612): sendFd tries: 0 07-20 23:10:17.989 I/tun2socks( 9671): NOTICE(tun2socks): entering event loop 07-20 23:10:18.841 I/GoLog ( 9612): Using Prepared: 172.64.68.145 07-20 23:10:30.589 D/com.v2ray.ang( 9612): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:10:45.611 D/com.v2ray.ang( 9612): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:11:47.373 E/com.v2ray.ang(10754): Not starting debugger since process cannot load the jdwp agent. 07-20 23:11:47.608 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.617 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.661 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.661 W/com.v2ray.ang(10754): Could not establish class loader context 07-20 23:11:47.663 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.663 W/com.v2ray.ang(10754): Could not establish class loader context 07-20 23:11:47.665 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.665 W/com.v2ray.ang(10754): Could not establish class loader context 07-20 23:11:47.666 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.666 W/com.v2ray.ang(10754): Could not establish class loader context 07-20 23:11:47.667 W/com.v2ray.ang(10754): Unsupported class loader 07-20 23:11:47.694 W/com.v2ray.ang(10754): type=1400 audit(0.0:45399): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=17720 scontext=u:r:untrusted_app_27:s0:c192,c256,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0 07-20 23:11:49.384 I/GoLog (10812): loading v2ray config 07-20 23:11:49.384 I/GoLog (10812): Preparing Domain: www.mingxiaoyu.tk:443 07-20 23:11:49.403 I/GoLog (10812): Prepare Result: 07-20 23:11:49.403 I/GoLog (10812): Domain: www.mingxiaoyu.tk 07-20 23:11:49.403 I/GoLog (10812): Port: 443 07-20 23:11:49.403 I/GoLog (10812): IPs: [172.64.68.145] 07-20 23:11:49.752 I/GoLog (10812): new v2ray core 07-20 23:11:49.758 I/GoLog (10812): start v2ray core 07-20 23:11:49.759 I/GoLog (10812): [Warning] v2ray.com/core: V2Ray 4.26.0 started 07-20 23:11:49.791 D/com.v2ray.ang(10812): [/data/app/com.v2ray.ang-FAa3vbe3mk8nLQhJ6dYJwQ==/lib/arm64/libtun2socks.so, --netif-ipaddr, 26.26.26.2, --netif-netmask, 255.255.255.252, --socks-server-addr, 127.0.0.1:10808, --tunmtu, 1500, --sock-path, sock_path, --enable-udprelay, --loglevel, notice] 07-20 23:11:49.794 D/com.v2ray.ang(10812): Process[pid=10883, hasExited=false] 07-20 23:11:49.794 D/com.v2ray.ang(10812): /data/user/0/com.v2ray.ang/files/sock_path 07-20 23:11:49.809 I/tun2socks(10883): NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.130 07-20 23:11:49.855 D/com.v2ray.ang(10812): sendFd tries: 0 07-20 23:11:49.856 I/tun2socks(10883): NOTICE(tun2socks): entering event loop 07-20 23:11:53.266 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:11:55.230 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:11:59.180 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:11:59.448 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:00.142 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:02.231 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:02.778 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:03.006 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:12:05.266 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:05.953 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:06.191 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:06.374 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:06.631 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:07.482 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:08.290 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:09.606 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:09.735 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:13.744 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:14.674 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:15.150 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:15.796 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:16.050 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:16.099 I/GoLog (10812): [Warning] 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://www.mingxiaoyu.tk/ws): 521 Origin Down > websocket: bad handshake v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.mingxiaoyu.tk/ws): > read tcp 192.168.31.236:41762->172.64.68.145: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://www.mingxiaoyu.tk/ws): 521 Origin Down > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed 07-20 23:12:16.234 I/GoLog (10812): [Warning] 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://www.mingxiaoyu.tk/ws): 521 Origin Down > websocket: bad handshake v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.mingxiaoyu.tk/ws): 523 Origin Unreachable > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed 07-20 23:12:17.403 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:12:17.766 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:25.659 D/com.v2ray.ang(10812): tun2socks destroy 07-20 23:12:25.659 I/tun2socks(10883): NOTICE(tun2socks): termination requested 07-20 23:12:25.659 I/tun2socks(10883): NOTICE(tun2socks): tearing down 07-20 23:12:25.659 I/tun2socks(10883): NOTICE(tun2socks): Free TCP connections 07-20 23:12:25.659 I/tun2socks(10883): NOTICE(tun2socks): exiting 07-20 23:12:33.950 I/GoLog (10812): loading v2ray config 07-20 23:12:33.950 I/GoLog (10812): Preparing Domain: www.mingxiaoyu.tk:443 07-20 23:12:33.973 I/GoLog (10812): Prepare Result: 07-20 23:12:33.973 I/GoLog (10812): Domain: www.mingxiaoyu.tk 07-20 23:12:33.973 I/GoLog (10812): Port: 443 07-20 23:12:33.973 I/GoLog (10812): IPs: [172.64.68.145] 07-20 23:12:34.278 I/GoLog (10812): new v2ray core 07-20 23:12:34.281 I/GoLog (10812): start v2ray core 07-20 23:12:34.282 I/GoLog (10812): [Warning] v2ray.com/core: V2Ray 4.26.0 started 07-20 23:12:34.317 D/com.v2ray.ang(10812): [/data/app/com.v2ray.ang-FAa3vbe3mk8nLQhJ6dYJwQ==/lib/arm64/libtun2socks.so, --netif-ipaddr, 26.26.26.2, --netif-netmask, 255.255.255.252, --socks-server-addr, 127.0.0.1:10808, --tunmtu, 1500, --sock-path, sock_path, --enable-udprelay, --loglevel, notice] 07-20 23:12:34.318 D/com.v2ray.ang(10812): Process[pid=11487, hasExited=false] 07-20 23:12:34.318 D/com.v2ray.ang(10812): /data/user/0/com.v2ray.ang/files/sock_path 07-20 23:12:34.325 I/tun2socks(11487): NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.130 07-20 23:12:34.368 D/com.v2ray.ang(10812): sendFd tries: 0 07-20 23:12:34.370 I/tun2socks(11487): NOTICE(tun2socks): entering event loop 07-20 23:12:36.159 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:40.371 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:46.908 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:12:49.091 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:51.678 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:53.230 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:12:58.961 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:13:06.938 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:13:09.725 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:13:11.806 I/GoLog (10812): Using Prepared: 172.64.68.145 07-20 23:13:23.477 D/com.v2ray.ang(10812): measureV2rayDelay: Get "http://www.google.com/gen_204": context deadline exceeded 07-20 23:13:28.466 D/com.v2ray.ang(10812): tun2socks destroy 07-20 23:13:28.468 I/tun2socks(11487): NOTICE(tun2socks): termination requested 07-20 23:13:28.468 I/tun2socks(11487): NOTICE(tun2socks): tearing down 07-20 23:13:28.468 I/tun2socks(11487): NOTICE(tun2socks): Free TCP connections 07-20 23:13:28.468 I/tun2socks(11487): NOTICE(tun2socks): exiting 07-20 23:21:01.440 E/com.v2ray.ang(20493): Not starting debugger since process cannot load the jdwp agent. 07-20 23:21:01.774 W/com.v2ray.ang(20493): type=1400 audit(0.0:46158): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=17720 scontext=u:r:untrusted_app_27:s0:c192,c256,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0

If you want, please open an other issue.

seraphzl commented 4 years ago

I restarted the v2ray service on server, and the issue was solved. Thanks.

okudayukiko commented 4 years ago

ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers off; 另外Ubuntu 20.04/Debian 10可以用apt-get安裝Linux內核5.6(Debian打開backports repository才有Linux內核5.6),Linux內核5.6大幅加快/dev/random性能,配合BBR對V2Ray提速明顯。