yanue / V2rayU

V2rayU,基于v2ray核心的mac版客户端,用于科学上网,使用swift编写,支持trojan,vmess,shadowsocks,socks5等服务协议,支持订阅, 支持二维码,剪贴板导入,手动配置,二维码分享等
https://github.com/yanue/V2rayU
18.24k stars 2.83k forks source link

Apple M2 导入Vless配置无法上网 #1346

Open xin0320 opened 8 months ago

xin0320 commented 8 months ago

提交 Issue 之前请先在issue上搜索是否有相似问题, 看看能不能解决问题 (有太多相同的issue,没精力处理)。 除非特殊情况,请完整填写以下所有问题,不按模板发的 issue 将直接被关闭。

1) 你正在使用的 V2RayU 和 Mac 版本 ? V2RayU:4.0 Pre-release MAC:MacOS Ventura Apple M2

2) 你遇到的问题是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) Rosetta已安装,导入vless后,不起作用,无法正常访问外网

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

    {
  "log": {
    "access": "",
    "error": "",
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "port": 443,
      "protocol": "vless",
      "settings": {
        "udp": false,
        "clients": [
          {
            "id": "XXXXXXXXX",
            "alterId": 0,
            "email": "t@t.tt",
            "flow": ""
          }
        ],
        "decryption": "none",
        "allowTransparent": false
      },
      "streamSettings": {
        "network": "grpc",
        "security": "reality",
        "realitySettings": {
          "serverName": "XXXX",
          "fingerprint": "chrome",
          "show": false,
          "publicKey": "XXXXX",
          "shortId": "XXXXX",
          "spiderX": ""
        },
        "grpcSettings": {
          "serviceName": "grpc",
          "multiMode": false,
          "idle_timeout": 60,
          "health_check_timeout": 20,
          "permit_without_stream": false,
          "initial_windows_size": 0
        }
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom"
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {}
    }
  ],
  "routing": {
    "domainStrategy": "IPIfNonMatch",
    "rules": []
  }
}

4) 请附上出错时软件输出的错误日志。

