全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1229|回复: 13

各位18cm吴彦祖为什么我手搓的Vless+xtls-rprx-vison有点问题

[复制链接]
发表于 2023-11-21 09:28:07 | 显示全部楼层 |阅读模式
配置文件是备份了github一脚脚本的,重装后自己手搓了一下,发现这个配置在一键脚本的VPS上可以,但是按照下面的办法在新VPS上手搓后systemctl status xray显示fail.
邪门的是可以用...求大佬哈

安装XTLS
bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install

生成uuid
cd /usr/local/bin/ && ./xray uuid
生成公钥私钥(privateKey)
cd /usr/local/bin/ && ./xray x25519
生成shortIds
openssl rand -hex 8

编辑配置文件
vi /usr/local/etc/xray/config.json

重启服务
systemctl restart xray
查看状态,这里发现一直fail,但是能用.....
systemctl status xray

配置文件如下
  1. {
  2.     "log" : {
  3.         "access": "/root/v2ray-access.log",
  4.         "error": "/root/v2ray-error.log",
  5.         "loglevel": "warning"
  6.     },

  7.     "inbounds": [
  8.         {
  9.             "port": 443,
  10.             "protocol": "vless",
  11.             "settings": {
  12.                 "clients": [
  13.                     { "id": "b8c41844-7260-4ec8-99c4-2cb228f325cf", "flow": "xtls-rprx-vision", "level": 0, "email": "[email protected]" }
  14.                 ],
  15.                 "decryption": "none",
  16.                 "fallbacks": [
  17.                     {
  18.                         "dest": 80
  19.                     }
  20.                 ]
  21.             },
  22.             "streamSettings": {
  23.                 "network": "tcp",
  24.                 "security": "reality",
  25.                 "realitySettings": {
  26.                     "show": false,
  27.                     "dest": "www.apple.com:443",
  28.                     "xver": 0,
  29.                     "serverNames": [
  30.                         "www.apple.com",
  31.                         "icloud.com",
  32.                         "www.icloud.com",
  33.                         "apple.com",
  34.                         "www.apple.com",
  35.                         "mozilla.org",
  36.                         "addons.mozilla.org",
  37.                         "ebay.com",
  38.                         "www.ebay.com",
  39.                         "walmart.com",
  40.                         "www.walmart.com",
  41.                         "etsy.com",
  42.                         "www.etsy.com",
  43.                         "shopify.com",
  44.                         "www.shopify.com",
  45.                         "amazon.com"
  46.                     ],
  47.                     "privateKey": "lAHxzt4a1foK_pN9WQrLTpXUL2T9OkcyHuNyF1fD3mQ",
  48.                     "maxTimeDiff": 0,
  49.                     "shortIds": [
  50.                         "",
  51.                         "877af81f1d102830"
  52.                     ]
  53.                 }
  54.             },
  55.             "sniffing": {
  56.                 "enabled": true,
  57.                 "destOverride": [
  58.                     "http",
  59.                     "tls"
  60.                 ]
  61.             }
  62.         }


  63.     ],
  64.     "routing": {
  65.         "domainStrategy": "IPIfNonMatch",
  66.         "rules": [
  67.             {
  68.                 "type": "field",
  69.                 "outboundTag": "IPv6_out",
  70.                 "domain": ["test.com" ]
  71.             },
  72.             {
  73.                 "type": "field",
  74.                 "outboundTag": "WARP_out",
  75.                 "domain": ["test.com" ]
  76.             },
  77.             {
  78.                 "type": "field",
  79.                 "outboundTag": "V2Ray_out",
  80.                 "domain": ["test.com" ]
  81.             },

  82.             {
  83.                 "type": "field",
  84.                 "domain": [
  85.                     "geosite:cn"
  86.                 ],
  87.                 "outboundTag": "blocked_out"
  88.             },
  89.             {
  90.                 "type": "field",
  91.                 "ip": [
  92.                     "geoip:cn"
  93.                 ],
  94.                 "outboundTag": "blocked_out"
  95.             },
  96.             {
  97.                 "type": "field",
  98.                 "outboundTag": "IPv4_out",
  99.                 "network": "udp,tcp"
  100.             }
  101.         ]
  102.     },
  103.     "outbounds": [
  104.         {
  105.             "tag":"IPv4_out",
  106.             "protocol": "freedom",
  107.             "settings": {
  108.                 "domainStrategy": "UseIPv4"
  109.             }
  110.         },
  111.         {
  112.             "tag": "blocked_out",
  113.             "protocol": "blackhole",
  114.             "settings": {
  115.                 "response": {
  116.                     "type": "http"
  117.                 }
  118.             }
  119.         },
  120.         {
  121.             "tag":"IPv6_out",
  122.             "protocol": "freedom",
  123.             "settings": {
  124.                 "domainStrategy": "UseIPv6"
  125.             }
  126.         },


  127.         {
  128.             "tag": "WARP_out",
  129.             "protocol": "socks",
  130.             "settings": {
  131.                 "servers": [
  132.                     {
  133.                         "address": "127.0.0.1",
  134.                         "port": 40000
  135.                     }
  136.                 ]
  137.             },
  138.             "streamSettings": {
  139.                 "network": "tcp"
  140.             }
  141.         }
  142.     ]
  143. }
复制代码
发表于 2023-11-21 09:28:13 | 显示全部楼层
配置有误,请检查。
发表于 2023-11-21 09:31:12 | 显示全部楼层
xray目录下config.json应该是空的
 楼主| 发表于 2023-11-21 09:58:59 | 显示全部楼层
不知道 发表于 2023-11-21 09:28
配置有误,请检查。

哥,你这个回答像是18年前的AI哈, 哈哈
发表于 2023-11-21 10:00:42 | 显示全部楼层
佳辉的春天 发表于 2023-11-21 09:58
哥,你这个回答像是18年前的AI哈, 哈哈

有点智障的回答 因为我也不知道哪里有问题 哈哈
发表于 2023-11-21 10:02:45 | 显示全部楼层
查log啊,mjj又不是人形机器人能一个个帮你排查哪里少个逗号
发表于 2023-11-21 10:36:23 | 显示全部楼层
看着好麻烦 还是x-ui吧
 楼主| 发表于 2023-11-21 10:37:37 | 显示全部楼层
wherl 发表于 2023-11-21 10:02
查log啊,mjj又不是人形机器人能一个个帮你排查哪里少个逗号

也许有18cm吴彦祖哈,我去找找log
发表于 2023-11-21 10:47:39 | 显示全部楼层
有一键不用,非得自己配?
发表于 2023-11-21 10:49:00 | 显示全部楼层
我用的一键启动不了 醉了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-2-23 05:45 , Processed in 0.063511 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表