v2ray / v2ray-core

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

v2.51,v2.51.1 vmess none加密CPU占用异常,下载文件异常 #738

Closed Yiffyi closed 6 years ago

Yiffyi commented 6 years ago

Please skip to the English section below if you don't write Chinese.

中文: 提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。 除非特殊情况,请完整填写所有问题,缺少信息将减慢Issue回复速度。

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) 服务器:docker v2ray/dev 客户端:v2.51.1 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 chrome下载android studio 3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) 开始时一切正常,几秒种后v2ray CPU负载升高,下载速度降为零 4) 你期待看到的正确表现是怎样的? 正常下载 5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。

服务器端配置:
{
    "log": {
        "access": "/etc/v2ray/logs/access.log",
        "error": "/etc/v2ray/logs/error.log",
        "loglevel": "warning"
    },
    "inbound": {
        "port": 18080,
        "protocol": "vmess",
        "settings": {
            "clients": [
                {
                    "id": "********************",
                    "level": 1,
                    "alterId": 64
                }
            ]
        },
        "tag": "vmess",
        "streamSettings": {
            "network": "kcp",
            "kcpSettings": {
                "uplinkCapacity": 2,
                "header": {
                    "type": "none"
                }
            }
        }
    },
    "inboundDetour": [
        {
            "port": 8080,
            "protocol": "vmess",
            "settings": {
                "clients": [
                    {
                        "id": "*********************",
                        "level": 1,
                        "alterId": 64
                    }
                ]
            },
            "tag": "tls",
            "streamSettings": {
                "network": "ws",
                "wsSettings": {
                    "path": "/wall"
                }
            }
        }
    ],
    "outbound": {
        "protocol": "freedom",
        "settings": {},
        "tag": "direct"
    }
}
客户端配置:
{
    "log": {
        "loglevel": "debug"
    },
    "dns": {
        "servers": [
            "9.9.9.9",
            "8.8.8.8",
            "localhost"
        ]
    },
    "inbound": {
        "port": 1080,
        "listen": "127.0.0.1",
        "protocol": "socks",
        "settings": {
            "auth": "noauth"
        }
    },
    "inboundDetour": [
        {
            "protocol": "http",
            "listen": "127.0.0.1",
            "port": 8081,
            "settings": {}
        }
    ],
    "outbound": {
        "protocol": "vmess",
        "settings": {
            "vnext": [
                {
                    "address": "*********",
                    "port": 443,
                    "users": [
                        {
                            "id": "********************",
                            "alterId": 64,
                            "security": "none"
                        }
                    ]
                }
            ]
        },
        "streamSettings": {
            "network": "ws",
            "security": "tls",
            "wsSettings": {
                "path": "/wall"
            }
        },
        "mux": {
            "enabled": true,
            "concurrency": 4
        }
    },
    "outboundDetour": [
        {
            "protocol": "freedom",
            "settings": {},
            "tag": "direct"
        }
    ],
    "routing": {
        "strategy": "rules",
        "settings": {
            "domainStrategy": "IPIfNonMatch",
            "rules": [
                {
                    "type": "field",
                    "domain": [
                        "geosite:cn"
                    ],
                    "ip": [
                        "0.0.0.0/8",
                        "10.0.0.0/8",
                        "100.64.0.0/10",
                        "127.0.0.0/8",
                        "169.254.0.0/16",
                        "172.16.0.0/12",
                        "192.0.0.0/24",
                        "192.0.2.0/24",
                        "192.168.0.0/16",
                        "198.18.0.0/15",
                        "198.51.100.0/24",
                        "203.0.113.0/24",
                        "::1/128",
                        "fc00::/7",
                        "fe80::/10",
                        "geoip:cn"
                    ],
                    "outboundTag": "direct"
                }
            ]
        }
    }
}

6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

