yanue / V2rayU

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

pac模式下,无论路由规则如何选择,都访问不了背墙的网站。 #1502

Open daniloy opened 1 week ago

daniloy commented 1 week ago

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

1) 你正在使用的 V2RayU 和 Mac 版本 ? V2RayU = 4.2.5 OS=12.7.1

2) 你遇到的问题是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) pac模式下,无论路由规则如何选择,都访问不了背墙的网站。

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

  "log": {
    "error": "/Users/jungle/.V2rayU/v2ray-core.log",
    "loglevel": "info",
    "access": "/Users/jungle/.V2rayU/v2ray-core.log"
  },
  "inbounds": [
    {
      "listen": "127.0.0.1",
      "protocol": "socks",
      "settings": {
        "udp": false,
        "auth": "noauth"
      },
      "port": "1080"
    },
    {
      "listen": "127.0.0.1",
      "protocol": "http",
      "settings": {
        "timeout": 360
      },
      "port": "1087"
    }
  ],
  "outbounds": [
    {
      "mux": {
        "enabled": false,
        "concurrency": 8
      },
      "protocol": "vless",
      "streamSettings": {
        "wsSettings": {
          "path": "/Ql9rp7GqeZpHaDG7?ed=2560",
          "headers": {
            "host": "v6.HaHApPy.DyNv6.NeT"
          }
        },
        "security": "tls",
        "tlsSettings": {
          "serverName": "v6.hAHAPPY.dYNV6.Net",
          "allowInsecure": true,
          "fingerprint": "chrome"
        },
        "network": "ws"
      },
      "tag": "proxy",
      "settings": {
        "vnext": [
          {
            "address": "172.66.47.151",
            "users": [
              {
                "encryption": "none",
                "id": "89b3cbba-e6ac-485a-9481-976a0415eab9",
                "level": 0,
                "flow": ""
              }
            ],
            "port": 2087
          }
        ]
      }
    },
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
        "domainStrategy": "UseIP",
        "userLevel": 0
      }
    },
    {
      "tag": "block",
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "none"
        }
      }
    }
  ],
  "dns": {},
  "routing": {
    "domainStrategy": "IPOnDemand",
    "rules": [
      {
        "type": "field",
        "ip": [
          "geoip:cn",
          "geoip:private"
        ],
        "outboundTag": "direct"
      },
      {
        "type": "field",
        "outboundTag": "direct",
        "domain": [
          "geosite:cn",
          "localhost"
        ]
      }
    ],
    "balancers": []
  }
}
    // 在这里附上配置信息

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

