Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proxySettings 设置 xray 代理链死活不通,代码如下 #2388

Closed
vitaminx opened this issue Aug 1, 2023 · 12 comments
Closed

proxySettings 设置 xray 代理链死活不通,代码如下 #2388

vitaminx opened this issue Aug 1, 2023 · 12 comments

Comments

@vitaminx
Copy link

vitaminx commented Aug 1, 2023

单独链接 proxy-aa 或者 proxy-bb 线路均通
设置 proxy-aa 为 proxy-bb 的前置代理后 proxy-bb 不通,反之亦然
代码如下:
求大佬指点

{
  "routing": {
    "domainStrategy": "AsIs",
    "rules": [
      {
        "type": "field",
        "inboundTag": ["inbound-a"],
        "outboundTag": "proxy-bb"
      }
    ]
  },
  "inbounds": [
    {
      "tag": "inbound-a",
      "protocol": "socks",
      "listen": "127.0.0.1",
      "port": 38100,
      "settings": {
        "udp": true
      }
    }
  ],
  "outbounds": [
    {
      "tag": "proxy-aa",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "*********",
            "port": 22002,
            "users": [
              {
                "id": "*******************",
                "alterId": 0,
                "email": "t@t.tt",
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },
    {
      "tag": "proxy-bb",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "*********",
            "port": 8080,
            "users": [
              {
                "id": "*****************************",
                "alterId": 0,
                "email": "t@t.tt",
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "wsSettings": {
          "path": "/download",
          "headers": {
            "Host": "download.aaaaa.com"
          }
        }
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      },
      //设置前置代理
      "proxySettings": {
        "tag": "proxy-aa"
      }
    },
    {
      "tag": "block",
      "protocol": "blackhole"
    },
    {
      "tag": "direct-out",
      "protocol": "freedom"
    }
  ]
}    

以下是 Debug 日志:

2023/08/02 11:51:55 [Info] [1671800010] proxy/socks: TCP Connect request to tcp:play.google.com:443
2023/08/02 11:51:55 [Info] [1671800010] app/dispatcher: taking detour [proxy-bb] for [tcp:play.google.com:443]
2023/08/02 11:51:55 [Debug] [1671800010] app/proxyman/outbound: proxying to proxy-aa for dest tcp:*************:8080
2023/08/02 11:51:55 [Info] [1671800010] proxy/vmess/outbound: tunneling request to tcp:play.google.com:443 via *************:8080
2023/08/02 11:51:55 [Info] [1671800010] transport/internet/tcp: dialing TCP to tcp:*************:22002
2023/08/02 11:51:55 [Debug] transport/internet: dialing to tcp:*************:22002
2023/08/02 11:51:55 [Info] [1956803143] proxy/socks: TCP Connect request to tcp:www.google-analytics.com:443
2023/08/02 11:51:55 [Info] [1956803143] app/dispatcher: taking detour [block] for [tcp:www.google-analytics.com:443]
2023/08/02 11:51:55 [Info] [1956803143] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2023/08/02 11:51:55 [Info] [2867192314] proxy/socks: TCP Connect request to tcp:www.google-analytics.com:443
2023/08/02 11:51:55 [Info] [2867192314] app/dispatcher: taking detour [block] for [tcp:www.google-analytics.com:443]
2023/08/02 11:51:55 [Info] [2867192314] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2023/08/02 11:52:01 [Info] [1671800010] proxy/shadowsocks: tunneling request to tcp:*************:8080 via TCP:*************:22002
2023/08/02 11:52:02 [Info] [1671800010] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > proxy/vmess/outbound: failed to read header > common/drain: common/drain: unable to drain connection > EOF > proxy/vmess/encoding: Failed To Decrypt Length > cipher: message authentication failed
2023/08/02 11:52:02 [Info] [1671800010] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2023/08/02 11:52:02 [Info] [3969982222] proxy/socks: TCP Connect request to tcp:play.google.com:443
2023/08/02 11:52:02 [Info] [3969982222] app/dispatcher: taking detour [proxy-bb] for [tcp:play.google.com:443]
2023/08/02 11:52:02 [Debug] [3969982222] app/proxyman/outbound: proxying to proxy-aa for dest tcp:*************:8080
2023/08/02 11:52:02 [Info] [3969982222] proxy/vmess/outbound: tunneling request to tcp:play.google.com:443 via *************:8080
2023/08/02 11:52:02 [Info] [3969982222] transport/internet/tcp: dialing TCP to tcp:*************:22002
2023/08/02 11:52:02 [Debug] transport/internet: dialing to tcp:*************:22002
2023/08/02 11:52:02 [Info] [3969982222] proxy/shadowsocks: tunneling request to tcp:*************:8080 via TCP:*************:22002
2023/08/02 11:52:02 [Info] [3969982222] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > proxy/vmess/outbound: failed to read header > common/drain: common/drain: unable to drain connection > EOF > proxy/vmess/encoding: Failed To Decrypt Length > cipher: message authentication failed
2023/08/02 11:52:02 [Info] [3969982222] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2023/08/02 11:52:14 [Info] [3494118059] proxy/socks: TCP Connect request to tcp:www.google.com:443
2023/08/02 11:52:14 [Info] [3494118059] app/dispatcher: taking detour [proxy-bb] for [tcp:www.google.com:443]
2023/08/02 11:52:14 [Debug] [3494118059] app/proxyman/outbound: proxying to proxy-aa for dest tcp:*************:8080
2023/08/02 11:52:14 [Info] [3494118059] proxy/vmess/outbound: tunneling request to tcp:www.google.com:443 via *************:8080
2023/08/02 11:52:14 [Info] [3494118059] transport/internet/tcp: dialing TCP to tcp:*************:22002
2023/08/02 11:52:14 [Debug] transport/internet: dialing to tcp:*************:22002
2023/08/02 11:52:14 [Info] [3494118059] proxy/shadowsocks: tunneling request to tcp:*************:8080 via TCP:*************:22002
2023/08/02 11:52:14 [Info] [3494118059] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > proxy/vmess/outbound: failed to read header > common/drain: common/drain: unable to drain connection > EOF > proxy/vmess/encoding: Failed To Decrypt Length > cipher: message authentication failed
2023/08/02 11:52:14 [Info] [3494118059] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2023/08/02 11:52:14 [Info] [416758464] proxy/socks: TCP Connect request to tcp:www.google.com:443
2023/08/02 11:52:14 [Info] [416758464] app/dispatcher: taking detour [proxy-bb] for [tcp:www.google.com:443]
2023/08/02 11:52:14 [Debug] [416758464] app/proxyman/outbound: proxying to proxy-aa for dest tcp:*************:8080
2023/08/02 11:52:14 [Info] [416758464] proxy/vmess/outbound: tunneling request to tcp:www.google.com:443 via *************:8080
2023/08/02 11:52:14 [Info] [416758464] transport/internet/tcp: dialing TCP to tcp:*************:22002
2023/08/02 11:52:14 [Debug] transport/internet: dialing to tcp:*************:22002
2023/08/02 11:52:15 [Info] [416758464] proxy/shadowsocks: tunneling request to tcp:*************:8080 via TCP:*************:22002
2023/08/02 11:52:15 [Info] [416758464] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > proxy/vmess/outbound: failed to read header > common/drain: common/drain: unable to drain connection > EOF > proxy/vmess/encoding: Failed To Decrypt Length > cipher: message authentication failed
2023/08/02 11:52:15 [Info] [416758464] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
@chise0713
Copy link
Contributor

chise0713 commented Aug 1, 2023

要走底层协议的话得用sockopt.dialerProxy
https://xtls.github.io/config/transport.html#sockoptobject
或者你用任意门套娃转发
https://xtls.github.io/config/inbounds/dokodemo.html#inboundconfigurationobject
#1844 (comment)

@vitaminx
Copy link
Author

vitaminx commented Aug 1, 2023

sockopt.dialerProxy
sockopt.dialerProxy 设置后,好像没有效果,通的还是通的、不通的依然不通
任意门好像是监听本地端口,怎么配置前置或者后置代理,也就是如何设置套娃转发?

@chika0801
Copy link
Contributor

chika0801 commented Aug 1, 2023

看了下你的配置,觉得你链式代理你配置写的是没问题的。我觉得不是用 sockopt.dialerProxy 这方面的原因。

我是不想(没空)照你配置复现一下了,平时我也不用链式代理形式。

如果你要别人帮你分析,建议你以现在你发的配置,它你测试了是不通(失败)的。日志开Debug,你客户端发起请求,把日志粘贴上来,别人好分析一下了。你要随缘等其它热心人帮助。

@vitaminx
Copy link
Author

vitaminx commented Aug 2, 2023

看了下你的配置,觉得你链式代理你配置写的是没问题的。我觉得不是用 sockopt.dialerProxy 这方面的原因。

我是不想(没空)照你配置复现一下了,平时我也不用链式代理形式。

如果你要别人帮你分析,建议你以现在你发的配置,它你测试了是不通(失败)的。日志开Debug,你客户端发起请求,把日志粘贴上来,别人好分析一下了。你要随缘等其它热心人帮助。

多谢指点

@vitaminx
Copy link
Author

vitaminx commented Aug 2, 2023

sockopt.dialerProxy 设置后,好像没有效果,通的还是通的、不通的依然不通

以下是代码

{
  "routing": {
    "domainStrategy": "AsIs",
    "rules": [
      {
        "type": "field",
        "inboundTag": ["inbound-a"],
        "outboundTag": "proxy-bb"
      }
    ]
  },
  "inbounds": [
    {
      "tag": "inbound-a",
      "protocol": "socks",
      "listen": "127.0.0.1",
      "port": 38100,
      "settings": {
        "udp": true
      }
    }
  ],
  "outbounds": [
    {
      "tag": "proxy-aa",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "*********",
            "port": 2202,
            "users": [
              {
                "id": "*******************",
                "alterId": 0,
                "email": "t@t.tt",
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },
    {
      "tag": "proxy-bb",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "*********",
            "port": 8080,
            "users": [
              {
                "id": "*****************************",
                "alterId": 0,
                "email": "t@t.tt",
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        //设置前置代理
        "sockopt": {
          "dialerProxy": "proxy-aa"
        },
        "network": "ws",
        "wsSettings": {
          "path": "/download",
          "headers": {
            "Host": "**************"
          }
        }
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },
    {
      "tag": "block",
      "protocol": "blackhole"
    },
    {
      "tag": "direct-out",
      "protocol": "freedom"
    }
  ]
}

以下是 Debug 日志:

2023/08/02 11:22:24 [Info] [3458832617] proxy/socks: TCP Connect request to tcp:www.google.com:443
2023/08/02 11:22:24 [Info] [3458832617] app/dispatcher: taking detour [proxy-bb] for [tcp:www.google.com:443]
2023/08/02 11:22:24 [Info] [3458832617] transport/internet/websocket: creating connection to tcp:*************:8080
2023/08/02 11:22:24 [Info] [3458832617] transport/internet: redirecting request tcp:*************:8080 to proxy-aa
2023/08/02 11:22:24 [Info] [3458832617] transport/internet/tcp: dialing TCP to tcp:*************:22002
2023/08/02 11:22:24 [Debug] transport/internet: dialing to tcp:*************:22002
2023/08/02 11:22:24 [Info] [3458832617] proxy/shadowsocks: tunneling request to tcp:*************:8080 via TCP:*************:22002
2023/08/02 11:22:24 [Info] [1995703217] proxy/socks: TCP Connect request to tcp:www.google-analytics.com:443
2023/08/02 11:22:24 [Info] [1995703217] app/dispatcher: taking detour [block] for [tcp:www.google-analytics.com:443]
2023/08/02 11:22:24 [Info] [1995703217] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2023/08/02 11:22:24 [Info] [2869875698] proxy/socks: TCP Connect request to tcp:www.google-analytics.com:443
2023/08/02 11:22:24 [Info] [2869875698] app/dispatcher: taking detour [block] for [tcp:www.google-analytics.com:443]
2023/08/02 11:22:24 [Info] [2869875698] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2023/08/02 11:22:25 [Info] [3458832617] proxy/vmess/outbound: tunneling request to tcp:www.google.com:443 via *************:8080
2023/08/02 11:22:25 [Info] [3458832617] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > proxy/vmess/outbound: failed to read header > common/drain: common/drain: drained connection > proxy/vmess/encoding: Failed To Decrypt Length > cipher: message authentication failed
2023/08/02 11:22:25 [Info] [3458832617] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2023/08/02 11:22:25 [Info] [1010637946] proxy/socks: TCP Connect request to tcp:www.google.com:443
2023/08/02 11:22:25 [Info] [1010637946] app/dispatcher: taking detour [proxy-bb] for [tcp:www.google.com:443]
2023/08/02 11:22:25 [Info] [1010637946] transport/internet/websocket: creating connection to tcp:*************:8080
2023/08/02 11:22:25 [Info] [1010637946] transport/internet: redirecting request tcp:*************:8080 to proxy-aa
2023/08/02 11:22:25 [Info] [1010637946] transport/internet/tcp: dialing TCP to tcp:*************:22002
2023/08/02 11:22:25 [Debug] transport/internet: dialing to tcp:*************:22002
2023/08/02 11:22:25 [Info] [1010637946] proxy/shadowsocks: tunneling request to tcp:*************:8080 via TCP:*************:22002
2023/08/02 11:22:25 [Info] [1010637946] proxy/vmess/outbound: tunneling request to tcp:www.google.com:443 via *************:8080
2023/08/02 11:22:25 [Info] [1010637946] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: connection ends > proxy/vmess/outbound: failed to read header > common/drain: common/drain: drained connection > proxy/vmess/encoding: Failed To Decrypt Length > cipher: message authentication failed
2023/08/02 11:22:25 [Info] [1010637946] app/proxyman/inbound: connection ends > proxy/socks: connection ends > proxy/socks: failed to transport all TCP response > io: read/write on closed pipe

@vitaminx
Copy link
Author

vitaminx commented Aug 2, 2023

dokodemo-door 也无法连接

以下是代码

{
  // 1_日志设置
  "log": {
    "access": "*********/access.log", // 访问记录
    "error": "*********/error.log", // 错误记录
    "loglevel": "warning" // 内容从少到多: "none", "error", "warning", "info", "debug"
  },
  // 2_DNS设置
  "dns": {
    "servers": [
      // 2.1 国外域名使用国外DNS查询:谷歌
      {
        "address": "8.8.8.8",
        "domains": ["geosite:geolocation-!cn"]
      },
      // 2.2 国内域名使用国内DNS查询,并期待返回国内的IP,若不是国内IP则舍弃,用下一个查询
      {
        "address": "202.96.128.86",
        "domains": ["geosite:cn"],
        "expectIPs": ["geoip:cn"]
      },
      // 2.4 最后的备份,上面全部失败时,用本机DNS查询
      "localhost"
    ]
  },
  // 3_分流设置
  // 所谓分流,就是将符合否个条件的流量,用指定`tag`的出站协议去处理
  "routing": {
    "domainStrategy": "AsIs",
    "rules": [
      // 1-block 广告流量屏蔽
      {
        "type": "field",
        "domain": ["geosite:category-ads-all"],
        "outboundTag": "block"
      },
      // 2-direct 国内流量直连
      {
        "type": "field",
        "domain": ["geosite:cn", "full:direct.yourdomain.com"],
        "outboundTag": "direct-out"
      },
      //inbound-aa
      {
        "type": "field",
        "inboundTag": ["inbound-aa"],
        "outboundTag": "proxy-aa"
      }
    ]
  },
  // 4_入站设置
  "inbounds": [
    //aa-inbound-38200
    {
      "tag": "inbound-aa",
      "protocol": "dokodemo-door",
      "listen": "127.0.0.1",
      "port": 38200,
      "settings": {
        "address": "***************",
        "port": 22002,
        "network": "tcp,udp"
      }
    }
  ],
  // 5_出站设置
  "outbounds": [
    //outbound-aa
    {
      "tag": "proxy-aa",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "***************",
            "port": 43476,
            "users": [
              {
                "id": "1a247190-e9e3-45be-c428-38a8372be28c",
                "alterId": 0,
                "email": "t@t.tt",
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },
    //dokodemo-door-aa-38200
    {
      "tag": "proxy-aa-38200",
      "protocol": "shadowsocks",
      "settings": {
        "servers": [
          {
            "address": "127.0.0.1",
            "method": "aes-128-gcm",
            "ota": false,
            "password": "af41fc51-8db3-400e-bb11-0f9cdafe1626",
            "port": 38200,
            "level": 1
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    },
    //黑洞协议
    {
      "tag": "block",
      "protocol": "blackhole"
    },
    //直连协议
    {
      "tag": "direct-out",
      "protocol": "freedom"
    }
  ]
}

以下是 Debug 日志:

2023/08/02 16:59:53 [Debug] [1105747002] proxy/dokodemo: processing connection from: 127.0.0.1:57901
2023/08/02 16:59:53 [Info] [1105747002] proxy/dokodemo: received request for 127.0.0.1:57901
2023/08/02 16:59:53 [Debug] [2100951036] proxy/dokodemo: processing connection from: 127.0.0.1:57900
2023/08/02 16:59:53 [Info] [2100951036] proxy/dokodemo: received request for 127.0.0.1:57900
2023/08/02 16:59:53 [Info] [2100951036] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 16:59:53 [Info] [2100951036] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 16:59:53 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 16:59:53 [Info] [1105747002] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 16:59:53 [Info] [1105747002] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 16:59:53 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 16:59:53 [Info] [1105747002] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476
2023/08/02 16:59:53 [Info] [2100951036] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476
2023/08/02 16:59:54 [Debug] [330210830] proxy/dokodemo: processing connection from: 127.0.0.1:57904
2023/08/02 16:59:54 [Info] [330210830] proxy/dokodemo: received request for 127.0.0.1:57904
2023/08/02 16:59:54 [Info] [330210830] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 16:59:54 [Info] [330210830] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 16:59:54 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 16:59:54 [Info] [330210830] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476
2023/08/02 17:00:04 [Debug] [3072295483] proxy/dokodemo: processing connection from: 127.0.0.1:57907
2023/08/02 17:00:04 [Info] [3072295483] proxy/dokodemo: received request for 127.0.0.1:57907
2023/08/02 17:00:04 [Info] [3072295483] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 17:00:04 [Info] [3072295483] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 17:00:04 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 17:00:04 [Info] [3072295483] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476
2023/08/02 17:00:04 [Debug] [1306237673] proxy/dokodemo: processing connection from: 127.0.0.1:57909
2023/08/02 17:00:04 [Info] [1306237673] proxy/dokodemo: received request for 127.0.0.1:57909
2023/08/02 17:00:04 [Info] [1306237673] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 17:00:04 [Info] [1306237673] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 17:00:04 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 17:00:04 [Info] [1306237673] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476
2023/08/02 17:00:22 [Debug] [3859950819] proxy/dokodemo: processing connection from: 127.0.0.1:57914
2023/08/02 17:00:22 [Info] [3859950819] proxy/dokodemo: received request for 127.0.0.1:57914
2023/08/02 17:00:22 [Info] [3859950819] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 17:00:22 [Info] [3859950819] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 17:00:22 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 17:00:22 [Info] [3859950819] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476
2023/08/02 17:00:23 [Debug] [3149635782] proxy/dokodemo: processing connection from: 127.0.0.1:57917
2023/08/02 17:00:23 [Info] [3149635782] proxy/dokodemo: received request for 127.0.0.1:57917
2023/08/02 17:00:23 [Info] [3149635782] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 17:00:23 [Info] [3149635782] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 17:00:23 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 17:00:23 [Info] [3149635782] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476
2023/08/02 17:00:23 [Debug] [303983609] proxy/dokodemo: processing connection from: 127.0.0.1:57919
2023/08/02 17:00:23 [Info] [303983609] proxy/dokodemo: received request for 127.0.0.1:57919
2023/08/02 17:00:23 [Info] [303983609] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 17:00:23 [Info] [303983609] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 17:00:23 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 17:00:23 [Info] [303983609] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476
2023/08/02 17:00:24 [Info] [1105747002] app/proxyman/inbound: connection ends > proxy/dokodemo: connection ends > context canceled
2023/08/02 17:00:24 [Info] [2100951036] app/proxyman/inbound: connection ends > proxy/dokodemo: connection ends > context canceled
2023/08/02 17:00:24 [Debug] [3343854015] proxy/dokodemo: processing connection from: 127.0.0.1:57922
2023/08/02 17:00:24 [Info] [3343854015] proxy/dokodemo: received request for 127.0.0.1:57922
2023/08/02 17:00:24 [Info] [3343854015] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 17:00:24 [Info] [3343854015] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 17:00:24 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 17:00:24 [Info] [3343854015] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476
2023/08/02 17:00:25 [Info] [330210830] app/proxyman/inbound: connection ends > proxy/dokodemo: connection ends > context canceled
2023/08/02 17:00:25 [Debug] [1622633015] proxy/dokodemo: processing connection from: 127.0.0.1:57925
2023/08/02 17:00:25 [Info] [1622633015] proxy/dokodemo: received request for 127.0.0.1:57925
2023/08/02 17:00:25 [Info] [1622633015] app/dispatcher: taking detour [proxy-aa] for [tcp:*****************:22002]
2023/08/02 17:00:25 [Info] [1622633015] transport/internet/tcp: dialing TCP to tcp:**************:43476
2023/08/02 17:00:25 [Debug] transport/internet: dialing to tcp:**************:43476
2023/08/02 17:00:25 [Info] [1622633015] proxy/vmess/outbound: tunneling request to tcp:*****************:22002 via **************:43476

@chise0713
Copy link
Contributor

你aa的服务器能不能访问bb,先从简单的开始排查。配置和log稍微看了看,不像是配置出问题了,你aa的服务端也记得把去往bb服务端的路由到可以访问bb的出站。

@vitaminx
Copy link
Author

vitaminx commented Aug 2, 2023

你aa的服务器能不能访问bb,先从简单的开始排查。配置和log稍微看了看,不像是配置出问题了,你aa的服务端也记得把去往bb服务端的路由到可以访问bb的出站。

在 ClashX Pro 里面所有线路直连/代理链没有问题,
但是用 Xray-core 的时候 aa 线路通,bb线路不通
设置 proxySettings 或者 dokodemo-door 不论是 aa 还是 bb 都不通
设置 dialerProxy 直连通的还是通的,直连不通的也还是不通的,感觉跟没有设置以前,完全没有前置代理的作用

@chise0713
Copy link
Contributor

@vitaminx 建议还是带上完整配置和log进群问大伙,现在只能看见你客户端的情况,不知道服务端什么情况。

@WordsWorthLess
Copy link

所有CORE都是同一个版本吗?试试所有客户端和服务器端都用同一版本的V2RAY CORE

@lrisora
Copy link

lrisora commented Aug 2, 2023

你这个任意门的配置有问题
正常的是这样的 #1430 (comment)
下面有提到用proxySettings的前置代理
我测试vision可用
但是在REALITY刚出时proxySettings就有问题了,无法在传输层为REALITY时使用
很久之前的了,不知道现在怎么样了

@us254
Copy link

us254 commented Aug 3, 2023

proxySettings relies on the underlying transport protocol being compatible. If proxy A is using TCP and proxy B is using WebSocket, chaining them won't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants