全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 756|回复: 1
打印 上一主题 下一主题

请教一个xui的分流问题

[复制链接]
跳转到指定楼层
1#
发表于 2023-9-5 14:57:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 shalulyq 于 2023-9-5 15:00 编辑

请教各位大屌一个xui的分流问题  这个分流文件不会统计入站列表的流量 只统计总流量 是啥问题

修改后的分流配置文件
  1. {
  2.   "inbounds": [
  3.     {
  4.       "port": 62789,
  5.       "protocol": "dokodemo-door",
  6.       "settings": {
  7.         "address": "127.0.0.1"
  8.       },
  9.       "tag": "api"
  10.     }
  11.   ],
  12.   "outbounds": [
  13.     {
  14.       "protocol": "freedom",
  15.       "tag": "direct"
  16.     },
  17.     {
  18.       "protocol": "blackhole",
  19.       "tag": "blocked"
  20.     },
  21.     {
  22.       "protocol": "socks",
  23.       "tag": "ChatGPT",
  24.       "settings": {
  25.         "servers": [
  26.           {
  27.             "address": "127.0.0.1",
  28.             "port": 40000
  29.           }
  30.         ]
  31.       }
  32.     }
  33.   ],
  34.   "routing": {
  35.     "domainStrategy": "AsIs",
  36.     "rules": [
  37.       {
  38.         "inboundTag": ["api"],
  39.         "outboundTag": "api",
  40.         "type": "field"
  41.       },
  42.       {
  43.         "ip": ["geoip:private"],
  44.         "outboundTag": "blocked",
  45.         "type": "field"
  46.       },
  47.       {
  48.         "protocol": ["bittorrent"],
  49.         "outboundTag": "blocked",
  50.         "type": "field"
  51.       },
  52.       {
  53.         "domain": ["openai.com", "ai.com"],
  54.         "outboundTag": "ChatGPT",
  55.         "type": "field"
  56.       }
  57.     ]
  58.   },
  59.   "stats": {
  60.     "system": {
  61.       "statsInboundDownlink": true,
  62.       "statsInboundUplink": true
  63.     }
  64.   }
  65. }
复制代码



原始配置文件
  1. {
  2.   "api": {
  3.     "services": [
  4.       "HandlerService",
  5.       "LoggerService",
  6.       "StatsService"
  7.     ],
  8.     "tag": "api"
  9.   },
  10.   "inbounds": [
  11.     {
  12.       "listen": "127.0.0.1",
  13.       "port": 62789,
  14.       "protocol": "dokodemo-door",
  15.       "settings": {
  16.         "address": "127.0.0.1"
  17.       },
  18.       "tag": "api"
  19.     }
  20.   ],
  21.   "outbounds": [
  22.     {
  23.       "protocol": "freedom",
  24.       "settings": {}
  25.     },
  26.     {
  27.       "protocol": "blackhole",
  28.       "settings": {},
  29.       "tag": "blocked"
  30.     }
  31.   ],
  32.   "policy": {
  33.     "levels": {
  34.       "0": {
  35.         "handshake": 10,
  36.         "connIdle": 100,
  37.         "uplinkOnly": 2,
  38.         "downlinkOnly": 3,
  39.         "statsUserUplink": true,
  40.         "statsUserDownlink": true,
  41.         "bufferSize": 10240
  42.       }
  43.     },
  44.     "system": {
  45.       "statsInboundDownlink": true,
  46.       "statsInboundUplink": true
  47.     }
  48.   },
  49.   "routing": {
  50.     "rules": [
  51.       {
  52.         "inboundTag": [
  53.           "api"
  54.         ],
  55.         "outboundTag": "api",
  56.         "type": "field"
  57.       },
  58.       {
  59.         "ip": [
  60.           "geoip:private"
  61.         ],
  62.         "outboundTag": "blocked",
  63.         "type": "field"
  64.       },
  65.       {
  66.         "outboundTag": "blocked",
  67.         "protocol": [
  68.           "bittorrent"
  69.         ],
  70.         "type": "field"
  71.       }
  72.     ]
  73.   },
  74.   "stats": {}
  75. }
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-4-28 22:04 , Processed in 0.062025 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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