onplus / v2hero

All Free . Deploy V2Ray to Heroku . v2ray学习参考
MIT License
474 stars 1.16k forks source link

V2Ray和v2rayN都按照教程配置好,但仍然无法连接 #24

Closed liyibo123 closed 6 years ago

liyibo123 commented 6 years ago

这是V2Ray文件夹下config.json配置

{
  "outbound": {
    "streamSettings": {
      "network": "ws",
      "kcpSettings": null,
      "wsSettings": {
        "headers": {
          "host": "我的.herokuapp.com"
        },
        "path": ""
      },
      "tcpSettings": null,
      "tlsSettings": {

      },
      "security": "tls"
    },
    "tag": "agentout",
    "protocol": "vmess",
    "mux": {
      "enabled": true
    },
    "settings": {
      "vnext": [
        {
          "users": [
            {
              "alterId": 64,
              "security": "aes-128-gcm",
              "id": "我的UUID"
            }
          ],
          "port": 443,
          "address": "我的.herokuapp.com"
        }
      ]
    }
  },
  "log": {
    "access": "",
    "loglevel": "info",
    "error": ""
  },
  "outboundDetour": [
    {
      "tag": "direct",
      "protocol": "freedom",
      "settings": {
        "response": null
      }
    },
    {
      "tag": "blockout",
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "http"
        }
      }
    }
  ],
  "inbound": {
    "streamSettings": null,
    "settings": {
      "ip": "127.0.0.1",
      "udp": true,
      "clients": null,
      "auth": "noauth"
    },
    "protocol": "socks",
    "port": 1080,
    "listen": "0.0.0.0"
  },
  "inboundDetour": null,
  "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"
          ],
          "domain": null,
          "type": "field",
          "port": null,
          "outboundTag": "direct"
        }
      ],
      "domainStrategy": "IPIfNonMatch"
    },
    "strategy": "rules"
  },
  "dns": {
    "servers": [
      "8.8.8.8",
      "8.8.4.4",
      "localhost"
    ]
  }
}
liyibo123 commented 6 years ago

V2RayN上是按照教程里的两个截图配置的,除了地址、用户id、别名其他全都一样 1 1 1 2

liyibo123 commented 6 years ago

抱怨一下,教程写的粗枝大叶,几乎不可能一次配置成功,要是写的更细致些,就只会有少量问题issue

onplus commented 6 years ago

需要客户端服务端的日志

先确认appname和uuid与服务端配置一致

ksi1110 commented 6 years ago

我一开始按照教程一直没弄好,楼主细心点肯定有哪块没填对