返回列表 發帖

在Raspberry Pi 3B 重新安装了V2Ray之后。。。。。

我在2019 年刚刚学习V2Ray 后, 开始把V2Ray(官方版) 安装在香港家中的Raspberry Pi 内, 一直用了很久都很正常。可是最近我回大陆后, 突然发觉连不上了, 也不知是什么原因。可是我仍然可以用Putty连上我的树莓,开到我的config.json 检查一下, 可是发现不了问题。于是把心一横,索性重新安装新版本的V2ray(version 4.34 ),但是我没有重新安装新版的Raspbian 系统, 因为我不在香港,不知能否遥控安装新Raspbain。
安装新版V2ray 也不是一帆风顺,要在网上看了几篇文章,试了几遍终于安装好了, 并把以前旧版的 config.json 拷进新版的 /usr/local/etc/v2ray/ 位置 内。 以为这就可以搞定了, 怎知也是连不上我HK的V2ray。
我再putty回去看看,用systemctl enable v2ray , systemctl start v2ray, systemctl status v2ray , 系统显示v2ray 正常运行,见以下message:

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Feb 13 19:49:39 2021 from 192.168.101.1
pi@raspberrypi:~ $ sudo systemctl status v2ray
● v2ray.service - V2Ray Service
   Loaded: loaded (/etc/systemd/system/v2ray.service; enabled; vendor preset: en
  Drop-In: /etc/systemd/system/v2ray.service.d
           └─10-donot_touch_single_conf.conf
   Active: active (running) since Sat 2021-02-13 16:22:51 CST; 4h 3min ago
     Docs: https://www.v2fly.org/
Main PID: 12090 (v2ray)
   CGroup: /system.slice/v2ray.service
           └─12090 /usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json

Feb 13 16:22:51 raspberrypi systemd[1]: Started V2Ray Service.
Feb 13 16:22:51 raspberrypi v2ray[12090]: V2Ray 4.34.0 (V2Fly, a community-drive
Feb 13 16:22:51 raspberrypi v2ray[12090]: A unified platform for anti-censorship
Feb 13 16:22:51 raspberrypi v2ray[12090]: 2021/02/13 16:22:51 [Info] v2ray.com/c
Feb 13 16:22:53 raspberrypi v2ray[12090]: 2021/02/13 16:22:53 [Warning] v2ray.co
lines 1-15/15 (END)

请问师兄是否旧版的config.json 不能用在 新版的V2ray上, 还是有其他设定需要注意啊? 谢谢!

回復 2# kingwilliam


  我用手機和電腦都連不上 v2ray,不知是否config.json有問題還是 我的舊樹莓系統不能 支持v2ray了。 晚一點我找找個logfile 看看。(其實我不知這樣找出來 !?)

TOP

我用電腦上的 v2rayN 看看, 節錄了以下的 log message, 請師兄指教是否哪裡出了問題:

2021/02/15 14:32:22 tcp:127.0.0.1:51104 accepted tcp:180.87.4.131:443 [proxy]
2021/02/15 14:32:32 [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 112.119.xxx.xxx:4xxx6: i/o timeout] > v2ray.com/core/common/retry: all retry attempts failed
2021/02/15 14:32:33 tcp:127.0.0.1:51109 accepted tcp:video-api.yql.yahoo.com:443 [proxy]
2021/02/15 14:32:47 tcp:127.0.0.1:51116 accepted tcp:hk.news.yahoo.com:443 [proxy]
2021/02/15 14:32:47 tcp:127.0.0.1:51118 accepted tcp:119.255.133.125:443 [proxy]
2021/02/15 14:32:57 tcp:127.0.0.1:51129 accepted tcp:119.255.133.57:443 [proxy]
2021/02/15 14:33:09 [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 112.119.xxx.xxx:4xxx6: i/o timeout] > v2ray.com/core/common/retry: all retry attempts failed
2021/02/15 14:33:28 [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 112.119.xxx.xxx:4xxx6: i/o timeout] > v2ray.com/core/common/retry: all retry attempts failed

2021/02/15 14:33:29 tcp:127.0.0.1:51141 accepted tcp:180.87.4.131:443 [proxy]
2021/02/15 14:33:29 tcp:127.0.0.1:51147 accepted tcp:180.87.4.131:443 [proxy]

謝謝!

TOP

回復 6# kingwilliam

IP 和 port 都没有错的。时间的setting 都已校准。但是不能成功update client side 的 V2rayN ( download 一半就被停下来!)

但请教怎样读取 在 server上 的Log?

TOP

是否 这论坛网页不再支持Flash Player?? 不能上载图片了?
  
我在 Github (https://github.com/2dust/v2rayN ) 找不到V2rayN.zip 的下载档,(它里面有一大堆的文件但不知应该下载那一个), 想更新Windows的V2rayN 来测试一下。但暂时无办法。

TOP

回復 10# tomleehk


    Thanks very much!

TOP

已经update 了 Windows 版的 V2rayN , 仍然不能接入我HK 树莓的 V2Ray, 今天晚上试下再重新在树莓安装V2Ray (官方版的)。

TOP

已经update 了 Windows 版的 V2rayN , 仍然不能接入我HK 树莓的 V2Ray, 今天晚上试下再重新在树莓安装V2Ray (官方版的)。

TOP

昨天晚上重新安装在HK 樹莓的V2Ray, 安裝過程中發現了有以下的 Message:
[Install]
WantedBy=multi-user.target
# In case you have a good reason to do so, duplicate this file in the same directory and make your c
# Or all changes you made will be lost!  # Refer: https://www.freedesktop.org/software/systemd/man/s
[Service]
ExecStart=
ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json
~~~~~~~~~~~~~~~~
warning: The systemd version on the current operating system is too low.
warning: Please consider to upgrade the systemd or the operating system.


不知道這是否是我不能在大陸連上香港樹莓V2ray的原因?

另外, 我又用了 jq . config.json command 來check下我的config.json file ,  結果有如下的 message:

root@raspberrypi:~# cd /usr/local/etc/v2ray
root@raspberrypi:/usr/local/etc/v2ray# nano config.json
root@raspberrypi:/usr/local/etc/v2ray# jq . config.json
parse error: Invalid numeric literal at line 5, column 0


我節錄了我config.json 頭果幾行給師兄們指教到底哪裡出了問題?

root@raspberrypi:/usr/local/etc/v2ray# cat config.json
{
  "inbounds": [
    {
      "port": 48906, #Gordon
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "7bfxxxxx-xxxx-4xxx-bxxx-12302xxxxxxa8",
            "level": 1,
            "alterId": 64
          }
        ]
      }
    },

TOP

remove 了 # 号 后面的名字,没有区别,仍然不能与树莓内的V2ray 连线。
后来我在网上找到了安装 非官方版的 V2ray (233blog),仍然失败。
相信有几个原因:
1.我的树莓内的Raspbian 系统损坏了,我只得下次回香港是重新安装一个新版本系统。
2.我的config.json file 也可能出了问题(其实我一直用开,没有更改,估计 format 应该没有问题的)
3. 我Mikrotik Router内 设置的 Firewall rules 出了问题。
我仍在逐一排查。有什么结果稍后报告。如师兄们有什么看法,也请帮忙指教下。

TOP

终于回到香港老家了,我把我的树莓重新安装了最新版的Raspbian 系统, 也重新安装了V2Ray, 并使用了 以前的config.json file, 自己测试,初步可以连接了,以后有时间回尝试安装 Tls + ws +cdn, 希望师兄多多指教。

TOP

返回列表