ToutyRater / v2ray-guide

https://toutyrater.github.io/
1.61k stars 441 forks source link

反向代理2: error 2ray.com/core/app/reverse: failed to process reverse connection > v2ray.com/core/app/reverse: empty worker list #42

Closed ghost closed 5 years ago

ghost commented 5 years ago

我按照教程设置了反向代理2的两个模板, B节点error.log 显示

 v2ray.com/core/app/dispatcher: taking detour [portal] for [tcp:www.gstatic.com:80]
2019/01/09 23:23:04 [Info] [2064198378] v2ray.com/core/app/reverse: failed to process reverse connection > v2ray.com/core/app/reverse: empty worker list

access.log 显示

2019/01/09 23:31:07 [2408:84f4:44:9870:885d:cdc2:4a6:69db]:40392 accepted tcp:www.gstatic.com:80

A 的配置文件

{
  "reverse":{

    "bridges":[
      {
        "tag":"bridge",
        "domain":"private.cloud.com"
      }
    ]
  },
  "outbounds":[
    {
      "protocol":"freedom",
      "settings":{
      },
      "tag":"out"
    },
    {

    "tag":"tunnel",
    "protocol":"vmess",
    "settings":{
      "vnext":[
        {
          "address":"xxx.com",
          "port":9999,
          "users":[
            {
              "id":"b831381d-6324-4d53-ad4f-8cda48b30811",
              "alterId":64
            }
          ]
        }
      ]
    }
  }
  ],
  "routing":{
    "strategy":"rules",
    "settings":{
      "rules":[
        {
          "type":"field",
          "inboundTag":[
            "bridge"
          ],
          "domain":[
            "full:private.cloud.com"
          ],
          "outboundTag":"tunnel"
        },
        {
          "type":"field",
          "inboundTag":[
            "bridge"
          ],
          "outboundTag":"out"
        }
      ]
    }
  }
}

B的配置文件

{
    "api": {
        "services": [
            "HandlerService",
            "LoggerService",
            "StatsService"
        ],
        "tag": "api"
    },
    "inbounds": [{
            "listen": "127.0.0.1",
            "port": 2333,
            "protocol": "dokodemo-door",
            "settings": {
                "address": "127.0.0.1"
            },
            "tag": "api"
        },
{
            "tag": "MAIN_INBOUND",
            "port": 10000,
            "protocol": "vmess",
            "settings": {
                "clients": [{
                    "id": "b866666d-6324-4d53-ad4f-8cda48b30811",
                    "alterId": 64
                }]
            }
        },
        {
            "tag": "tunnel",
            "port": 9999,
            "protocol": "vmess",
            "settings": {
                "clients": [{
                    "id": "b831381d-6324-4d53-ad4f-8cda48b30811",
                    "alterId": 64
                }]
            }
        }
    ],
    "log": {
        "access": "/var/log/v2ray/access.log",
        "error": "/var/log/v2ray/error.log",
        "loglevel": "info"
    },
    "outbounds": [{
            "protocol": "freedom",
            "settings": {}
        },
        {
            "protocol": "blackhole",
            "settings": {},
            "tag": "blocked"
        }
    ],
    "policy": {
        "levels": {
            "0": {
                "bufferSize": 10240,
                "connIdle": 300,
                "downlinkOnly": 5,
                "handshake": 4,
                "statsUserDownlink": true,
                "statsUserUplink": true,
                "uplinkOnly": 2
            }
        },
        "system": {
            "statsInboundDownlink": false,
            "statsInboundUplink": false
        }
    },
"reverse":{
    "portals":[
      {
        "tag":"portal",
        "domain":"private.cloud.com"
      }
    ]
  },
    "routing": {
        "settings": {
            "rules": [{
                    "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"
                    ],
                    "outboundTag": "blocked",
                    "protocol": [
                        "bittorrent"
                    ],
                    "type": "field"
                },
                {
                    "inboundTag": [
                        "api"
                    ],
                    "outboundTag": "api",
                    "type": "field"
                },
                {
                    "domain": [
                        "regexp:(api|ps|sv|offnavi|newvector|ulog\\.imap|newloc)(\\.map|)\\.(baidu|n\\.shifen)\\.com",
                        "regexp:(.+\\.|^)(360|so)\\.(cn|com)",
                        "regexp:(.?)(xunlei|sandai|Thunder|XLLiveUD)(.)"
                    ],
                    "outboundTag": "blocked",
                    "type": "field"
                },
                {
                    "type": "field",
                    "inboundTag": [
                        "MAIN_INBOUND"
                    ],
                    "outboundTag": "portal"
                },
                {
                    "type": "field",
                    "inboundTag": [
                        "tunnel"
                    ],
                    "domain": [
                        "full:private.cloud.com"
                    ],
                    "outboundTag": "portal"
                }
            ]
        },
        "strategy": "rules"
    },
    "stats": {}
}

希望能帮忙看看那 谢谢

ghost commented 5 years ago

版本问题 谢啦