服务器端错误日志:
2017/11/26 03:25:05 [Warning]Core: V2Ray started
2017/11/26 03:40:31 [Warning]Core: V2Ray started
2017/11/26 03:51:26 [Warning]Core: V2Ray started
2017/11/26 03:58:50 [Warning]Core: V2Ray started
客户端错误日志:
V2Ray v2.51.1 (One for all) 20171125
An unified platform for anti-censorship.
2017/11/26 11:45:38 [Debug]App|Proxyman|Inbound: creating tcp worker on 127.0.0.1:1080
2017/11/26 11:45:38 [Debug]App|Proxyman|Inbound: creating tcp worker on 127.0.0.1:8081
2017/11/26 11:45:38 [Info]Transport|Internet|TCP: listening TCP on 127.0.0.1:1080
2017/11/26 11:45:38 [Info]Transport|Internet|TCP: listening TCP on 127.0.0.1:8081
2017/11/26 11:45:38 [Warning]Core: V2Ray started
2017/11/26 11:45:43 [Info]Proxy|Socks: TCP Connect request to tcp:dl.google.com:443
2017/11/26 11:45:43 [Info]App|Router: looking for IP for domain: dl.google.com
2017/11/26 11:45:43 [Debug]App|DNS|Server: add pending request id 47417
2017/11/26 11:45:43 [Debug]Transport|Internet|UDP: dispatch request to: udp:9.9.9.9:53
2017/11/26 11:45:43 [Info]Transport|Internet|UDP: establishing new connection for udp:9.9.9.9:53
2017/11/26 11:45:43 [Info]App|Dispatcher|Default: default route for udp:9.9.9.9:53
2017/11/26 11:45:43 [Info]App|Proxyman|Mux: dispatching request to udp:9.9.9.9:53
2017/11/26 11:45:43 [Info]Transport|Internet|WebSocket: creating connection to tcp:**********:443
2017/11/26 11:45:43 [Info]Proxy|VMess|Outbound: tunneling request to tcp:v1.mux.cool:9527 via tcp:**********:443
2017/11/26 11:45:44 [Debug]Transport|Internet|UDP: dispatch request to: udp:9.9.9.9:53
2017/11/26 11:45:45 [Debug]Transport|Internet|UDP: dispatch request to: udp:9.9.9.9:53
2017/11/26 11:45:47 [Info]Transport|Internet|UDP: failed to handle UDP input > EOF
2017/11/26 11:45:51 [Debug]App|DNS|Server: add pending request id 28023
2017/11/26 11:45:51 [Debug]Transport|Internet|UDP: dispatch request to: udp:8.8.8.8:53
2017/11/26 11:45:51 [Info]Transport|Internet|UDP: establishing new connection for udp:8.8.8.8:53
2017/11/26 11:45:51 [Info]App|Dispatcher|Default: default route for udp:8.8.8.8:53
2017/11/26 11:45:51 [Info]App|Proxyman|Mux: dispatching request to udp:8.8.8.8:53
2017/11/26 11:45:51 [Debug]App|DNS|Server: handling response for id 28023 content: ;; opcode: QUERY, status: NOERROR, id: 28023
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;dl.google.com. IN       A

;; ANSWER SECTION:
dl.google.com.  21378   IN      CNAME   dl.l.google.com.
dl.l.google.com.        78      IN      A       74.125.200.91
dl.l.google.com.        78      IN      A       74.125.200.190
dl.l.google.com.        78      IN      A       74.125.200.136
dl.l.google.com.        78      IN      A       74.125.200.93

2017/11/26 11:45:51 [Debug]App|DNS|Server: returning 4 IPs for domain dl.google.com.
2017/11/26 11:45:51 [Info]App|Dispatcher|Default: default route for tcp:dl.google.com:443
2017/11/26 11:45:51 [Info]App|Proxyman|Mux: dispatching request to tcp:dl.google.com:443
2017/11/26 11:45:59 [Info]Transport|Internet|UDP: failed to handle UDP input > EOF

7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

2017/11/26 03:42:03 172.18.0.3:44220 accepted tcp:v1.mux.cool:9527 
2017/11/26 03:45:44 172.18.0.3:44228 accepted tcp:v1.mux.cool:9527
DarienRaymond commented 6 years ago

请试一下 2.51.2。另外请注意不加密的连接有可能被识别并拦截。

DarienRaymond commented 6 years ago

Closing due to inactivity.