面向新手的V2Ray搭建指南

渐渐发现有很多新人开始尝试自己搭建 V2Ray,但是由于缺少 Linux 的常识,并且很多地方都是英文,所以会遇到许多的问题,也不知道哪里错了而如何搜索。所以本文就是对一个从未接触过命令行的新人说的话,所以本文尽量用图片详细的描述各种操作。

本文的内容大纲和目标如下:

  • 获得一个VPS(注册与购买)
  • 使用 SSH 连接 VPS,并使用自动脚本安装 V2Ray
  • Windows 系统下如何使用 V2Ray 并成功的访问 Google

一、获得一个VPS

如果你已经拥有 VPS 请跳过这个章节,直接阅读 1-2 部分如何使用 SSH 连接 VPS,或者第二章如何安装 V2Ray。

Vultr 是一个比较不错的 VPS 商家,所以这里直接讲 Vultr 的注册,使用支付宝充值并创建一个 Ubuntu系统的 VPS。

1-1注册

限时活动:新用户注册并充值 25 美元可以获得额外 100 美元用于测试使用 Vultr,冲一返二的活动并不常见,这个时候可以入手。

如果你已经有了 Vultr 账号还想薅羊毛,可以重新注册一个新账号,使用不同的邮箱和充值渠道。比如你原先使用的是支付宝支付,这次可以使用微信支付,以躲避 Vultr 的作弊检测。

首先我们打开 Vultr官网,填写邮箱和密码,勾选复选框后就可以点击创建用户了。需要注意的是,密码需要达到规定强度,否则注册不通过:

  1. 至少10个字符
  2. 至少一个小写字符
  3. 至少一个大写字符
  4. 至少一个数字

简单来说,就是密码长度至少十位,包含大小写字母和数字。

就这么简单的我们已经注册好了 Vultr 账户,当然还需要登陆我们的邮箱,验证我们的账户,否则之后无法创建 VPS。

接着我们需要充值钱,以便开一个 VPS。

Vultr充值

好了,充值过程非常简单,这里我充值了 $10,接着会自动跳转到创建 VPS 页面。首先就是选择机房,我仅推荐洛杉矶(Los Angeles)、西雅图(Seattle)和纽约(New York)。

注意:当一些机房比较热门时,被封杀的 IP 就会很多,所以目前已经不建议开洛杉矶机房,很大概率碰到不能连接的 IP,同样不建议的还有如下机房(这些地区机房很大概率被封杀):

  • 日本东京:Tokyo
  • 新加坡:Singapore
  • 洛杉矶:Los Angeles

注意,不同的机房可能导致接下来展示的型号也不同,比如写文章的时候洛杉矶机房 $3.5 这款没货,但是西雅图机房却有 $3.5 这款。他们接下来会补货的,如果没有可以选择其他款。当然仅仅搭建 V2Ray 我们使用 $3.5 这款完全足够。

选择VPS机房地点

接着是选择系统类型,目前是推荐使用 Ubuntu18.04.

目前洛杉矶机房是没有 $3.5 美元的这款了,但是西雅图是有的,我这里是选择 $5 这款继续往下。

接下来勾选上 Enable IPV6 就可以开始创建了。

1-2连接VPS

经过上面的操作已经创建VPS了,当然这需要一两分钟的时间来完成这个过程。

当你看到 Running 时就说明已经在运行了,好了我们开始连接它,点 Manage 进去查看这个实例的详细信息。

这里 IP 被我马赛克了,我们点击复制密码后,就开始连接这个VPS。首先右键开始菜单, 在弹出的选项中打开 Windows Powershell,然后输入命令。

ssh [email protected]

把命令中的 8.8.8.8 修改成你自己的主机 IP,回车执行命令。然后会提示你从未连接过这个主机,你确定要继续连接吗,这里我们输入 yes 回车。接着会让你输入密码,注意为了保护密码安全,我们输入的密码是不显示的,不要以为没有输入进去,输入(看不见的)密码后直接回车提交。

Vultr 默认生成的密码非常复杂,所以选择复制密码后我们在 Powershell 窗口鼠标右键一下就已经粘贴进去了。

这是我们登陆成功后的样子,如果想要退出登陆需要输入exit命令。

二、V2Ray 安装

bash <(curl -L -s https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)

官方提供的安装脚本让“一键安装”成为可能,复制这行命令,在 PowerShell 中右键粘贴,然后回车执行。

注意,这里的端口号和 UUID 我们需要记下来。就这样,安装过程结束~我们使用一条命令运行 V2Ray。

systemctl start v2ray

三、V2Ray使用

V2Ray 支持各种平台,这里以 Windows 平台为例,演示如何使用。

3-1下载

我们在 Github 下载 V2Ray,打开链接 https://github.com/v2ray/v2ray-core/releases ,往下翻找到 v2ray-windows-32.zip,意思为这个是 Windows 32位系统的客户端,如果你的系统是 64 位当然可以选择 v2ray-windows-64.zip。

3-2配置

下载完成后,我们找一个地方进行解压,这里我是在 C 盘创建一个文件夹 tools,然后把 V2Ray 解压到其中。进入我们解压好的文件夹修改 config.json 文件,删除原先的内容并完整的复制下方内容粘贴进去。

{
  "log": {
    "loglevel": "info"
  },
  "inbounds": [
    {
      "port": 1080,
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      },
      "settings": {
        "udp": true // 开启 UDP 协议支持
      }
    },
    {
      "port": 8080,
      "protocol": "http",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      }
    }
  ],
  "outbounds": [
    {
      "tag": "proxy-vmess",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "8.8.8.8", // 服务器的 IP
            "port": 443, // 服务器的端口
            "users": [
              {
                // id 就是 UUID,相当于用户密码
                "id": "7d4c4078-e129-416b-a483-cf5713a96a66",
                "alterId": 4
              }
            ]
          }
        ]
      }
    },
    {
      "tag": "direct",
      "settings": {},
      "protocol": "freedom"
    }
  ],
  "dns": {
    "server": [
      "8.8.8.8",
      "1.1.1.1"
    ],
    // 你的 IP 地址,用于 DNS 解析离你最快的 CDN
    "clientIp": "203.208.40.63"
  },
  // 配置路由功能,绕过局域网和中国大陆地址
  "routing": {
    "domainStrategy": "IPOnDemand",
    "rules": [
      {
        "type": "field",
        "domain": [
          // 默认跳过国内网站,如果想要代理某个国内网站可以添加到下列列表中
          "cnblogs.com"
        ],
        "outboundTag": "proxy-vmess"
      },
      {
        "type": "field",
        "domain": [
          "geosite:cn"
        ],
        "outboundTag": "direct"
      },
      {
        "type": "field",
        "outboundTag": "direct",
        "ip": [
          "geoip:cn",
          "geoip:private"
        ]
      }
    ]
  }
}

alterId 的值需要服务端和客户端一致,否则无法正常使用,如果没有填写则默认值为 0。一般情况下使用自动脚本安装服务端 V2Ray 生成的配置文件中 alterId 值为 64,值的大小并不必然的影响安全性。

上述配置中仅需要把 IP、 port 和 id(UUID) 修改成之前安装时的内容,保存后直接运行 v2ray.exe。把你的系统代理设置成 socks5 127.0.0.1:1080 或者 http 127.0.0.1:8080 ,就可以正常使用了。我的上述配置会自动跳过国内网站和IP,也就是说即使你开了全局代理访问百度依然是直连。

此时此刻 V2Ray 客户端已经正常运行,我们配置一下系统,让它使用我们的代理即可。

这里一张图讲解 Win10 设置系统代理的方法:

打开设置——网络和 Internet——代理,进行如上设置即可。可以看的出来,这里我是使用的 http 127.0.0.1:8080,而不是 socks 协议,因为系统对 http 代理的支持更好。

设置完成后,你对一切都非常满意,但是觉得 V2Ray 的那个黑糊糊的命令行窗口十分碍眼,OK,关闭这个窗口,双击 wv2ray.exe 运行即可。二者完全一样,只是 wv2ray.exe 没有窗口。

3-3开机运行

最后你还想要它能开机自己启动,而不是自己每次都要点,so easy。按下快捷键 WIN+R,输入 shell:startup 回车,这个时候会打开一个文件夹,这个文件里中放入任何程序都会开机时运行。

当然不能直接把 wv2ray.exe 直接放进去,我们对着它右键——创建快捷方式,把创建的快捷方式放入到那个文件夹中就完成了。

四、常见问题

这里总结评论区的常见提问。

已经安装过了,如何查看 UUID 和 Port?

类 Unix 系统(包括 Linux 和 Mac 系统),其 V2Ray 的配置文件都在 /etc/v2ray/config.json 下,我们对 V2Ray 服务端的 UUID 和 Port 都在这里配置,所以我们查看配置也是在这里查看,执行下列命令查阅即可。

# 查看端口 Port
cat /etc/v2ray/config.json | grep port
# 查看 id (UUID)
cat /etc/v2ray/config.json | grep id