Xray 1.8.4 (Xray, Penetrates Everything.) Custom (go1.21.0 darwin/arm64)
A unified platform for anti-censorship.
2023/11/05 14:35:59 [Info] infra/conf/serial: Reading config: config.json
2023/11/05 14:35:59 [Info] app/dns: DNS: created localhost client
2023/11/05 14:35:59 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1080
2023/11/05 14:35:59 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1087
2023/11/05 14:35:59 [Warning] core: Xray 1.8.4 started
2023/11/05 14:36:01 [Info] [1725781996] proxy/http: request to Method [GET] Host [www.xxxx.com] with URL [http://www.xxxx.com/generate_204]
2023/11/05 14:36:01 [Info] [1725781996] app/dispatcher: default route for tcp:www.xxxx.com:80
2023/11/05 14:36:01 127.0.0.1:53802 accepted http://www.xxxx.com/generate_204 [proxy]
2023/11/05 14:36:01 [Info] [1725781996] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
REALITY localAddr: 192.168.2.192:53803  hello.SessionId[:16]: [1 8 4 0 101 71 55 20....]
REALITY localAddr: 192.168.2.192:53803  uConn.AuthKey[:16]: [4 236 238 166 93 .....]    AEAD: *aes.gcmAsm
REALITY localAddr: 192.168.2.192:53803  uConn.Verified: true
2023/11/05 14:36:02 [Info] [1725781996] proxy/vless/outbound: tunneling request to tcp:www.xxxx.com:80 via aaa.bbb.host:443
2023/11/05 14:36:02 [Info] [1725781996] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > proxy/vless/outbound: failed to decode response header > proxy/vless/encoding: failed to read response version > transport/internet/grpc/encoding: failed to fetch hunk from gRPC tunnel > rpc error: code = Unimplemented desc = unknown service 
2023/11/05 14:36:02 [Warning] [1725781996] proxy/http: failed to read response from www.xxxx.com > io: read/write on closed pipe
2023/11/05 14:36:02 [Info] [1725781996] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > EOF
Xray 1.8.4 (Xray, Penetrates Everything.) Custom (go1.21.0 darwin/arm64)
A unified platform for anti-censorship.
2023/11/05 14:36:09 [Info] infra/conf/serial: Reading config: config.json
2023/11/05 14:36:09 [Info] app/dns: DNS: created localhost client
2023/11/05 14:36:09 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1080
2023/11/05 14:36:09 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1087
2023/11/05 14:36:09 [Warning] core: Xray 1.8.4 started
2023/11/05 14:36:10 [Info] [1226703293] proxy/http: request to Method [GET] Host [www.xxxx.com] with URL [http://www.xxxx.com/generate_204]
2023/11/05 14:36:10 127.0.0.1:53812 accepted http://www.xxxx.com/generate_204 [proxy]
2023/11/05 14:36:10 [Info] [1226703293] app/dispatcher: default route for tcp:www.xxxx.com:80
2023/11/05 14:36:10 [Info] [1226703293] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
REALITY localAddr: 192.168.2.192:53813  hello.SessionId[:16]: [1 8 4 0 101 71 .....]
REALITY localAddr: 192.168.2.192:53813  uConn.AuthKey[:16]: [106 220 104 185 ....]  AEAD: *aes.gcmAsm
REALITY localAddr: 192.168.2.192:53813  uConn.Verified: false
REALITY localAddr: 192.168.2.192:53813  req.UserAgent(): Chrome
2023/11/05 14:36:13 [Info] [1226703293] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
REALITY localAddr: 192.168.2.192:53813  DialTLSContext
2023/11/05 14:36:13 [Info] [1226703293] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:36:13 [Info] [1380622613] proxy/http: request to Method [GET] Host [www.xxxx.com] with URL [http://www.xxxx.com/generate_204]
2023/11/05 14:36:13 127.0.0.1:53819 accepted http://www.xxxx.com/generate_204 [proxy]
2023/11/05 14:36:13 [Info] [1380622613] app/dispatcher: default route for tcp:www.xxxx.com:80
2023/11/05 14:36:13 [Info] [1380622613] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:36:13 [Info] [1380622613] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:36:13 [Info] [1380622613] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:36:13 [Info] [1226703293] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:36:14 [Info] [1380622613] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
REALITY localAddr: 192.168.2.192:53820  hello.SessionId[:16]: [1 8 4 0 101 7.........]
REALITY localAddr: 192.168.2.192:53820  uConn.AuthKey[:16]: [44 90 110 ......]  AEAD: *aes.gcmAsm
2023/11/05 14:36:14 [Info] [1226703293] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
REALITY localAddr: 192.168.2.192:53820  uConn.Verified: true
2023/11/05 14:36:14 [Info] [1380622613] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:36:15 [Warning] [1226703293] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [transport/internet/grpc: failed to dial gRPC > transport/internet/grpc: Cannot dial gRPC > rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: REALITY: processed invalid connection"] > common/retry: all retry attempts failed
2023/11/05 14:36:15 [Warning] [1226703293] proxy/http: failed to read response from www.xxxx.com > io: read/write on closed pipe
2023/11/05 14:36:15 [Warning] [1226703293] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > read tcp 127.0.0.1:1087->127.0.0.1:53812: read: connection reset by peer
2023/11/05 14:36:15 [Warning] [1380622613] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [transport/internet/grpc: failed to dial gRPC > transport/internet/grpc: Cannot dial gRPC > rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: REALITY: processed invalid connection"] > common/retry: all retry attempts failed
2023/11/05 14:36:15 [Warning] [1380622613] proxy/http: failed to read response from www.xxxx.com > io: read/write on closed pipe
2023/11/05 14:36:15 [Warning] [1380622613] app/proxyman/inbound: connection ends > proxy/http: connection ends > proxy/http: failed to write response > write tcp 127.0.0.1:1087->127.0.0.1:53819: write: broken pipe
2023/11/05 14:36:16 [Info] [3702272662] proxy/http: request to Method [GET] Host [www.xxxx.com] with URL [http://www.xxxx.com/generate_204]
2023/11/05 14:36:16 [Info] [3702272662] app/dispatcher: default route for tcp:www.xxxx.com:80
2023/11/05 14:36:16 127.0.0.1:53821 accepted http://www.xxxx.com/generate_204 [proxy]
2023/11/05 14:36:16 [Info] [3702272662] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:36:16 [Info] [3702272662] proxy/vless/outbound: tunneling request to tcp:www.xxxx.com:80 via aaa.bbb.host:443
2023/11/05 14:36:16 [Info] [3702272662] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > proxy/vless/outbound: failed to decode response header > proxy/vless/encoding: failed to read response version > transport/internet/grpc/encoding: failed to fetch hunk from gRPC tunnel > rpc error: code = Unimplemented desc = unknown service 
2023/11/05 14:36:16 [Warning] [3702272662] proxy/http: failed to read response from www.xxxx.com > io: read/write on closed pipe
2023/11/05 14:36:16 [Info] [3702272662] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > EOF
Xray 1.8.4 (Xray, Penetrates Everything.) Custom (go1.21.0 darwin/arm64)
A unified platform for anti-censorship.
2023/11/05 14:37:05 [Info] infra/conf/serial: Reading config: config.json
2023/11/05 14:37:05 [Info] app/dns: DNS: created localhost client
2023/11/05 14:37:05 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1080
2023/11/05 14:37:05 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1087
2023/11/05 14:37:05 [Warning] core: Xray 1.8.4 started
2023/11/05 14:37:06 [Info] [2006005704] proxy/http: request to Method [GET] Host [www.xxxx.com] with URL [http://www.xxxx.com/generate_204]
2023/11/05 14:37:06 [Info] [2006005704] app/dispatcher: default route for tcp:www.xxxx.com:80
2023/11/05 14:37:06 [Info] [2006005704] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:37:06 127.0.0.1:53865 accepted http://www.xxxx.com/generate_204 [proxy]
REALITY localAddr: 192.168.2.192:53866  hello.SessionId[:16]: [1 8 4 0 101 71 56 .....]
REALITY localAddr: 192.168.2.192:53866  uConn.AuthKey[:16]: [165 227 3 ......]  AEAD: *aes.gcmAsm
REALITY localAddr: 192.168.2.192:53866  uConn.Verified: false
REALITY localAddr: 192.168.2.192:53866  req.UserAgent(): Chrome
REALITY localAddr: 192.168.2.192:53866  DialTLSContext
2023/11/05 14:37:08 [Info] [2006005704] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:37:08 [Info] [2006005704] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:37:08 [Info] [2006005704] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
REALITY localAddr: 192.168.2.192:53867  hello.SessionId[:16]: [1 8 4 0 101 71 5.....]
REALITY localAddr: 192.168.2.192:53867  uConn.AuthKey[:16]: [178 205 111 209 ......]    AEAD: *aes.gcmAsm
2023/11/05 14:37:09 [Info] [2006005704] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:37:09 [Info] [3667879771] proxy/http: request to Method [GET] Host [www.xxxx.com] with URL [http://www.xxxx.com/generate_204]
2023/11/05 14:37:09 [Info] [3667879771] app/dispatcher: default route for tcp:www.xxxx.com:80
2023/11/05 14:37:09 [Info] [3667879771] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:37:09 [Info] [3667879771] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:37:09 127.0.0.1:53868 accepted http://www.xxxx.com/generate_204 [proxy]
REALITY localAddr: 192.168.2.192:53867  uConn.Verified: false
REALITY localAddr: 192.168.2.192:53867  req.UserAgent(): Chrome
REALITY localAddr: 192.168.2.192:53867  DialTLSContext
2023/11/05 14:37:09 [Info] [3667879771] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:37:10 [Info] [3667879771] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:37:10 [Warning] [2006005704] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [transport/internet/grpc: failed to dial gRPC > transport/internet/grpc: Cannot dial gRPC > rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: REALITY: processed invalid connection"] > common/retry: all retry attempts failed
2023/11/05 14:37:10 [Warning] [2006005704] proxy/http: failed to read response from www.xxxx.com > io: read/write on closed pipe
2023/11/05 14:37:10 [Warning] [2006005704] app/proxyman/inbound: connection ends > proxy/http: connection ends > proxy/http: failed to write response > write tcp 127.0.0.1:1087->127.0.0.1:53865: write: broken pipe
REALITY localAddr: 192.168.2.192:53869  hello.SessionId[:16]: [1 8 4 0 101 71 56....]
REALITY localAddr: 192.168.2.192:53869  uConn.AuthKey[:16]: [33 176 121 147 144 ....]   AEAD: *aes.gcmAsm
2023/11/05 14:37:10 [Info] [3667879771] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
REALITY localAddr: 192.168.2.192:53869  uConn.Verified: true
2023/11/05 14:37:11 [Warning] [3667879771] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [transport/internet/grpc: failed to dial gRPC > transport/internet/grpc: Cannot dial gRPC > rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: REALITY: processed invalid connection"] > common/retry: all retry attempts failed
2023/11/05 14:37:11 [Warning] [3667879771] proxy/http: failed to read response from www.xxxx.com > io: read/write on closed pipe
2023/11/05 14:37:11 [Warning] [3667879771] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > read tcp 127.0.0.1:1087->127.0.0.1:53868: read: connection reset by peer
2023/11/05 14:37:12 [Info] [153309026] proxy/http: request to Method [GET] Host [www.xxxx.com] with URL [http://www.xxxx.com/generate_204]
2023/11/05 14:37:12 [Info] [153309026] app/dispatcher: default route for tcp:www.xxxx.com:80
2023/11/05 14:37:12 127.0.0.1:53870 accepted http://www.xxxx.com/generate_204 [proxy]
2023/11/05 14:37:12 [Info] [153309026] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:37:12 [Info] [153309026] proxy/vless/outbound: tunneling request to tcp:www.xxxx.com:80 via aaa.bbb.host:443
2023/11/05 14:37:13 [Info] [153309026] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > proxy/vless/outbound: failed to decode response header > proxy/vless/encoding: failed to read response version > transport/internet/grpc/encoding: failed to fetch hunk from gRPC tunnel > rpc error: code = Unimplemented desc = unknown service 
2023/11/05 14:37:13 [Warning] [153309026] proxy/http: failed to read response from www.xxxx.com > io: read/write on closed pipe
2023/11/05 14:37:13 [Info] [153309026] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > EOF
Xray 1.8.4 (Xray, Penetrates Everything.) Custom (go1.21.0 darwin/arm64)
A unified platform for anti-censorship.
2023/11/05 14:38:19 [Info] infra/conf/serial: Reading config: config.json
2023/11/05 14:38:19 [Info] app/dns: DNS: created localhost client
2023/11/05 14:38:19 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1080
2023/11/05 14:38:19 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1087
2023/11/05 14:38:19 [Warning] core: Xray 1.8.4 started
2023/11/05 14:38:20 [Info] [2937936010] proxy/http: request to Method [GET] Host [www.xxxx.com] with URL [http://www.xxxx.com/generate_204]
2023/11/05 14:38:20 [Info] [2937936010] app/dispatcher: default route for tcp:www.xxxx.com:80
2023/11/05 14:38:20 [Info] [2937936010] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:38:20 127.0.0.1:53882 accepted http://www.xxxx.com/generate_204 [proxy]
REALITY localAddr: 192.168.2.192:53883  hello.SessionId[:16]: [1 8 4 0 101 71 .....]
REALITY localAddr: 192.168.2.192:53883  uConn.AuthKey[:16]: [35 225 209 3 224 ......]   AEAD: *aes.gcmAsm
REALITY localAddr: 192.168.2.192:53883  uConn.Verified: false
REALITY localAddr: 192.168.2.192:53883  req.UserAgent(): Chrome
REALITY localAddr: 192.168.2.192:53883  DialTLSContext
2023/11/05 14:38:21 [Info] [2937936010] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:38:22 [Info] [2937936010] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:38:22 [Info] [2937936010] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
REALITY localAddr: 192.168.2.192:53884  hello.SessionId[:16]: [1 8 4 0 101 71 56.....]
REALITY localAddr: 192.168.2.192:53884  uConn.AuthKey[:16]: [232 221 129 23 52 .....]   AEAD: *aes.gcmAsm
2023/11/05 14:38:23 [Info] [2937936010] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
REALITY localAddr: 192.168.2.192:53884  uConn.Verified: true
2023/11/05 14:38:23 [Info] [3882084860] proxy/http: request to Method [GET] Host [www.xxxx.com] with URL [http://www.xxxx.com/generate_204]
2023/11/05 14:38:23 [Info] [3882084860] app/dispatcher: default route for tcp:www.xxxx.com:80
2023/11/05 14:38:23 [Info] [3882084860] transport/internet/grpc: creating connection to tcp:aaa.bbb.host:443
2023/11/05 14:38:23 127.0.0.1:53885 accepted http://www.xxxx.com/generate_204 [proxy]
2023/11/05 14:38:23 [Info] [3882084860] proxy/vless/outbound: tunneling request to tcp:www.xxxx.com:80 via aaa.bbb.host:443
2023/11/05 14:38:23 [Info] [3882084860] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: connection ends > proxy/vless/outbound: failed to decode response header > proxy/vless/encoding: failed to read response version > transport/internet/grpc/encoding: failed to fetch hunk from gRPC tunnel > rpc error: code = Unimplemented desc = unknown service 
2023/11/05 14:38:23 [Warning] [3882084860] proxy/http: failed to read response from www.xxxx.com > io: read/write on closed pipe
2023/11/05 14:38:23 [Info] [3882084860] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > EOF
2023/11/05 14:38:23 [Warning] [2937936010] app/proxyman/outbound: failed to process outbound traffic > proxy/vless/outbound: failed to find an available destination > common/retry: [transport/internet/grpc: failed to dial gRPC > transport/internet/grpc: Cannot dial gRPC > rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: REALITY: processed invalid connection"] > common/retry: all retry attempts failed
2023/11/05 14:38:23 [Warning] [2937936010] proxy/http: failed to read response from www.xxxx.com > io: read/write on closed pipe
2023/11/05 14:38:23 [Warning] [2937936010] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > read tcp 127.0.0.1:1087->127.0.0.1:53882: read: connection reset by peer
sammyjourney commented 8 months ago

the same issue.

qf0421 commented 6 months ago

我是M1的,也是都配置好了,服务器也能ping通,但是就是上不了网

quartets commented 3 months ago

你的配置看起来是服务器配置,不是客户端配置。