v2ray / v2ray-core

A platform for building proxies to bypass network restrictions.
https://www.v2ray.com/
MIT License
45.43k stars 8.95k forks source link

PC 端网页无法打开 #497

Closed junbaor closed 7 years ago

junbaor commented 7 years ago

1) 你正在使用哪个版本的 V2Ray? 服务端版本:v2.33.1 客户端版本:v2.33.1 配合1.11 版本的 v2rayN

2) 你的使用场景是什么? 使用 chrome 插件 SwitchyOmega 让网页走 http 代理

3) 你看到的不正常的现象是什么? google baidu 网页均无法打开

4) 你期待看到的正确表现是怎样的? 网页正常打开

5) 请附上你的配置文件。 Server Configuration File(服务器端配置文件):

{
    "log":{
        "loglevel":"warning",
        "access":"/tmp/v2ray/access.log",
        "error":"/tmp/v2ray/error.log"
    },
    "inbound":{
        "port":1616,
        "protocol":"vmess",
        "settings":{
            "clients":[
                [
                    {
                        "id":"9b2e988b-17dd-4b88-bd58-d248594e9379"
                    }
                ]
            ]
        }
    },
    "outbound":{
        "protocol":"freedom",
        "settings":{

        }
    }
}

Client Configuration File(客户端配置文件):

{
  "log": {
    "access": "",
    "error": "",
    "loglevel": ""
  },
  "inbound": {
    "port": 1080,
    "listen": "127.0.0.1",
    "protocol": "http",
    "settings": {
      "auth": "noauth",
      "udp": true,
      "ip": "127.0.0.1",
      "clients": null
    },
    "streamSettings": null
  },
  "outbound": {
    "tag": "agentout",
    "protocol": "vmess",
    "settings": {
      "vnext": [
        {
          "address": "xxxxxx.com",
          "port": 1616,
          "users": [
            {
              "id": "9b2e988b-17dd-4b88-bd58-d248594e9379",
              "alterId": 0,
              "security": "none"
            }
          ]
        }
      ]
    },
    "streamSettings": {
      "network": "tcp",
      "security": "",
      "tcpSettings": null,
      "kcpSettings": null,
      "wsSettings": null
    },
    "mux": {
      "enabled": true
    }
  },
  "inboundDetour": null,
  "outboundDetour": [
    {
      "protocol": "freedom",
      "settings": {
        "response": null
      },
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {
        "response": {
          "type": "http"
        }
      },
      "tag": "blockout"
    }
  ],
  "dns": {
    "servers": [
      "8.8.8.8",
      "8.8.4.4",
      "localhost"
    ]
  },
  "routing": {
    "strategy": "rules",
    "settings": {
      "domainStrategy": "IPIfNonMatch",
      "rules": [
        {
          "type": "field",
          "port": null,
          "outboundTag": "direct",
          "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
        }
      ]
    }
  }
}

6) 请附上出错时软件输出的日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。

服务端未见异常,客户端未见异常

junbaor commented 7 years ago

服务端配置错误

"settings":{
    "clients":[
        [
            {
                "id":"9b2e988b-17dd-4b88-bd58-d248594e9379"
            }
        ]
    ]
}

clients 数组有问题,中途修改配置使用后台重启脚本没有关注进程状态