WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

连接socks服务器无法正常访问google等境外站点,vmess正常,v2rayN在win上配置socks服务器是正常可以的 #1589

@mupeifeiyi

Description

@mupeifeiyi

有相似issue #1588 ,参考降级4.2.2依旧无法使用

  1. 你正在使用的 V2RayU 和 Mac 版本 ?
    v4.2.2 & v4.2.8
    macOS:15.6

  2. 你遇到的问题是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
    配置连接了socks协议的服务器,启动之后,打开浏览器访问google等境外站点,报错如下:
    无法访问此网站
    连接已重置。
    请试试以下办法:

检查网络连接

但是使用cli配置127.0.0.1:1080后,命令行curl可以正常访问google

  1. 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。
{
  "log": {
    "loglevel": "info",
    "error": "/Users/chaz/.V2rayU/v2ray-core.log",
    "access": "/Users/chaz/.V2rayU/v2ray-core.log"
  },
  "inbounds": [
    {
      "settings": {
        "auth": "noauth",
        "udp": false
      },
      "port": "1080",
      "listen": "127.0.0.1",
      "protocol": "socks"
    },
    {
      "settings": {
        "timeout": 360
      },
      "port": "1087",
      "listen": "127.0.0.1",
      "protocol": "http"
    }
  ],
  "outbounds": [
    {
      "streamSettings": {
        "network": "tcp",
        "security": "none",
        "tcpSettings": {
          "header": {
            "type": "none"
          }
        }
      },
      "tag": "proxy",
      "protocol": "socks",
      "settings": {
        "servers": [
          {
            "port": 443,
            "users": [
              {
                "pass": "xxx",
                "user": "xxx",
                "level": 0
              }
            ],
            "address": "xxx"
          }
        ]
      }
    },
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIP",
        "userLevel": 0
      }
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "none"
        }
      }
    }
  ],
  "dns": {},
  "routing": {
    "domainStrategy": "AsIs",
    "rules": []
  }
}
  1. 请附上出错时软件输出的错误日志。
2025/11/18 15:21:10.356753 from 127.0.0.1:51027 accepted http://get.sogou.com/q [proxy]
Xray 25.10.15 (Xray, Penetrates Everything.) b69a376 (go1.25.3 darwin/arm64)
A unified platform for anti-censorship.
2025/11/18 15:21:11.385445 [Info] infra/conf/serial: Reading config: &{Name:config.json Format:json}
2025/11/18 15:21:11.386617 [Info] app/dns: DNS: created localhost client
2025/11/18 15:21:11.386768 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1080
2025/11/18 15:21:11.386782 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1087
2025/11/18 15:21:11.387012 [Warning] core: Xray 25.10.15 started
2025/11/18 15:21:11.407639 [Info] [1554012495] proxy/http: request to Method [CONNECT] Host [collab.dingtalk.com:443] with URL [//collab.dingtalk.com:443]
2025/11/18 15:21:11.407674 [Info] [1554012495] app/dispatcher: default route for tcp:collab.dingtalk.com:443
2025/11/18 15:21:11.407687 [Info] [1554012495] transport/internet/tcp: dialing TCP to tcp:207.97.155.69:443
2025/11/18 15:21:11.407775 from 127.0.0.1:51032 accepted //collab.dingtalk.com:443 [proxy]
2025/11/18 15:21:12.494442 [Info] [1685043513] proxy/http: request to Method [GET] Host [www.gstatic.com] with URL [http://www.gstatic.com/generate_204]
2025/11/18 15:21:12.494507 from 127.0.0.1:51052 accepted http://www.gstatic.com/generate_204 [proxy]
2025/11/18 15:21:12.494533 [Info] [1685043513] app/dispatcher: default route for tcp:www.gstatic.com:80
2025/11/18 15:21:12.494552 [Info] [1685043513] transport/internet/tcp: dialing TCP to tcp:207.97.155.69:443
2025/11/18 15:21:12.524612 [Info] [1554012495] app/proxyman/outbound: app/proxyman/outbound: failed to process outbound traffic > proxy/socks: connection ends > read tcp 127.0.0.1:1087->127.0.0.1:51032: read: connection reset by peer
Xray 25.10.15 (Xray, Penetrates Everything.) b69a376 (go1.25.3 darwin/arm64)
A unified platform for anti-censorship.
2025/11/18 15:22:22.605553 [Info] infra/conf/serial: Reading config: &{Name:config.json Format:json}
2025/11/18 15:22:22.606833 [Info] app/dns: DNS: created localhost client
2025/11/18 15:22:22.608242 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1080
2025/11/18 15:22:22.608283 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1087
2025/11/18 15:22:22.610640 [Warning] core: Xray 25.10.15 started
2025/11/18 15:22:23.608573 [Info] [114581607] proxy/http: request to Method [GET] Host [www.gstatic.com] with URL [http://www.gstatic.com/generate_204]
2025/11/18 15:22:23.608846 [Info] [114581607] app/dispatcher: default route for tcp:www.gstatic.com:80
2025/11/18 15:22:23.609201 from 127.0.0.1:51134 accepted http://www.gstatic.com/generate_204 [proxy]
2025/11/18 15:22:23.609704 [Info] [114581607] transport/internet/tcp: dialing TCP to tcp:207.97.155.69:443
2025/11/18 15:22:25.139592 [Warning] [114581607] proxy/http: failed to read response from www.gstatic.com > unexpected EOF
2025/11/18 15:22:25.141174 [Info] [114581607] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > EOF


########  这段是手动配置cli proxy变量请求的,是可以通的
2025/11/18 15:24:23.655428 [Info] [1116496680] proxy/http: request to Method [CONNECT] Host [www.google.com:443] with URL [//www.google.com:443]
2025/11/18 15:24:23.657571 [Info] [1116496680] app/dispatcher: default route for tcp:www.google.com:443
2025/11/18 15:24:23.657663 [Info] [1116496680] transport/internet/tcp: dialing TCP to tcp:207.97.155.69:443
2025/11/18 15:24:23.657766 from 127.0.0.1:51190 accepted //www.google.com:443 [proxy]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions