全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[已解决] Xray Reality s5出站流量配置问题

[复制链接]
发表于 2023-12-10 18:49:49 | 显示全部楼层 |阅读模式
本帖最后由 Rebel 于 2023-12-10 20:06 编辑

我是想将Reality配置成所有出站流量都走本地的s5,无需分流。目前这个配置通不了,正常用Reality能通,求指点。
  1. {
  2.     "log": {
  3.         "loglevel": "debug"
  4.     },
  5.     "inbounds": [
  6.         {
  7.             "port": 12345,
  8.             "protocol": "vless",
  9.             "settings": {
  10.                 "clients": [
  11.                     {
  12.                         "id": "c7302ac1-6cf3-40c7-ba98-732c7481b977",
  13.                         "flow": "xtls-rprx-vision"
  14.                     }
  15.                 ],
  16.                 "decryption": "none"
  17.             },
  18.             "streamSettings": {
  19.                 "network": "tcp",
  20.                 "security": "reality",
  21.                 "realitySettings": {
  22.                     "dest": "learn.microsoft.com:443",
  23.                     "serverNames": [
  24.                         "learn.microsoft.com"
  25.                     ],
  26.                     "privateKey": "2CSVsGXkZ69S-M7TR-uBv55kPkusWSTEZDga3wwwUHU",
  27.                     "shortIds": [
  28.                         "",
  29.                         "0123456789abcdef"
  30.                     ]
  31.                 }
  32.             },
  33.             "sniffing": {
  34.                 "enabled": true,
  35.                 "destOverride": [
  36.                     "http",
  37.                     "tls",
  38.                     "quic"
  39.                 ],
  40.                 "routeOnly": true
  41.             }
  42.         }
  43.     ],
  44.     "outbounds": [
  45.             {
  46.                       "tag": "direct",
  47.                       "protocol": "freedom"
  48.             },
  49.             {
  50.             "tag": "warp",
  51.             "protocol": "socks",
  52.             "settings": {
  53.                 "servers": [
  54.                     {
  55.                         "address": "127.0.0.1",
  56.                         "port": 40000
  57.                     }
  58.                 ]
  59.             }
  60.         }
  61.     ],
  62.     "routing": {
  63.         "rules": [
  64.             {
  65.                 "type": "field",
  66.                 "outboundTag": "warp",
  67.                 "network": "tcp,udp"
  68.             }
  69.         ]
  70.     }
  71. }
复制代码
发表于 2023-12-10 18:58:19 | 显示全部楼层
试试这样
  1. {
  2.     "log": {
  3.         "loglevel": "debug"
  4.     },
  5.     "inbounds": [
  6.         {
  7.             "port": 12345,
  8.             "protocol": "vless",
  9.             "settings": {
  10.                 "clients": [
  11.                     {
  12.                         "id": "c7302ac1-6cf3-40c7-ba98-732c7481b977",
  13.                         "flow": "xtls-rprx-vision"
  14.                     }
  15.                 ],
  16.                 "decryption": "none"
  17.             },
  18.             "streamSettings": {
  19.                 "network": "tcp",
  20.                 "security": "reality",
  21.                 "realitySettings": {
  22.                     "dest": "learn.microsoft.com:443",
  23.                     "serverNames": [
  24.                         "learn.microsoft.com"
  25.                     ],
  26.                     "privateKey": "2CSVsGXkZ69S-M7TR-uBv55kPkusWSTEZDga3wwwUHU",
  27.                     "shortIds": [
  28.                         "",
  29.                         "0123456789abcdef"
  30.                     ]
  31.                 }
  32.             },
  33.             "sniffing": {
  34.                 "enabled": true,
  35.                 "destOverride": [
  36.                     "http",
  37.                     "tls",
  38.                     "quic"
  39.                 ],
  40.                 "routeOnly": true
  41.             }
  42.         }
  43.     ],
  44.     "outbounds": [
  45.             {
  46.             "tag": "warp",
  47.             "protocol": "socks",
  48.             "settings": {
  49.                 "servers": [
  50.                     {
  51.                         "address": "127.0.0.1",
  52.                         "port": 40000
  53.                     }
  54.                 ]
  55.             }
  56.         }
  57.     ]
  58. }
复制代码
 楼主| 发表于 2023-12-10 19:06:11 | 显示全部楼层

感谢大佬,我最早的时候就是这样配置,没添加routing,不通可能是因为偷证书的网站不对,现在这个learn.microsoft.com可以,谢谢
发表于 2023-12-10 19:22:45 | 显示全部楼层
Rebel 发表于 2023-12-10 19:06
感谢大佬,我最早的时候就是这样配置,没添加routing,不通可能是因为偷证书的网站不对,现在这个learn.m ...

那添加了routing可以吗?
 楼主| 发表于 2023-12-10 19:25:35 | 显示全部楼层
woputby 发表于 2023-12-10 19:22
那添加了routing可以吗?

目前按2L大佬给的设置可以用就没试了,你可以加routing试试,因为我不需要分流好像也用不到routing
发表于 2023-12-10 19:31:02 | 显示全部楼层
Rebel 发表于 2023-12-10 19:25
目前按2L大佬给的设置可以用就没试了,你可以加routing试试,因为我不需要分流好像也用不到routing ...

你试试啊,看看是不是routing的问题,你不想知道问题所在吗
 楼主| 发表于 2023-12-10 20:05:49 | 显示全部楼层
woputby 发表于 2023-12-10 19:31
你试试啊,看看是不是routing的问题,你不想知道问题所在吗

我刚刚试了,加routing没问题的,有可能出现问题的点:1.dest设置的域名不符合要求。2.未做分流的情况下outbounds不用指定多个,这两个暂时没做验证,目前满足我的需求就行。
发表于 2023-12-10 21:14:38 | 显示全部楼层
直接删了freedom的outbound, 再将routing配置删了就可以.
单出口不需要路由配置的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-8 16:42 , Processed in 0.075817 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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