您尚未登录。

#1 2025-01-14 16:11:14

cien
会员
注册时间: 2025-01-14
帖子: 1

v2ray无法使用

安装了v2ray,访问国内网站可以正常访问,但是无法访问Google等网站。自己是个小白,配置文件不是很懂,配置文件是从windows中v2rayN导出的,firefox一直报同一个错误。
firefox报错信息

Secure Connection Failed

An error occurred during a connection to www.xxx.com. PR_END_OF_FILE_ERROR

Error code: PR_END_OF_FILE_ERROR

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.

Learn more…
● v2ray.service - V2Ray Service
     Loaded: loaded (/usr/lib/systemd/system/v2ray.service; enabled; preset: disabled)
     Active: active (running) since Tue 2025-01-14 15:50:21 HKT; 1min 58s ago
 Invocation: efa3330a2fde41d7aad058fb8133c8a4
       Docs: https://www.v2fly.org/
   Main PID: 454 (v2ray)
      Tasks: 6 (limit: 4449)
     Memory: 152.7M (peak: 248.7M)
        CPU: 1.421s
     CGroup: /system.slice/v2ray.service
             └─454 /usr/bin/v2ray run -config /etc/v2ray/config.json

Jan 14 15:50:21 gentoo systemd[1]: Started V2Ray Service.
Jan 14 15:50:26 gentoo v2ray[454]: V2Ray 5.23.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.23.4 linux/amd64)
Jan 14 15:50:26 gentoo v2ray[454]: A unified platform for anti-censorship.
Jan 14 15:50:29 gentoo v2ray[454]: 2025/01/14 15:50:28 [Warning] V2Ray 5.23.0 started

v2ray配置文件大概内容