2024/10/28 14:56:52 [Info] app/dns: DNS: created localhost client
2024/10/28 14:56:52 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1080
2024/10/28 14:56:52 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1087
2024/10/28 14:56:52 [Warning] core: Xray 1.5.5 started
2024/10/28 14:56:54 [Info] [4165892958] proxy/socks: TCP Connect request to tcp:www.google.com:443
2024/10/28 14:56:54 [Info] [1424024425] proxy/socks: TCP Connect request to tcp:fonts.gstatic.com:443
2024/10/28 14:56:54 [Info] [1424024425] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2024/10/28 14:56:54 [Info] [1424024425] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:56:54 tcp:127.0.0.1:59055 accepted tcp:fonts.gstatic.com:443 [proxy]
2024/10/28 14:56:54 [Info] [4165892958] app/dispatcher: default route for tcp:www.google.com:443
2024/10/28 14:56:54 [Info] [4165892958] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:56:54 tcp:127.0.0.1:59054 accepted tcp:www.google.com:443 [proxy]
2024/10/28 14:56:55 [Info] [1424024425] proxy/vmess/outbound: tunneling request to tcp:fonts.gstatic.com:443 via 104.26.5.103:2082
2024/10/28 14:56:57 [Info] [4165892958] proxy/vmess/outbound: tunneling request to tcp:www.google.com:443 via 104.26.5.103:2082
2024/10/28 14:57:06 [Info] [1424024425] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > websocket: close 1006 (abnormal closure): unexpected EOF
2024/10/28 14:57:06 [Info] [1424024425] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2024/10/28 14:57:24 [Info] [1113615733] proxy/socks: TCP Connect request to tcp:www.google.com:443
2024/10/28 14:57:24 [Info] [1113615733] app/dispatcher: default route for tcp:www.google.com:443
2024/10/28 14:57:24 [Info] [1113615733] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:24 tcp:127.0.0.1:59063 accepted tcp:www.google.com:443 [proxy]
2024/10/28 14:57:25 [Info] [4165892958] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2024/10/28 14:57:25 [Info] [4165892958] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > context canceled
2024/10/28 14:57:25 [Info] [2684114970] proxy/socks: TCP Connect request to tcp:fonts.gstatic.com:443
2024/10/28 14:57:25 [Info] [2684114970] app/dispatcher: default route for tcp:fonts.gstatic.com:443
2024/10/28 14:57:25 [Info] [2684114970] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:25 tcp:127.0.0.1:59065 accepted tcp:fonts.gstatic.com:443 [proxy]
2024/10/28 14:57:26 [Info] [2564691781] proxy/socks: TCP Connect request to tcp:www.google.com:443
2024/10/28 14:57:26 [Info] [2564691781] app/dispatcher: default route for tcp:www.google.com:443
2024/10/28 14:57:26 [Info] [2564691781] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:26 tcp:127.0.0.1:59067 accepted tcp:www.google.com:443 [proxy]
2024/10/28 14:57:35 [Info] [117998209] proxy/http: request to Method [CONNECT] Host [raw.githubusercontent.com:443] with URL [//raw.githubusercontent.com:443]
2024/10/28 14:57:35 [Info] [117998209] app/dispatcher: default route for tcp:raw.githubusercontent.com:443
2024/10/28 14:57:35 [Info] [117998209] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:35 127.0.0.1:59074 accepted //raw.githubusercontent.com:443 [proxy]
2024/10/28 14:57:37 [Info] [4254274327] proxy/http: request to Method [CONNECT] Host [raw.githubusercontent.com:443] with URL [//raw.githubusercontent.com:443]
2024/10/28 14:57:37 127.0.0.1:59076 accepted //raw.githubusercontent.com:443 [proxy]
2024/10/28 14:57:37 [Info] [4254274327] app/dispatcher: default route for tcp:raw.githubusercontent.com:443
2024/10/28 14:57:37 [Info] [4254274327] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:38 [Info] [1321960016] proxy/http: request to Method [CONNECT] Host [raw.githubusercontent.com:443] with URL [//raw.githubusercontent.com:443]
2024/10/28 14:57:38 [Info] [1321960016] app/dispatcher: default route for tcp:raw.githubusercontent.com:443
2024/10/28 14:57:38 127.0.0.1:59078 accepted //raw.githubusercontent.com:443 [proxy]
2024/10/28 14:57:38 [Info] [1321960016] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:39 [Info] [485165000] proxy/http: request to Method [CONNECT] Host [raw.githubusercontent.com:443] with URL [//raw.githubusercontent.com:443]
2024/10/28 14:57:39 127.0.0.1:59080 accepted //raw.githubusercontent.com:443 [proxy]
2024/10/28 14:57:39 [Info] [485165000] app/dispatcher: default route for tcp:raw.githubusercontent.com:443
2024/10/28 14:57:39 [Info] [485165000] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:40 [Info] [1113615733] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:41 [Info] [2684114970] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:42 [Info] [2564691781] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:51 [Info] [117998209] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:53 [Info] [4254274327] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:54 [Info] [1321960016] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:55 [Info] [485165000] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:55 [Info] [1113615733] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2024/10/28 14:57:56 [Info] [1113615733] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:56 [Info] [1113615733] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:56 [Info] [2684114970] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2024/10/28 14:57:57 [Info] [1113615733] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:57 [Info] [2684114970] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:57 [Info] [2564691781] app/proxyman/inbound: connection ends > proxy/socks: connection ends > context canceled
2024/10/28 14:57:57 [Info] [2564691781] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:57 [Info] [3533164926] proxy/socks: TCP Connect request to tcp:c.tile.openstreetmap.org:443
2024/10/28 14:57:57 [Info] [3533164926] app/dispatcher: default route for tcp:c.tile.openstreetmap.org:443
2024/10/28 14:57:57 [Info] [3533164926] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:57 tcp:127.0.0.1:59091 accepted tcp:c.tile.openstreetmap.org:443 [proxy]
2024/10/28 14:57:57 [Info] [2684114970] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:57 [Info] [4269262812] proxy/socks: TCP Connect request to tcp:c.tile.openstreetmap.org:443
2024/10/28 14:57:57 [Info] [4269262812] app/dispatcher: default route for tcp:c.tile.openstreetmap.org:443
2024/10/28 14:57:57 tcp:127.0.0.1:59093 accepted tcp:c.tile.openstreetmap.org:443 [proxy]
2024/10/28 14:57:57 [Info] [4269262812] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:57 [Info] [2634603941] proxy/socks: TCP Connect request to tcp:c.tile.openstreetmap.org:443
2024/10/28 14:57:57 [Info] [2634603941] app/dispatcher: default route for tcp:c.tile.openstreetmap.org:443
2024/10/28 14:57:57 [Info] [2634603941] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:57 tcp:127.0.0.1:59095 accepted tcp:c.tile.openstreetmap.org:443 [proxy]
2024/10/28 14:57:57 [Info] [2564691781] transport/internet/websocket: creating connection to tcp:104.26.5.103:2082
2024/10/28 14:57:57 [Warning] [1113615733] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (ws://104.26.5.103:2082/github.com/Alvin9999):  > dial tcp 104.26.5.103:2082: i/o timeout transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (ws://104.26.5.103:2082/github.com/Alvin9999):  > dial tcp 104.26.5.103:2082: operation was canceled] > common/retry: all retry attempts failed

    // 在这里附上日志信息

请预览一下你填的内容再提交。

kitencx commented 22 hours ago

我也是这样,更新后pac模式下就不能生效了,只有切换到全局才行