想了解如何在安卓手机上使用 V2Ray,请参考 V2Ray安卓端使用教程


评论

《“面向新手的V2Ray搭建指南”》 有 202 条评论

  1. 孙小鱼 的头像
    孙小鱼

    您的连接不是私密连接
    攻击者可能会试图从 http://www.google.com 窃取您的信息(例如:密码、通讯内容或信用卡信息)。了解详情
    NET::ERR_CERT_COMMON_NAME_INVALID

    您可以选择向 Google 发送一些系统信息和网页内容,以帮助我们改进安全浏览功能。隐私权政策
    http://www.google.com 通常会使用加密技术来保护您的信息。Google Chrome 此次尝试连接到 http://www.google.com 时,此网站发回了异常的错误凭据。这可能是因为有攻击者在试图冒充 http://www.google.com,或 Wi-Fi 登录屏幕中断了此次连接。请放心,您的信息仍然是安全的,因为 Google Chrome 尚未进行任何数据交换便停止了连接。

    您目前无法访问 http://www.google.com,因为此网站使用了 HSTS。网络错误和攻击通常是暂时的,因此,此网页稍后可能会恢复正常。

    1. 显然是 DNS 污染造成的

    2. 孙小鱼 的头像
      孙小鱼

      我这个搭建的是错误的嘛?我按照好几个教程都试了一遍,最后都是都是这个结果,我不知道为什么,现在还是没有成功 ,我以前没接触过linux 对命令不熟悉

    3. 你的服务端搭建应该是成功的,请确认你的客户端配置是否和我一致,按照文中的客户端配置是可以避免 DNS 污染的。

    4. 孙小鱼 的头像
      孙小鱼

      嗯嗯,好的

    5. 我想问一下国内的阿里云轻量级服务器可以搭建v2ray吗

  2. ArrayCats 的头像
    ArrayCats

    在用内置ssh连接VPS时无法用键盘输入密码 复制粘贴也不行 这该怎么办呢

    1. 请注意阅读文章,我已经对此进行了说明,Linux 系统为了避免密码泄露,不显示密码这是一种防护措施。

      造成的效果就是,当你输入内容不会进行显示,很多新人都对此感到困惑,所以我在文中特意进行说明。你直接输入密码便是,之后回车自然会提交密码进行登陆的。

    2. ArrayCats 的头像
      ArrayCats

      您好 谢谢您之前的解答 粗心给您造成了麻烦很抱歉
      但是仍然出现了问题,在修改了config.json 文件后运行v2ray.exe时只是出现了一个类似dos的窗口闪了一下
      截图看了一下内容为:
      V2Ray 4.5.0(Po) 20181116
      A unified platform for anti-censorship
      twitter的访问界面是:
      无法访问此网站 twitter.com 的响应时间过长。
      请试试以下办法:

      检查网络连接
      检查代理服务器和防火墙
      运行 Windows 网络诊断
      ERR_CONNECTION_TIMED_OUT

      使用systemctl status v2ray检查服务端的结果是
      Active: inactive (dead)
      请问为什么会这样

    3. 你的服务端 v2ray 没有启动,如果你使用自动脚本安装,并且没有修改配置文件,那么使用命令 systemctl start v2ray 运行即可。

      问题的排除需要提供很多信息,总的来说是一个很麻烦的事情,我上述给出的也只是经验推断。请完整的按照教程进行,使用相同的环境和配置,包括最后的配置和使用。

  3. root@vultr:~# bash <(curl -L -s https://install.direct/go.sh)
    Installing V2Ray v on x86_64
    Downloading V2Ray.
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0curl: (7) Couldn't connect to server
    Failed to download! Please check your network or try again.
    一键安装行不通啊,请问这个应该如何操作呢?

    1. Hi~换个时间段重试,或者删除重开一台。

      网络问题原因比较复杂,适合这种简单粗暴的方法。

    2. 我猜测你买的可能是2.5刀一个月的VPS,那个仅支持ipv6,而除非你身处教育网中,是不能使用ipv6的。
      买3.5刀一个月的VPS即可解决这个问题。

  4. 博主你好,请问ssh 连接主机IP 显示超时怎么办?

    1. 尝试命令 ping ip,如果出现请求超时 Time out,删除当前 VPS 重新开一台。

    2. 感谢回复。ping ip成功,可以连接,但是使用ssh连就超时。

    3. 如果你是新开的主机遇到这种问题的话,那你这个情况就很有趣了,目前反应这种情况的人并不多。

      我也曾遇到过,解决方案是:使用 Vultr 提供的网页控制台 console 登陆进 VPS,并修改主机的 SSH 端口然后配置密钥登陆而不是密码登陆,最后以密钥的方式在新端口连接主机成功。

      如果你不知道上述如何操作,请使用搜索引擎搜索关键词 “ssh 修改端口 密钥登陆” 获取帮助。

  5. console控制台打开没用,出现noVNC ready: native WebSockets, canvas rendering就一直也没有反应

    1. 这个原因相对复杂,两个主要可能的关键点:你是否使用主流浏览器访问 Vultr 的 console,建议使用最新版的 Chrome。其二是 VPS 系统的主机出了问题,这需要你更详细的提供关于主机的说明。使用哪家 VPS 商,什么系统,创建 VPS 实例后进行了什么操作?

    2. 首先感谢耐心回复。问题有点多,我一一说。本人是在这方面的小白,大部分都不怎么懂,过程是根据你的指南进行操作的,包括在哪里购买的vps。
      从头说,我现在删除了之前的主机,重新建了个洛杉矶的主机。用ssh连接时还是会显示连接超时,但是其中试了几次会出现叫我输入密码的命令行,我右键粘贴回车之后却又是弹出连接超时。
      在看到你建议我使用: “使用 Vultr 提供的网页控制台 console 登陆进 VPS,并修改主机的 SSH 端口然后配置密钥登陆而不是密码登陆,最后以密钥的方式在新端口连接主机成功” 这个方法后,我百度了,并且找到这篇文章 https://www.cnblogs.com/subsir/articles/2566114.html
      说实话,一开始我并不知道这是啥,看得一头雾水。百度一番才又知道SecureCRT是windows下的一个软件。我照着写了下去,那时候网页console还能用,但是由于对Linux系统语言不熟悉,我并不能理解我打的命令行能否运行。具体情况是我逐行打了也没有出现什么反应。
      写到这里,我再次打开console又可以用了,但是对于你说的那个办法我在那篇文章也不怎么看得懂。。。所以能不能劳烦你解释得更具体一点,或者发邮件给我你的联系方式,我再求教?
      感谢!

    3. 完全理解你的心情,大家都是从新手摸索过来的,这个对于目前阶段的你是有点复杂,而且网上教程良莠不齐,很容易陷入迷途。老实说你遇到的问题真的很小众,算是超纲题了。

      把你的 vps 信息发送给我,我明天会帮你配置服务端,配置完成后会把结果发给你邮箱,你自行配置客户端。

    4. 很感谢,我已经将详细信息发给了你的outlook邮箱。
      等待你的回信。

    5. 我无法使用密码登陆你的主机。

      看样子你使用 console 连接主机后,进行了一些密钥操作,我估计是 /etc/ssh/ 下文件权限的问题。

      我并不期望你去解决这个问题,最简单的方法就是删掉重开吧。

  6. 修改完config.json,到打开v2ray这一步,cmd窗口一闪而过消失,截图内容为:a unified platform for anti-censorship。

    服务器上v2ray已运行:[root@vultr ~]# ps aux|grep v2ray
    root 811 0.0 1.5 116036 7940 ? Ssl 13:26 0:00 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
    root 1312 0.0 0.1 112704 972 pts/2 S+ 13:46 0:00 grep –color=auto v2ray
    百度结果说可能是服务端与客户端版本不对的原因?请指教

    1. 一闪而过说明客户端 config.json 配置存在格式错误,v2ray 因此无法运行,完整复制文中配置,修改时请保持原有格式。

      可以在 v2ray 文件夹下按下 shift 同时单击鼠标右键,在当前路径打开 powershell(或cmd),然后在命令行窗口下执行 ./v2ray.exe ,这样就可以获取到程序运行出错的信息。

    2. 对,如果解压完成以后不修改任何配置是不会是闪退的。
      我按照您说的方式捕获到的错误信息为:
      A unified platform for anti-censorship.
      main: failed to create server > v2ray.com/core/app/router: this rule has no effective fields
      这是什么原因呢?

    3. 解压完成后不进行任何修改是无法使用的。

      请完整复制我文中的客户端配置,清空原有 config.json 内容然后粘贴进去。

      其中你仅仅需要修改 IP/Port/Id,注意修改 IP/Id 等信息时,保留原有格式,如引号,和末尾逗号。

    4. 完整复制您的代码,但不更改直接运行也是闪退。

    5. 抱歉,经过检查是配置存在问题,现在已经修正这个问题,重新复制目前的配置。

  7. [root /]# systemctl status v2ray
    ● v2ray.service – V2Ray Service
    Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Mon 2018-11-19 23:08:44 CST; 1min 31s ago
    Process: 6370 ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json (code=exited, status=23)
    Main PID: 6370 (code=exited, status=23)

    Nov 19 23:08:44 host.localdomain systemd[1]: Started V2Ray Service.
    Nov 19 23:08:44 host.localdomain systemd[1]: Starting V2Ray Service…
    Nov 19 23:08:44 host.localdomain v2ray[6370]: V2Ray 4.5.0 (Po) 20181116
    Nov 19 23:08:44 host.localdomain v2ray[6370]: A unified platform for anti-censorship.
    Nov 19 23:08:44 host.localdomain v2ray[6370]: main: failed to create server > v2ray.com/core/app/router: this rule has no effective fields
    Nov 19 23:08:44 host.localdomain systemd[1]: v2ray.service: main process exited, code=exited, status=23/n/a
    Nov 19 23:08:44 host.localdomain systemd[1]: Unit v2ray.service entered failed state.
    Nov 19 23:08:44 host.localdomain systemd[1]: v2ray.service failed.

    请问这是什么故障?谢谢!

    1. systemctl 提供的状态信息实际上非常有限,请附上 tail /var/log/v2ray/error.log 命令的信息。

    2. 我跟之前那位问题是一样的,都是Process: 20860 ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json (code=exited, status=23),进入log目录只有v2ray空文件夹,里边没有任何日志信息

  8. 用v2rayN图形界面如何配置呢,传输协议是选kcp还是tcp

  9. Webster Hu 的头像
    Webster Hu

    您好,请问如何在其他设备(包括iOS设备、Android设备)上配置V2Ray代理?

    1. 安卓设备使用 BifrostV,界面简单易懂不需要太多说明,当你理解这篇文章后,这个软件你上手就会用。ios 设备使用 Shadowrocket。

    2. Webster Hu 的头像
      Webster Hu

      请问经常断流是怎么回事,属于正常现象吗?
      这个情况发生在看油土鳖视频的时候,几分钟到十几分钟会发生一次,此时推特等等网站也打不开,过一会儿又会恢复。

    3. 我也是这样的…..

  10. 您好 我出现了和chelly 一样的问题

    1. 是防火墙的问题,解决方法很讽刺,就是连接 SSH 时使用代理。

      或者你可以更换一个网络环境重试,比如使用别家网络,手机共享热点给电脑使用,或者干脆在手机上使用 SSH客户端连接主机。

      正如我之前所说,我遇到过同样的问题,我设定使用 SSH 密钥登陆后就解决了,目前不确定这个方法是否普遍有效。

    2. 我试图修改ssh 端口 vim /etc/ssh/sshd_config 发现配置文件每一行前面全是#,这是正常的?

    3. 这是正常的,# 表示这行内容是注释,是给人看的便于理解,对配置做解释。sshd_config 中注释的配置都是默认配置,所以做不做注释产生的效果是一致的。

      当你需要修改配置的时候,删掉前面的 #,然后再做修改就能生效,比如:
      # Port 22 这是一行注释,这行配置不生效,但表明默认配置是在 22 端口开启 ssh
      Port 22 # 这是一行生效的配置,由于和默认配置一致,当然并没什么用
      Port 2222 # 这是一行生效的配置,sshd 监听 2222 端口。

      当你更多的使用 Linux 系统时,你会发现很多地方都有这种注释,这是一种很友好的提示。

    4. 谢谢 风逝 耐心解答,问题找到,主机建立的 ip被墙了,删除西雅图主机,换了加拿大的就对了

    5. 那你遇到的问题并不和 chelly 一致,刚刚我说的是 ssh 无法连接但是可以 ping 通的情况,如果使用全国 ping 在线工具都无法 ping 通,那么是确认 IP 被墙了。

    6. 是一样的 可以ping通,但是端口全部关闭,符合我给那个网址说的TCP阻断与ICMP阻断

    7. 出了这行 PermitRootLogin yes 没有标注#,其他全部前面有注释?

    8. 另外在他提供的view视窗里面用vim 没有命令行模式,不知道如何保存,使用w保存命令看不到任何反馈,用esc也没有命令行出现,光标一直停留在字符上面。

    9. 先输入 : 然后输入 wq ,回车执行保存并退出

      新人建议使用 nano 编辑器,容易入手。vim 起初可能会让你崩溃,学习成本高。

      nano /etc/ssh/sshd_config

  11. https://blog.csdn.net/qq_37977106/article/details/81143137
    我看了这篇文章也测试了我建立的主机ip 66.42.74.236,全部关闭,是否是这个原因呢

  12. https://blog.csdn.net/qq_37977106/article/details/81143137

    主机IP 66.42.74.236
    符合他说的情况 是否因为ip被墙

  13. 能pingVultr的主机,丢包率也不高,22端口扫描到已开启;SSH死活连不上

    1. 建议删除重开,选择其他地区。

  14. 九十九 的头像
    九十九

    你好,有mac的配置说明吗?能否说一下,谢谢。

    1. 你好,文中展示的配置理论上都是通用的,你可以尝试一下。

  15. boluohong 的头像
    boluohong

    ãһСףҵ
    ҸĽ̳ʹputtyV2RAY
    ҵVPSǰ߹Centos 7 x86_64 bbr ĸԴ
    Ϊ֮ǰдSSҵĸѡϵͳ
    PUTTYԶµV2RAY
    дļIDͶ˿ڶȷûд
    systemctl status v2ray
    Ϊ
    v2ray.service – V2Ray Service
    Loaded: loaded (/etc/systemd/system/v2ray.service; disabled; vendor preset: disabled)
    Active: active (running) since Sat 2019-01-19 21:55:53 EST; 16s ago
    Main PID: 3335 (v2ray)
    CGroup: /system.slice/v2ray.service
    3335 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json

    Ҳйصǽ
    ȻWIN7ͻˣ£
    a unified platform for anti-censorship
    2019/01/20 10:57:28 [warning] v2ray.com/core: v2ray 4.13.0 started
    ȻGOOGLE

    ȻҲǻSS
    ҿҵSSgoogle Ҳ
    ssʾ
    system.exception:˿ѱռ
    at Shadowsocks.Controller.Listener.Start(Configuration config)
    at Shadowsocks.Controller.ShadowsocksController.Reload
    ȻֻSSϣgoogle

    ~

  16. boluohong 的头像
    boluohong

    天哪,居然出现了乱码,我来重新留言。
    博主你好,我是一个小白
    我用putty搭载V2RAY
    我的VPS系统߹Centos 7 x86_64 bbr
    用github的代码我成功下载了最新的版本,并写好配置文件,注意了ID还有端口
    然后我用systemctl status v2ray检测,结果如下
    v2ray.service – V2Ray Service
    Loaded: loaded (/etc/systemd/system/v2ray.service; disabled; vendor preset: disabled)
    Active: active (running) since Sat 2019-01-19 21:55:53 EST; 16s ago
    Main PID: 3335 (v2ray)
    CGroup: /system.slice/v2ray.service
    3335 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json

    然后我在WIN7客户端开V2RAY,结果是
    a unified platform for anti-censorship
    2019/01/20 10:57:28 [warning] v2ray.com/core: v2ray 4.13.0 started

    然后我登不上GOOGLE
    因为之前我搭载了SS,我尝试开SS
    电脑端的SS连不上GOOGLE,提示如下
    system.exception:端口已被占用
    at Shadowsocks.Controller.Listener.Start(Configuration config)
    at Shadowsocks.Controller.ShadowsocksController.Reload
    但是移动端的SS是可以的

    不知道是什么缘故,求解答

  17. boluohong 的头像
    boluohong

    博主我又来了,我已经把和SS冲突的端口改好了。
    我认真比对之后,发现有一个点值得注意。
    我用systemctl status v2ray检测,结果如下
    v2ray.service – V2Ray Service
    Loaded: loaded (/etc/systemd/system/v2ray.service; disabled; vendor preset: disabled)
    Active: active (running) since Sat 2019-01-19 21:55:53 EST; 16s ago
    Main PID: 3335 (v2ray)
    CGroup: /system.slice/v2ray.service
    3335 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json

    Loaded: loaded (/etc/systemd/system/v2ray.service; disabled; vendor preset: disabled)这里面这一行始终是disable的。
    我看你的测试是able的。
    或许问题就出在配置文件之中?
    如果可以的话,请用邮件回复给我,因为邮箱会提醒,谢谢~

    1. 一个端口只能被一个程序使用,当你给 V2Ray 使用时,就无法给 ss 使用,当然这很好解决,端口可以是六位数以内的任意数,只是有些端口为了便于交流,有了一个习惯性约束固定下来。

      服务端和客户端的两台主机同样如此,当提示端口被占用后,修改端口即可。

      /etc/systemd/system/v2ray.service; disabled 这里的 disable 意为没有设定开机启动,使用 systemctl enable v2ray 命令启用它。

  18. 怎样查看uuid和端口号啊?

    1. 文章中有写到,在使用自动脚本安装 V2Ray 的时候会显示 UUID 和 PORT。

      当你安装时没有注意看,之后想查看,则需要在配置文件中查看。使用命令 cat /etc/v2ray/config.json,注意关键字 id 和 port 分别对应 uuid 和端口号。

    2. Xiaochen XIAO 的头像
      Xiaochen XIAO

      请问,在苹果mac中如何找到UUID和PORT呢?在哪个位置?

  19. 小白一个,学习的第二天,之前看网上教程按的ss加的混淆,最近看见v2ray的vmess更好些,请问怎样实现的国内直连,相比https://toutyrater.github.io/basic/routing/cndirect.html又加了些东西,更安全了吗?”proxy-vmess”和“vmess”有撒区别,没搜到”proxy-vmess”。我用的搬瓦工的debian-8-x86_64,现在速度不如之前ss,几乎就我今早上看youtube能到3000+kb看个720p平常就300+kb,。。。。。。因特殊地区。。。。163主站www。163.com和百度网盘分享的连接都打不开,怎样单独加进去。

    1. Hi~简单的说安全性上几乎没有区别,tag 为 proxy-vmess 仅为标注名称,这么写只是我的命名习惯。

      虽然 V2Ray 内置路由功能可以国内直连,但是目前不建议这么做,更好的做法是使用浏览器插件SwitchOmega 实现区分国内外网站代理,可以更灵活的方式创建代理规则。你可以参考 SwitchOmega 使用教程 使用此插件。

    2. 谢谢

  20. AMERIDIOT 的头像
    AMERIDIOT

    请问下博主iOS Shadowrocket怎么设置?算法、TLS、允许不安全、混淆这几个选项不知道从哪看= =

    1. 最常见的情况下,加密算法是 auto,传输协议是 tcp,tls 勾选上。允许不安全的这个选项在你不明白是什么意思的情况下就关闭。

  21. 博主您好,我按您的配置之后能正常使用,但是速度有点慢,有没有什么方法可以加速的,我之前用的ss感觉快很多(同一台vps)。
    我的系统是Ubuntu18.04

    1. 你好,一般情况下 ss 和 v2ray 的速度应该是不存在明显区别的,主要影响网速的是服务器和本机之间的网络情况。

      鉴于服务器的问题可以增加 bbr 加速,若是本机的配置太过“花里胡哨”,请把那些多余的配置清除掉,并没有证据证明一些选项可以增加安全性,大部分配置尽量遵循本文或者官方默认配置。

    2. 我也觉的明显比ss慢了(已经装了BBR加速),而且电脑能上可是手机不能上…

  22. 我有一个virmach的服务器配置正常了,能上YouTube,另一个Vultr的服务器本地v2ray.exe打开后提示:
    2019/02/01 04:03:41 [Warning] [4121312958] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [dial tcp XXX.XXX.XXX:YYYY: i/o timeout dial tcp XXX.XXX.XXX:YYYY: operation was canceled] > v2ray.com/core/common/retry: all retry attempts failed

    请问怎么解决呢,哭了,明明一样的操作,另一个服务器就没问题

  23. ssh: connect to host xxx.246.71.xxx port 22: Connection timed out
    你好,我完全小白一个,按照您的方法买了vps,可是无法连接上,显示连接超时
    请问怎么解决?? 🙁

    1. 换了几台vps也如此 :(:(

    2. 你好,按照经验来看主要有两种可能,一是这台机子本身 ip 已经被墙了,可以通过 ping 来测试。虽然你说了换台机子,但是被墙可能是一个区域,比如当前洛杉矶许多 ip 都被墙,你可以换纽约的进行尝试。

      第二点就相对麻烦和少见,这在全国范围内并不普遍,则是tcp 阻断,你能够 ping 通,但是无法 ssh 连接。

      可以持续关注本文,有空会对这种情况进行总结性的说明和自检。

    3. 谢谢!我换了一台vps后可以了,
      但输入密码时直接复制,然后ctrl+v竟然不行?
      重复数次,并换了机子,仍然提示:Permission denied, please try again.

    4. 这就是终端操作的常识性问题了,我在文中强调过,你要想用快捷键就 shift ctrl v 三个键,或者鼠标右键粘贴,或者鼠标中间的滚轮按一下。

      这三种方式是终端下粘贴的常见方式。

  24. [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://IP/): 301 Moved Permanently > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed

    v2ray偶尔可以用但是还是经常性出现这个

    1. 没事了,我脑子不好使。

    2. 你好,你这个问题怎么解决的,我一直卡在这

    3. 这个是怎么解决的? 大佬

  25. 你好,我也出现SSH不通的问题了,用洛杉矶,日本,新加波的都不行,ping没问题,因为对命令不熟悉,不知道该怎么办了,请问能帮帮我吗。

    1. ssh: connect to host xxx.xxx.66.xxx port 22: Connection timed out
      ssh: connect to host xxx.xxx.153.xxx port 22: Connection timed out

    2. 日本、新加坡机房本身就遭到了大面积屏蔽,洛杉矶最近也受到了干扰。换个冷门一点的机房尝试,比如纽约。

  26. 嗯,换纽约的这样:
    The authenticity of host ‘68.232.xxx.xx(68.232.xxx.xx)’ can’t be established.
    ECDSA key fingerprint is SHA256:g8Oxdh8awlqItdn21TpSlkf0u4OxXG3MoHsKgxRmqVo.
    Are you sure you want to continue connecting (yes/no)? y
    Please type ‘yes’ or ‘no’: yes
    Warning: Permanently added ‘68.232.xxx.xx’ (ECDSA) to the list of known hosts.
    [email protected]‘s password:
    Permission denied, please try again.

    1. 提示说的很清楚了,你的密码错误,请使用 shift+ctrl+v 快捷键粘贴密码,或者选中复制后,单击鼠标右键即可粘贴。前面的应该输入完整的 yes 而不是 y。

  27. 我是新手。。。
    请问ip是两个ip都要改为vps的ip么

    1. 客户端的配置文件中,仅需要修改以下部分:

      "vnext": [
                {
                  "address": "8.8.8.8", // 修改成你的 IP
                  "port": 443,
                  "users": [
                    {
                      "id": "0d654428-ade4-422t-aeae-b0ffeaf2be6", //和服务端一致
                      "alterId": 64 // 需要和服务端一致
                    }
                  ]
                }

      这几项需要修改和注意的部分,我都进行了标注。

  28. 客户端的配置文件中的端口号是否需要修改?(文中没有明确标注)未修改无法访问Google,修改可正常使用。

    1. 客户端的端口也需要修改,虽然已经在下文中说明,但没有在配置中进行标明是一个疏忽,谢谢提醒。

  29. Xiaochen XIAO 的头像
    Xiaochen XIAO

    老师好!请问我已经安装过了V2Ray之前也配置过了,如今我只是换了一个服务器。我不想执行您的第二步、安装V2Ray的工作,可是您第二步中从命令行获取的端口号(Port)和UUID我就没办法知道了。请问有什么办法可以不执行安装命令就知道端口号和UUID吗?
    万分感谢!

    1. 你好,换了的服务器同样需要部署 V2Ray,如果服务器上已经部署了,需要查看 uuid 和 port 信息,可以使用命令 cat /etc/v2ray/config.json。

      这将打印整个 v2ray 配置文件,请寻找关键字 id、port,关键字后面的内容将是你需要的。

  30. 请问这是为什么?完全按照教程, 还换了几次服务器
    2月 12 18:58:32 cjoier v2ray[22842]: 2019/02/12 18:58:32 [Warning] [108956003] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic
    > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination
    > v2ray.com/core/common/retry: [dial tcp 45.77.184.108:28771: i/o timeout dial tcp 45.77.184.108:28771: operation was canceled] > v2ray.com/core/common/retry: all retry attempts failed

    1. 根据你所提供的信息来看,是客户端根本没连接上服务端,请确认服务端正常运行,且客户端配置的 ip、端口、id 填写正确。

    2. 谢谢
      请问有没有服务器已经被墙的可能呢?

    3. 整个服务端部署操作是需要你 SSH 连接进行的,当你可以正常 SSH 服务器的时候,服务器就没有被墙。

    4. 确实是被墙了…
      连换几台才行
      vultr网页端的console可以连上并发送命令
      但本机的ssh客户端连不上
      谢谢您

    5. Vultr 的网页端 console 并不是你的电脑和服务器的连接,所以只有本机 ssh 才能测试连通。

  31. Hanbin Huang 的头像
    Hanbin Huang

    完全按照你的教程搭建v2ray,双击v2ray的出现黑框显示
    V2Ray 4.15.0 (Po) 20190207
    A unified platform for anti-censorship.
    2019/02/12 20:10:28 [Warning] v2ray.com/core: V2Ray 4.15.0 started

    设置完win10代理,然后还不能连外网是怎么回事啊?vutrl亚特兰大的服务器

    1. 你好,你这个黑框只有这些内容吗?没有任何日志内容,说明代理并没有设置成功,并没有连接经过 V2Ray,请检查系统代理设置方面完全一致。

  32. wv2ray.exe总是被杀毒软件识别为木马或者蠕虫病毒……请问此程序是否真的安全?

    1. 如果从官方下载,安全性是可以保证的,V2Ray 是开源项目,不会插入病毒。

      报毒的如果是 360 的话,请直接卸载。

  33. 你好,请问我用记事本按照你的要求修改了config.json,但是客户端还是闪退?之前我使用了systemctl start v2ray这个命令按了回车但是没有显示什么?这表示打开了吗?

  34. 配置完config.json 打开v2ray.exe 一闪而过 wv2ray.exe 也毫无反应
    请问怎么解决?

    1. 最常见的问题就是配置文件格式错误,没有遵从json语法。

  35. 您好,我刚才在windows端按照您的配置装上了v2ray,并且在第一次连接的时候连接成功了。接着我按照您的自动开启的办法,重启电脑之后,就发现v2ray连接不上了,在同网络下的安卓端和ios端无问题,在另一台windows设备上,按照同样的方法,则可以连上。
    命令行显示:
    V2Ray 4.18.0 (Po) 20190228
    A unified platform for anti-censorship.
    2019/03/01 19:55:37 [Warning] v2ray.com/core: V2Ray 4.18.0 started
    然后就没有任何反映了,代理服务器开启也无效。

    1. 重启后连接无效,有尝试过再次运行 v2ray.exe 吗?可能是安全软件拦截了 wv2ray.exe 的开机启动

    2. 解决了吗,我也是这样

  36. 博主,你好。我是小白,冒昧请教。当我在powershell中输入IP,再输入密码后,一开始提示被拒绝。当反复输入后变成这样:
    PS C:\Users\hugozhang> ssh [email protected]
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ECDSA key sent by the remote host is
    SHA256:EE2f4wQXe+alxSkRR9tIvIgbb2btxpVGaXhxyRbqyOA.
    Please contact your system administrator.
    Add correct host key in C:\\Users\\hugozhang/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in C:\\Users\\hugozhang/.ssh/known_hosts:1
    ECDSA host key for 144.202.17.198 has changed and you have requested strict checking.
    Host key verification failed.
    PS C:\Users\hugozhang>

    请问这是什么原因呢?
    非常希望得到你的解答。

    1. 执行命令 rm ~/.ssh/known_hosts ,然后重试连接。

  37. WongYue 的头像
    WongYue

    你好,我服务器端用官方提供的脚本bash v2ray.com/core/proxy/http: connection ends > context canceled
    2019/03/03 22:20:23 [Info] [3238203920] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:www.youtube.com:443
    2019/03/03 22:20:23 [Info] [2230491209] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:www.youtube.com:443
    2019/03/03 22:20:24 [Info] [3238203920] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/freedom: failed to open connection to tcp:www.youtube.com:443 > v2ray.com/core/common/retry: [dial tcp 127.0.0.2:443: connectex: No connection could be made because the target machine actively refused it.] > v2ray.com/core/common/retry: all retry attempts failed
    2019/03/03 22:20:24 [Info] [2230491209] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/freedom: failed to open connection to tcp:www.youtube.com:443 > v2ray.com/core/common/retry: [dial tcp 127.0.0.2:443: connectex: No connection could be made because the target machine actively refused it.] > v2ray.com/core/common/retry: all retry attempts failed
    2019/03/03 22:20:24 [Info] [2230491209] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/http: connection ends > io: read/write on closed pipe
    2019/03/03 22:20:24 [Info] [3238203920] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/http: connection ends > io: read/write on closed pipe

    忙活老半天了,搞不懂怎么回事,非常希望得到你的解答><

  38. Fishguy 的头像
    Fishguy

    Hi there
    First, thank you so much for making such an effort to help people!
    I am not a Chinese but live in China. So I realize that I have to use v2ray or at least shadowsocks. I know v2ray or vmess is better so I followed your tutorial.
    However, I don’t really understand why I need to use linux to install v2ray on Windows10. How could I do that? So I found that ubuntu can be used as Windows Subsystem Linux (WSL). I followed your instruction to install v2ray. Installation was fine and complete but when I run “systemctl start v2rary”, it didn’t run and showed error message like this.
    “System has not been booted with systemd as init system (PID 1). Can’t operate.”
    So I tried so hard to figure this out. In the end, I found that WSL does NOT support systemd and systemctl. So what can I do?
    Thanks in advance!

  39. Fishguy 的头像
    Fishguy

    Hi there
    First, thank you so much for making such an effort to help people!
    I am not a Chinese but live in China. So I realize that I have to use v2ray or at least shadowsocks. I know v2ray or vmess is better so I followed your tutorial.
    However, I don’t really understand why I need to use linux to install v2ray on Windows10. How could I do that? So I found that ubuntu can be used as Windows Subsystem Linux (WSL). I followed your instruction to install v2ray. Installation was fine and complete but when I run “systemctl start v2rary”, it didn’t run and showed error message like this.
    “System has not been booted with systemd as init system (PID 1). Can’t operate.”
    So I tried so hard to figure this out. In the end, I found that WSL does NOT support systemd and systemctl. So what can I do?

    Thanks in advance!

  40. I understand what you said, you should know you live in china that’s mean your computer can’t access Google etc..So you need a server out of china to help you access these sites.

    This process is:you -> server(Depoly some tools like vpn, here is v2ray) -> Google.

    So you understand? YOU CAN’T DEPOLY V2RAY IN YOUR COMPUTER.Even if the deployment is successful, it is useless.Don’t try to do this. You need to buy a VPS, such as Vultr.

    By the way, don’t repeat comments. The commet that you submit is vaild, but it is not display for cache, Please wait a hour.

    Forgive me poor English(Maybe you can help me learn english 🙂 ahaha ).
    Best regrad!

    1. Fishguy 的头像
      Fishguy

      Thanks so much! 风逝
      As you can see, I posted the same questions 3 times, because I didn’t see my question posted. This also indicates how desperate I am. 🙂
      However, my question is not well addressed so I still have the same problem and the same question. Let me make it clear one more time (Sorry to ask you again). For you, no need to write in English. I can translate or ask my friend here to translate it for me. Just write in Chinese, if that is easy for you 🙂

      1. I bought VPS using Vultr. I connected my computer to my server or VPS which is in LA using SSH in powershell.

      2. I intalled v2ray using Ubuntu as Windows Subsystem Linux (WSL). Installation was complete and looks fine. I wrote down port number and UUID.

      3. I started v2ray in Ubuntu by typing “systemctl start v2ray”. But it didn’t work. I got an error saying like this.
      “System has not been booted with systemd as init system (PID 1). Can’t Operate.”

      4. I searched more information and found that Ubuntu of WPS does not support “systemd and systemctl”. So what can I do? How did you install v2ray using Ubuntu or Linux on Windows system?

      Number 4 is my actual question. Please help me on this.

      Thank you so much!!

    2. systemd 的主要作用是保持 v2ray 处于启动状态,当进程崩溃时可以自动运行。

      这意味着你可以不使用 systemd 管理 v2ray,有其他优秀的守护进程服务如 supervior。

      当然,你也可以不用守护进程服务,仅仅运行 v2ray 程序本身,通过命令 /usr/bin/v2ray 命令运行。你可以通过 /usr/bin/v2ray 获得更多有关命令行参数的用法。

  41. Youngnam Jin 的头像
    Youngnam Jin

    Hi there

    First, thank you so much for making such an effort to help people!
    I am not a Chinese but live in China. So I realize that I have to use v2ray or at least shadowsocks. I know v2ray or vmess is better so I followed your tutorial.
    I made my VPS in Vultr and successfully connect my computer to the server with ssh in powershell.

    However, I don’t really understand how I can use linux to install v2ray on Windows10. How could I do that? Then, I found that ubuntu can be used as Windows Subsystem Linux (WSL).
    I followed your instruction to install v2ray by ubuntu as WSL. Installation was fine and complete.
    But when I run “systemctl start v2rary”, it didn’t run and showed error message like this.

    “System has not been booted with systemd as init system (PID 1). Can’t operate.”

    So I tried so hard to figure this out. In the end, I found that WSL does NOT support systemd and systemctl.

    So what can I do?

    Thanks in advance!

  42. Fishguy 的头像
    Fishguy

    Hi 风逝
    Thanks for your reply! However, I still can’t figure out how to start v2ray. 🙁
    I tried several scripts in ubuntu but all failed like this.

    root@DESKTOP-F18IBO8:/usr/bin/v2ray# /usr/bin/v2ray/v2ray
    V2Ray 4.18.0 (Po) 20190228
    A unified platform for anti-censorship.
    main: failed to load config: > v2ray.com/core/main/confloader/external: config file not readable > open : no such file or directory

    root@DESKTOP-F18IBO8:/usr/bin/v2ray# ls
    geoip.dat geosite.dat v2ctl v2ray

    root@DESKTOP-F18IBO8:/usr/bin/v2ray# /usr/bin/v2ray/v2ray start
    V2Ray 4.18.0 (Po) 20190228
    A unified platform for anti-censorship.
    main: failed to load config: > v2ray.com/core/main/confloader/external: config file not readable > open : no such file or directory

    root@DESKTOP-F18IBO8:/usr/bin/v2ray# sudo /usr/bin/v2ray/v2ray start
    V2Ray 4.18.0 (Po) 20190228
    A unified platform for anti-censorship.
    main: failed to load config: > v2ray.com/core/main/confloader/external: config file not readable > open : no such file or directory

    As you can see, I tried “start” and “sudo ~~~ start”. All failed and the error message looks same. It said “config file not readable, no such file”. I don’t know what to do?? All I want is to start “v2ray”. 🙁

    Sorry to bug you again. I am so grateful for your help and time. Hope I can treat you if you are here 🙂

    Thanks,

    1. 看来你真的对这方面懂得很少,既然你不是很懂电脑,为什么要选择在 WSL 上安装 V2Ray 而不是选择直接在 Windows 上安装 V2Ray。

      言归正传,如果你想在 WSL 上运行V2Ray客户端,你需要配置V2Ray 配置文件,在 /etc/v2ray/config.json ,复制我文中 3-2配置 的内容进去,修改配置如 IP、UUID 等。

      当你配置好了 /etc/v2ray/config.json,你可以直接通过命令 /usr/bin/v2ray/v2ray 命令运行。

  43. Fishguy 的头像
    Fishguy

    Hi 风逝
    After quite some struggling, I finally found the solution. Now it works!
    Thank you so much!

    1. hi, how do you figure this problem? cause I got the same error : (

  44. 请问可以改变v2ray占用的端口吗,8080端口平时开发要用

    1. 端口用什么只是习惯性问题,随意修改无所谓的

    2. 好的,谢谢你的教程和回答

  45. 春秋两季 的头像
    春秋两季

    楼主。你好!
    这个一键安装命令有没有写错?为什么我按照你的要求安装好系统后。连接上vps后复制运行bash <(curl -L -s https://install.direct/go.sh)出现无法找到提示。
    运行wget https://install.direct/go.sh命令可以。

    1. 运行这个命令需要在 root 用户身份下,即命令行提示符为 root@hostname:~# 这样的样式。如果还是报错附上报错信息。

  46. 博主您好,我之前使用亚特兰大的vps,只能使用vultr的console操作,无法用ssh命令连接到自己的服务器(情况同前面的网友)。换了巴黎的服务器之后可以用ssh连上(因此确认亚特兰大的ip被墙),并在服务器端安装v2ray,但是客户端v2rayU连接的时候仍然无法上网,日志如下:

    2019/03/27 22:32:06 tcp:127.0.0.1:61063 accepted tcp:www.google.com.hk:443
    2019/03/27 22:32:10 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [dial tcp 217.69.4.240:27892: connect: connection refused] > v2ray.com/core/common/retry: all retry attempts failed
    127.0.0.1 – – [27/Mar/2019 22:32:39] “GET /pac/pac.js HTTP/1.1” 200 –
    127.0.0.1 – – [27/Mar/2019 22:35:58] “GET /pac/pac.js HTTP/1.1” 200 –

    请问这是什么问题?

  47. 博主你好。我按照教程一步一步部署好了v2ray服务器。ssh里面显示运行正常。但是用v2rayN客户端的时候会显示2019/04/08 23:26:13 [Warning] failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [dial tcp 35.236.32.66:26132: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.] > Retry: all retry attempts failed 请问可以怎样解决?

  48. 请问除了端口22其他所有的端口全挂了需要重开一个服务器吗

    1. 请检查防火墙设定,确认其他端口已经启用,并且没有防火墙阻拦。

    2. 麦可莫 的头像
      麦可莫

      之前的端口是正常的 用的好好地 就上几个星期突然全被封了

  49. 博主,麻烦帮我看下是卡在什么问题上了,服务端显示运行正常。但是客户端一直没办法连上那个,谢谢
    V2Ray 4.19.1 (Let’s Fly) Custom
    A unified platform for anti-censorship.
    2019/06/09 14:52:13 [Warning] v2ray.com/core: V2Ray 4.19.1 started
    2019/06/09 14:52:13 tcp:127.0.0.1:13036 rejected v2ray.com/core/proxy/socks: unknown Socks version: 67
    2019/06/09 14:52:13 [Info] [2695747079] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: failed to read request > v2ray.com/core/proxy/socks: unknown Socks version: 67
    2019/06/09 14:52:13 tcp:127.0.0.1:13033 rejected v2ray.com/core/proxy/socks: unknown Socks version: 67
    2019/06/09 14:52:13 [Info] [3065980270] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: failed to read request > v2ray.com/core/proxy/socks: unknown Socks version: 67
    2019/06/09 14:52:13 tcp:127.0.0.1:13032 rejected v2ray.com/core/proxy/socks: unknown Socks version: 67
    2019/06/09 14:52:13 [Info] [1110407508] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: failed to read request > v2ray.com/core/proxy/socks: unknown Socks version: 67
    2019/06/09 14:52:16 tcp:127.0.0.1:13037 rejected v2ray.com/core/proxy/socks: unknown Socks version: 67
    2019/06/09 14:52:16 [Info] [1205802053] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: failed to read request > v2ray.com/core/proxy/socks: unknown Socks version: 67
    2019/06/09 14:52:17 tcp:127.0.0.1:13038 rejected v2ray.com/core/proxy/socks: unknown Socks version: 67
    2019/06/09 14:52:17 [Info] [3697972062] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: failed to read request > v2ray.com/core/proxy/socks: unknown Socks version: 67

    1. 你开启的是 Socks 代理,但在浏览器中配置了 HTTP 代理

    2. murakami 的头像
      murakami

      Mac 上可以只配置Socks, 解决了这个问题

  50. 连接vps的时候 我输入 ssh [email protected] 没反应
    ssh: connect to host x.x.x.x port 22: Connection timed out

  51. 无法将“ssh”项识别为cmdlet 函数 脚本文件或可运行程序的名称。这个咋办啊,我现在疯狂挠头、、、、

    1. 我也是这个问题,搜索了半天也找不到答案,最后下载了xshell,告诉我无法连接到本机ip(端口22),连接失败。

    2. 这个服务器被gank了,删掉重新创建。

  52. [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [dial tcp 173.242.118.209:10086: connectex: No connection could be made because the target machine actively refused it.] > v2ray.com/core/common/retry: all retry attempts failed
    大神出现这种情况怎么搞哦? 搞了半天没搞定

  53. 大神你好,我之前用SS但是某天开始报500错误,后来自己搭完V2ray后(VULTR日本服务器),测试连通性时正常的,但是打开代理后就无法翻墙,500报错,
    Privoxy encountered an error while processing your request:

    Could not load template file no-server-data or one of its included components.

    Please contact your proxy administrator.

    If you are the proxy administrator, please put the required file(s)in the (confdir)/templates directory. The location of the (confdir) directory is specified in the main Privoxy config file. (It’s typically the Privoxy install directory).

    另外我手机上用搭的时候顺便建的SS倒是可以翻墙的,500错误查了两天也没解决,求助T.T

  54. 您好,我是按照教程搭建的,但是尝试连接时却弹出这样的错误日志……请问为什么会出现这种情况呢?我该如何解决呢?

    2019/07/29 13:27:15 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [dial tcp 139.180.221.111:14521: connectex: No connection could be made because the target machine actively refused it.] > v2ray.com/core/common/retry: all retry attempts failed

    着实令人头大T T

  55. 您好!同样的问题,请问您解决了吗?可否指导一下

  56. 我想请问下你这个v2ray的配置文件是ipv6的吗,我想通过ipv6来跳过校园网的ipv4流量计费如何实现

  57. 毕皓然 的头像
    毕皓然

    大神您好,我已经搭建好了v2,但我是和我朋友一起用。我发现我电脑端使用起来非常快,但是手机端非常慢。在网上查询过后说是要搭建多端口的,请问大神我应该怎样实现呢?

  58. clarence 的头像
    clarence

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ECDSA key sent by the remote host is
    SHA256:jkQJEmMLQ1oLc7u+oGEQK+peT7OCuEjlodYP2oWM51s.
    Please contact your system administrator.
    Add correct host key in C:\\Users\\intel/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in C:\\Users\\intel/.ssh/known_hosts:1
    ECDSA host key for 45.32.6.165 has changed and you have requested strict checking.
    Host key verification failed.
    手贱重新安装了vps系统,这怎么解决。。我后面用xshell解决了。。想知道怎么解决windows powershell

    1. 删了这个文件:C:\\Users\\intel/.ssh/known_hosts。

  59. 你好,我这里有个问题望解答
    我根据教程已经搭建好V2ray了
    在火狐上用SwitchyOmega代理协议为socks5 可以链接得上
    但是在谷歌浏览器上用SwitchyOmega 代理协议为socks5
    却无法打开任何网页 显示为:
    可能暂时无法连接,或者它已永久性地移动到了新网址。
    ERR_CONNECTION_ABORTED

    客户端那边则一直提示为:
    2019/09/26 23:14:23 tcp:127.0.0.1:4282 rejected v2ray.com/core/proxy/socks: failed to read request > read tcp 127.0.0.1:1080->127.0.0.1:4282: i/o timeout
    2019/09/26 23:14:23 tcp:127.0.0.1:4281 rejected v2ray.com/core/proxy/socks: failed to read request > read tcp 127.0.0.1:1080->127.0.0.1:4281: i/o timeout
    2019/09/26 23:14:27 tcp:127.0.0.1:4284 rejected v2ray.com/core/proxy/socks: failed to read request > read tcp 127.0.0.1:1080->127.0.0.1:4284: i/o timeout
    2019/09/26 23:14:31 tcp:127.0.0.1:4287 rejected v2ray.com/core/proxy/socks: failed to read request > read tcp 127.0.0.1:1080->127.0.0.1:4287: i/o timeout
    2019/09/26 23:14:31 tcp:127.0.0.1:4286 rejected v2ray.com/core/proxy/socks: failed to read request > read tcp 127.0.0.1:1080->127.0.0.1:4286: i/o timeout
    2019/09/26 23:14:40 tcp:127.0.0.1:4290 rejected v2ray.com/core/proxy/socks: failed to read request > read tcp 127.0.0.1:1080->127.0.0.1:4290: i/o timeout
    2019/09/26 23:14:40 tcp:127.0.0.1:4289 rejected v2ray.com/core/proxy/socks: failed to read request > read tcp 127.0.0.1:1080->127.0.0.1:4289: i/o timeou

    不知是何原因,望解答 谢谢

  60. 50%的灰 的头像
    50%的灰

    官方命令安装v2ray后,在Xshell 6启动v2ray报错,如何解决?(vultr的centos 8系统VPS)

    [root@vultr ~]# cat /etc/v2ray/config.json
    {
    “inbounds”: [{
    “port”: 28963,
    “protocol”: “vmess”,
    “settings”: {
    “clients”: [
    {
    “id”: “c24da878-a287-4c2e-8283-c99dad985f7f”,
    “level”: 1,
    “alterId”: 64
    }
    ]
    }
    }],
    “outbounds”: [{
    “protocol”: “freedom”,
    “settings”: {}
    },{
    “protocol”: “blackhole”,
    “settings”: {},
    “tag”: “blocked”
    }],
    “routing”: {
    “rules”: [
    {
    “type”: “field”,
    “ip”: [“geoip:private”],
    “outboundTag”: “blocked”
    }
    ]
    }
    }

  61. 您好,您可以帮我远程看看吗,我配置了很多遍

  62. 李铁柱 的头像
    李铁柱

    为什么我打开的Windowspowersheel和上面的不一样

  63. 李铁柱 的头像
    李铁柱

    我把IP输进去显示ssh: connect to host 45.32.7.85 port 22: Connection timed out

    1. IP被无法访问,删掉再重新创建一个VPS。

  64. v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/vmess/inbound: unable to set read deadline > v2ray.com/core/transport/internet/kcp: Connection closed.

    前几天链接wifi可以用的,今天开始就不行了,我用的是kcp协议,另外刚开始的时候,移动4g可以,后来只有WiFi可以了,完全不知道怎么回事,谢谢

  65. 博主你好,感谢你的分享!!我这边有四个问题希望能请教:1.在config.json文件中是全局代理还是PAC代理呢?2.在阿里云里面配置防火墙是直接使用开启一个对应端口号的UDP规则吗?3.在WIN10代理服务器里面,有个输入框说的是“请勿对以下地址使用代理服务器”,一般怎么填写呢?4.点击wvaray.exe后怎么kill掉呢?

    1. 1. config.json 即不是全局代理,也不是真正意义上的PAC代理,是按照IP路由区分流量走直连还是代理。
      2. 建议TCP和UDP全部放行。阿里云没用过,请自行测试。
      3. 这个一般不管,一般用于放行局域网的地址不走代理。
      4. 右键底部任务栏,打开任务管理器,找到对应进程结束掉。

  66. 非常感谢。还有几个问题呢。1.请问下就是配置多用户这种格式吗?我看到还有一种是直接连端口都重新添加了的,这样也行吗?重新被编辑之后的config文件需要再次加载吗?我这边使用scoure命令直接报错-bash:common not found很多行。
    “clients”: [
    {“id”: “xxxx”, “alterId”: 64},
    {“id”: “yyyy”, “alterId”: 64}
    ]
    2.一个用户的UUID只能一个设备使用吗?我这边同样的config.json文件在另一个PC端,点击v2ray.exe,就无法打开。
    3.请问博主,fanwall被查出来了,请问IP是被永封吗?

  67. Hello there!
    I’m encountering a very strange problem (Android v2RayNG and v2ray.exe on Windows10).

    Everything works well, but just for 5-10 minutes, then it stops both on PC and mobile.
    After 1-2 minutes, it just works again.
    Then, after 10 minutes, again stops working for 1-2 minutes. Then it works again.

    Do you have any ideas?

    protocol vmess, port 443, alterID=72 on all the clients and server.

  68. 我和Webster Hu情况一样,每隔几十分钟就会断开,几分钟后再度恢复。请问为何有时会突然断流呢?谢谢!!

  69. 你好,请帮我看下,V2Ray 安装配置成功之后,更新PAC一直是这样,国内网站可以打开,外网上不去

    配置成功
    Vmess-233v2.com_66.42.39.62(66***62:28319)
    启动服务(2019-11-21 22:43:41)……
    V2Ray 4.18.0 (Po) 20190228
    A unified platform for anti-censorship.
    2019/11/21 22:43:41 [Warning] v2ray.com/core: V2Ray 4.18.0 started
    开始更新PAC…
    2019/11/21 23:20:18 tcp:127.0.0.1:57582 accepted tcp:raw.githubusercontent.com:443
    2019/11/21 23:21:40 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [dial tcp 66.42.39.62:28319: i/o timeout] > v2ray.com/core/common/retry: all retry attempts failed
    2019/11/21 23:28:17 tcp:127.0.0.1:57937 accepted tcp:clientservices.googleapis.com:443
    2019/11/21 23:28:47 tcp:127.0.0.1:57951 accepted tcp:clientservices.googleapis.com:80
    2019/11/21 23:29:39 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [dial tcp 66.42.39.62:28319: i/o timeout] > v2ray.com/core/common/retry: all retry attempts failed

  70. 博主你好,感谢你的分享!!怎样直接在 Windows 10 64x上安装 V2Ray呢?

    服务端(香港有独立IP的电脑上,周末在深圳通过香港电脑v2ray):我下载了v2ray-windows-64.zip解压到C:\Program Files,复制文中 3-2配置 的内容进去config.json,然后双击运行wv2ray.exe
    客户端:安装安卓客户端v2rayNG,能连上公用机场。但是输入自己的服务端IP、端口1080、id:7d4c4078-e129-416b-a483-cf5713a96a66、alterId:4后,点击最下面“已连接,点击测试连接”显示 “失败:Connection closed by peer”

    能不能提供一个详细的在Windows 10 64x上安装 V2Ray的教程呢?

  71. 接班人 的头像
    接班人

    博主您好
    我根据上述操作
    systemctl start v2ray也输入了
    修改了端口和ID
    但是v2ray无法使用,不管是修改配置前还是修改配置后,ss也无法使用。。之前用一键脚本也是有相同问题
    vultr不行,但是谷歌云可以。。。
    ss一键脚本也显示启动失败
    感觉出现了很奇怪的问题?

  72. 皮卡丘 的头像
    皮卡丘

    博主您好,按照您的步骤配置好后,一切正常,但某天突然国内网站登不了,只能登陆国外谷歌等网站了,请问如何解决?

  73. 你好博主。
    我购买的v2ray机场的节点,在手机上使用是可以的,
    可是在win7上下载了v2ray客户端,导入节点就是不行。
    确认节点没问题,然后机场群里用win10的人也说没问题。
    我想知道这是怎么回事,win7应该也是可以正常使用v2ray的吧。
    另外,附上win7的v2ray日子一段,
    麻烦您赐教,怎么才能正常科学上网。
    2020/01/05 11:55:28 tcp:127.0.0.1:3593 accepted tcp:clientservices.googleapis.com:80 [proxy]
    2020/01/05 11:55:29 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:55:53 tcp:127.0.0.1:3597 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:56:00 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:56:01 tcp:127.0.0.1:3603 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:56:02 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:56:23 tcp:127.0.0.1:3606 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:56:40 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:56:41 tcp:127.0.0.1:3609 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:56:41 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:57:03 tcp:127.0.0.1:3613 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:57:14 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:57:15 tcp:127.0.0.1:3618 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:57:15 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:57:33 tcp:127.0.0.1:3621 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:58:13 tcp:127.0.0.1:3629 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:58:17 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:58:18 tcp:127.0.0.1:3632 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:58:18 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:58:43 tcp:127.0.0.1:3635 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:58:56 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:58:57 tcp:127.0.0.1:3638 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:58:57 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:59:13 tcp:127.0.0.1:3641 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:59:32 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:59:33 tcp:127.0.0.1:3647 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 11:59:33 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:59:41 tcp:127.0.0.1:3652 accepted tcp:ping.pinyin.sogou.com:80 [proxy]
    2020/01/05 11:59:41 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 11:59:42 tcp:127.0.0.1:3655 accepted tcp:config.pinyin.sogou.com:80 [proxy]
    2020/01/05 11:59:52 tcp:127.0.0.1:3659 accepted tcp:safebrowsing.googleapis.com:443 [proxy]
    2020/01/05 11:59:53 tcp:127.0.0.1:3661 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 12:00:22 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 12:00:23 tcp:127.0.0.1:3667 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 12:00:24 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 12:00:25 tcp:127.0.0.1:3670 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 12:00:25 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 12:00:45 tcp:127.0.0.1:3673 accepted tcp:mtalk.google.com:443 [proxy]
    2020/01/05 12:00:53 tcp:127.0.0.1:3676 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 12:01:03 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 12:01:04 tcp:127.0.0.1:3678 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 12:01:05 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 12:01:23 tcp:127.0.0.1:3684 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 12:01:43 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
    2020/01/05 12:01:44 tcp:127.0.0.1:3687 accepted tcp:www.youtube.com:443 [proxy]
    2020/01/05 12:01:45 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)

    1. Huangzhiwen 的头像
      Huangzhiwen

      解决了吗?我也是同意问题。

  74. MoeWang 的头像
    MoeWang

    ssh能用,但是搭建好了连不上是怎么回事

  75. 作者大佬你好,非常感谢你的教程,一次就成功了。昨晚用了其他人的脚本,搞了好久都不成功。我现在还有两个问题。一是如何实现在iphone上运行v2ray,二是如何在路由器上实现,我是RT-AC68U,之前一直在路由器上全局使用SSR。

  76. 出现 “failed to handler mux client connection”的,检查下电脑的时间,与当地正确时间差太多,就会报这个错。至少本人是这个问题~

  77. 请问出现以下日志,该怎么解决啊?
    2020/02/16 12:53:08 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [dial tcp 47.240.72.220:16888: i/o timeout] > v2ray.com/core/common/retry: all retry attempts failed

  78. 在powershell窗口输入ssh root@服务器IP 后输入密码 出现Permission denied, please try again.然后提示再次输入密码 再次输入密码返回同样的提示,请问应该怎么解决

    1. 密码错误

  79. 非常感谢,问题已解决,powershell上输入密码不可见,密码无法粘贴,所以回车密码一直为空报错;目前已成功搭建,再次感谢。。。

  80. 非常感谢,看着您的教程已经成功搭建。感谢大佬

  81. 请问,客户端一直报这个错,服务端日志没有问题,这个是什么原因。
    有的说是时间不同步,我全部同步了time.windows.com,问题也没解决
    [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > EOF

    1. 一样是这个问题,不知道如何解决。

  82. 你好博主大大,我用的是2云这个网站购买节点,但是根据他的步骤做到第四步,为什么无法选择“Http代理模式”,是因为这个所以上不了外网么,是要对电脑进行什么另外的配置么?求教求帮助,。。。。。。来自一个不是程序员的小白

  83. 您好,我按照您写的第一步就做不下去了。。。所有服务器我都试了,全部是无法将ssh项识别为cmdlet、函数、脚本文件 能ping通。请问是vultr全被干掉了吗。。。

    1. 只有新版Win10系统才自带了ssh,其他版本请考虑xshell

  84. @edward
    websocket: close 1000 (normal)
    这个提示可能是服务端和客户端设备时间不同步。

  85. 李孟泽 的头像
    李孟泽

    您好我连接v2ray时显示远程服务器返回错误: (500) 内部服务器错误是怎么回事?

  86. 奥奥奥奥 的头像
    奥奥奥奥

    [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)

    v2ray.com/core/common/mux: failed to read metadata > io: read/write on closed pipe

    1. 奥奥奥奥 的头像
      奥奥奥奥

      请问如何解决啊 大大

    2. 奥奥奥奥 的头像
      奥奥奥奥

      问题 解决了 是redis问题 建议别开这玩意

  87. 在powershell窗口输入ssh root@服务器IP 后输入密码 出现Permission denied, please try again.然后提示再次输入密码 再次输入密码返回同样的提示,请问应该怎么解决

  88. 在powershell窗口输入ssh root@服务器IP 后输入密码 出现Permission denied, please try again.然后提示再次输入密码 再次输入密码返回同样的提示,请问应该怎么解决

    1. 提示密码错误,输入准确的密码即可

  89. 风逝大神您好,本人也是刚认识v2ray,有几个问题想请教:
    1.v2搭建的上网是否不会被墙?
    2.我目前使用的电脑是win7,64位系统,不是win10,是否可以操作?
    3.用同一个vps里搭建v2上网又搭建网站可以吗?是否很危险?

  90. 楼主你好,为何我搭建后无法接通上网,错误日志一直显示[Warning] v2ray.com/core: V2Ray 4.33.0 started,请问这是怎么回事?要怎么解决啊?

  91. 廉成瑞 的头像
    廉成瑞

    博主我想请教一下,为什么在我在一键脚本时显示
    This script has been DISCARDED, please switch to fhs-install-v2ray project.

    1. 旧脚本已经废除,文章已更新最新脚本。

    2. 好人一生平安 的头像
      好人一生平安

      可是现在显示 The current version of V2Ray is v4.33.0.

  92. 我配置好,打开代理后只能上内网,上不了外网。access.log里显示的都是这些
    2021/01/05 17:02:50 113.111.10.2:58188 rejected v2ray.com/core/proxy/vmess/encoding: failed to drain connection DrainSize = 878 14 9 > v2ray.com/core/proxy/vmess/encoding: invalid user > v2ray.com/core/proxy/vmess: Not Found
    能告诉我怎么解决吗?

  93. 电脑怎么安装V2,

  94. 博主啊请问安装遇到下面这个问题要怎么解决啊?
    warning: The following are the actual parameters for the v2ray service startup.
    warning: Please make sure the configuration file path is correctly set.
    # /etc/systemd/system/v2ray.service
    [Unit]
    Description=V2Ray Service
    Documentation=https://www.v2fly.org/
    After=network.target nss-lookup.target

    [Service]
    User=nobody
    CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
    AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
    NoNewPrivileges=true
    ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json
    Restart=on-failure
    RestartPreventExitStatus=23

    [Install]
    WantedBy=multi-user.target

    # /etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf
    # In case you have a good reason to do so, duplicate this file in the same directory and make your customizes there.
    # Or all changes you made will be lost! # Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
    [Service]
    ExecStart=
    ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json
    开了两个服务器都这样

  95. 我选择的服务器是Ubuntu 18.04 x64,但是按照一键安装的方式,config.json的路径是 在/usr/local/etc/v2ray/config.json下,查看该文件,里面空的{},且按照完成后,没有出现端口和uuid

    1. 上面打错了,是“且安装完成后,没有出现端口和uuid”

    2. 我也出现了这个问题,请问您解决了吗

  96. Windows 系统可以使用V2ray搭建服务端吗

  97. 按照作者的方法未解决

  98. 大神,请问,我已经设置成功了,服务器里有V2Ray,电脑里有V2ray客户端,然后用了网络浏览器插件以后,电脑就可以打开外网网站了,但是我想用老毛子的路由器固件,在家里的路由器里面,设置通过V2Ray的方式设置,想实现家里的无线网络上的游戏机等设备都可以直接翻墙,但是问题是,老毛子路由器固件,那里要求输入vmess://订阅节点,或者是单个节点,我怎么生成这个节点呢?非常感谢!

  99. 这个会被封么?ss的就被封ip了,听说有种组合方案,V2Ray + Caddy + Tls + WebSocket之类的,能不能介绍一下。

  100. 您好,之前打在的v2ray使用一直很正常,最近忽然就用不了了。
    检查过系统时间(时间正确)和防火墙(关闭状态)VPS也能够ping通。还是无法访问,请问该如何找出原因?
    connectex: No connection could be made because the target machine actively refused it.
    all retry attempts failed
    accepted tcp:optimizationguide-pa.googleapis.com:443

    1. failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination

  101. 博主您好,用了最新的脚本安装完不显示UUID和Port等相关信息,也不知道安装成功没有。

  102. 您好 在science上,我这方法知识薄弱,我想问问这个价格比较编译,10美元能用多久哇

回复 DRABAL 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注