cat /etc/v2ray/config.json
{
  "log": {
    "access": "",
    "error": "",
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "tag": "socks",
      "port": 10808,
      "listen": "127.0.0.1",
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ],
        "routeOnly": false
      },
      "settings": {
        "auth": "noauth",
        "udp": true,
        "allowTransparent": false
      }
    },
    {
      "tag": "http",
      "port": 10809,
      "listen": "127.0.0.1",
      "protocol": "http",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ],
        "routeOnly": false
      },
      "settings": {
        "auth": "noauth",
        "udp": true,
        "allowTransparent": false
      }
    }
  ],
  "outbounds": [
    {
      "tag": "proxy",
      "protocol": "vless",
      "settings": {
    ...
        

若是访问走代理的网站,日志只有一两条信息,就没有了。

Jan 14 15:50:21 gentoo systemd[1]: Started V2Ray Service.
Jan 14 15:50:26 gentoo v2ray[454]: V2Ray 5.23.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.23.4 linux/amd64)
Jan 14 15:50:26 gentoo v2ray[454]: A unified platform for anti-censorship.
Jan 14 15:50:29 gentoo v2ray[454]: 2025/01/14 15:50:28 [Warning] V2Ray 5.23.0 started
Jan 14 15:59:49 gentoo v2ray[454]: 2025/01/14 15:59:49 127.0.0.1:60820 accepted //incoming.telemetry.mozilla.org:443 [proxy]
Jan 14 15:59:49 gentoo v2ray[454]: 2025/01/14 15:59:49 127.0.0.1:60836 accepted //incoming.telemetry.mozilla.org:443 [proxy]
Jan 14 15:59:54 gentoo v2ray[454]: 2025/01/14 15:59:54 127.0.0.1:60042 accepted //www.google.com:443 [proxy]
Jan 14 15:59:55 gentoo v2ray[454]: 2025/01/14 15:59:55 127.0.0.1:60058 accepted //www.google.com:443 [proxy]
Jan 14 15:59:55 gentoo v2ray[454]: 2025/01/14 15:59:55 127.0.0.1:60060 accepted http://google.com/ [proxy]
Jan 14 15:59:55 gentoo v2ray[454]: 2025/01/14 15:59:55 [Warning] [502330157] proxy/http: failed to read response from google.com > io: read/write on closed pipe
Jan 14 16:00:01 gentoo v2ray[454]: 2025/01/14 16:00:01 127.0.0.1:51488 accepted //www.google.com:443 [proxy]
Jan 14 16:00:01 gentoo v2ray[454]: 2025/01/14 16:00:01 127.0.0.1:51494 accepted //www.google.com:443 [proxy]
Jan 14 16:00:03 gentoo v2ray[454]: 2025/01/14 16:00:03 127.0.0.1:51506 accepted //www.google.com:443 [proxy]
Jan 14 16:00:03 gentoo v2ray[454]: 2025/01/14 16:00:03 127.0.0.1:51516 accepted //www.google.com:443 [proxy]
Jan 14 16:00:03 gentoo v2ray[454]: 2025/01/14 16:00:03 127.0.0.1:51518 accepted //www.google.com:443 [proxy]
Jan 14 16:00:04 gentoo v2ray[454]: 2025/01/14 16:00:04 127.0.0.1:51524 accepted //www.google.com:443 [proxy]
Jan 14 16:00:04 gentoo v2ray[454]: 2025/01/14 16:00:04 127.0.0.1:51536 accepted //youtube.com:443 [proxy]
Jan 14 16:00:04 gentoo v2ray[454]: 2025/01/14 16:00:04 127.0.0.1:51552 accepted //youtube.com:443 [proxy]

国内网站可以正常访问

Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51368 accepted //gimg3.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51384 accepted //gimg3.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51396 accepted //gimg3.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51400 accepted //gimg3.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51404 accepted //gimg3.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51416 accepted //gimg3.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51354 accepted //himg.bdimg.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51338 accepted //pss.bdstatic.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51358 accepted //www.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51484 accepted //pss.bdstatic.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51500 accepted //www.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51472 accepted //pss.bdstatic.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51460 accepted //pss.bdstatic.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51450 accepted //pss.bdstatic.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51446 accepted //pss.bdstatic.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51510 accepted //www.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51522 accepted //www.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51538 accepted //hectorstatic.baidu.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51432 accepted //pss.bdstatic.com:443 [direct]
Jan 14 16:05:58 gentoo v2ray[454]: 2025/01/14 16:05:58 127.0.0.1:51548 accepted //pss.bdstatic.com:443 [direct]
Jan 14 16:05:59 gentoo v2ray[454]: 2025/01/14 16:05:59 127.0.0.1:51556 accepted //mbd.baidu.com:443 [direct]
Jan 14 16:05:59 gentoo v2ray[454]: 2025/01/14 16:05:59 127.0.0.1:51562 accepted //sp1.baidu.com:443 [direct]
Jan 14 16:05:59 gentoo v2ray[454]: 2025/01/14 16:05:59 127.0.0.1:51564 accepted //sp1.baidu.com:443 [direct]
Jan 14 16:06:00 gentoo v2ray[454]: 2025/01/14 16:06:00 127.0.0.1:51572 accepted //hector.baidu.com:443 [direct]
Jan 14 16:06:00 gentoo v2ray[454]: 2025/01/14 16:06:00 127.0.0.1:51578 accepted //hpd.baidu.com:443 [block]
Jan 14 16:06:00 gentoo v2ray[454]: 2025/01/14 16:06:00 127.0.0.1:51580 accepted //hpd.baidu.com:443 [block]
Jan 14 16:06:00 gentoo v2ray[454]: 2025/01/14 16:06:00 127.0.0.1:51594 accepted http://detectportal.firefox.com/canonical.html [proxy]
Jan 14 16:06:00 gentoo v2ray[454]: 2025/01/14 16:06:00 127.0.0.1:51620 accepted //sp2.baidu.com:443 [direct]
Jan 14 16:06:00 gentoo v2ray[454]: 2025/01/14 16:06:00 127.0.0.1:45916 accepted //hpd.baidu.com:443 [block]
Jan 14 16:06:00 gentoo v2ray[454]: 2025/01/14 16:06:00 127.0.0.1:45926 accepted //hpd.baidu.com:443 [block]
Jan 14 16:06:00 gentoo v2ray[454]: 2025/01/14 16:06:00 127.0.0.1:45912 accepted //b.bdstatic.com:443 [block]
Jan 14 16:06:00 gentoo v2ray[454]: 2025/01/14 16:06:00 127.0.0.1:45940 accepted //b.bdstatic.com:443 [block]
Jan 14 16:06:01 gentoo v2ray[454]: 2025/01/14 16:06:01 127.0.0.1:45948 accepted //passport.baidu.com:443 [direct]
Jan 14 16:06:01 gentoo v2ray[454]: 2025/01/14 16:06:01 127.0.0.1:45962 accepted //mbd.baidu.com:443 [direct]
Jan 14 16:06:01 gentoo v2ray[454]: 2025/01/14 16:06:01 127.0.0.1:45966 accepted //hpd.baidu.com:443 [block]
Jan 14 16:06:01 gentoo v2ray[454]: 2025/01/14 16:06:01 127.0.0.1:45980 accepted //hpd.baidu.com:443 [block]
Jan 14 16:06:01 gentoo v2ray[454]: 2025/01/14 16:06:01 127.0.0.1:45986 accepted //sp3.baidu.com:443 [direct]

firefox的代理设置是按以下端口设置的

 "tag": "http",
      "port": 10809,
      "listen": "127.0.0.1",
      "protocol": "http",
 "tag": "socks",
      "port": 10808,
      "listen": "127.0.0.1",
      "protocol": "socks",

请问该如何解决?若需要的话,我将提供更多信息。希望大佬们不吝赐教。

离线

#2 2025-02-01 07:02:02

dilokomi
大可爱
所在地: 我家
注册时间: 2024-11-05
帖子: 5

Re: v2ray无法使用

v2raya或者大鹅
v2ray.service不好用


好耶

离线

页脚