全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

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

谁能发个v2ray的流量统计的配置

[复制链接]
发表于 2019-2-11 13:33:40 | 显示全部楼层 |阅读模式
  1. {
  2.   "stats": {},
  3.   "log" : {
  4.     "access": "/usr/logs/v2ray/access.out",
  5.     "error": "/usr/logs/v2ray/error.out",
  6.     "loglevel": "info"
  7.   },
  8.   "api" : {
  9.     "services" : [
  10.        "HandlerService",
  11.        "LoggerService",
  12.        "StatsService"
  13.     ],
  14.     "tag" : "api"
  15.   },
  16.   "policy": {
  17.                 "levels": {
  18.                         "0": {
  19.                                 "statsUserUplink": true,
  20.                                 "statsUserDownlink": true
  21.                         },
  22.                         "1": {
  23.                                 "statsUserUplink": true,
  24.                                 "statsUserDownlink": true
  25.                         }
  26.                 },
  27.                 "system": {
  28.                         "statsInboundUplink": true,
  29.                         "statsInboundDownlink": true
  30.                 }
  31.         },
  32.   "inbounds": [{
  33.     "port": 12089,
  34.     "protocol": "vmess",
  35.     "settings": {
  36.       "clients": [
  37.         {
  38.           "id": "ee8ff91c-3692-4161-b7f1-f5d8386aec21",
  39.           "email" : "XXXX@qq.com",
  40.           "level": 0,
  41.           "alterId": 64
  42.         }
  43.       ]
  44.     },
  45.     "tag" : "vmess"
  46.   },
  47.   {
  48.     "port": 8080,
  49.     "protocol": "mtproto",
  50.     "listen":"0.0.0.0",
  51.     "tag" : "mtproto-in",
  52.     "settings": {
  53.       "users" : [{"secret":"c00cd07623f7a213b9450eaf9b7b6932"}]
  54.     }
  55.   },
  56.   {
  57.     "listen": "127.0.0.1",
  58.     "port": 10085,
  59.     "protocol": "dokodemo-door",
  60.     "settings": {
  61.       "address": "127.0.0.1"
  62.     },
  63.     "tag": "api"
  64.   }],
  65.   "outbounds": [{
  66.     "protocol": "freedom",
  67.     "settings": {}
  68.   },{
  69.     "protocol": "blackhole",
  70.     "settings": {},
  71.     "tag": "blocked"
  72.   },{
  73.     "protocol": "mtproto",
  74.     "settings": {},
  75.     "tag": "mtproto-out"
  76.   }],
  77.   "routing": {
  78.     "rules": [
  79.       {
  80.         "type": "field",
  81.         "ip": ["geoip:private"],
  82.         "outboundTag": "blocked"
  83.       },
  84.       {
  85.         "type": "field",
  86.         "inboundTag": ["mtproto-in"],
  87.         "outboundTag": "mtproto-out"
  88.       },
  89.       {
  90.         "inboundTag": [
  91.           "api"
  92.         ],
  93.         "outboundTag": "api",
  94.         "type": "field"
  95.       }
  96.     ],
  97.     "strategy": "rules"
  98.   }
  99. }
复制代码


/usr/bin/v2ray/v2ctl api --server=127.0.0.1:10085 StatsService.GetStats 'name: "user>>>XXX@qq.com>>>traffic>>>downlink" reset: false'
执行就卡住
后台报错不能与127.0.0.1:0通讯,怀疑是dokodemo-door配置有问题
 楼主| 发表于 2019-2-11 13:37:55 | 显示全部楼层
有机场大佬吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-11-25 13:10 , Processed in 0.093617 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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