导航

    网络跳越论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    • 热门

    关于流量监听

    V2ray讨论区
    2
    2
    7
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 7
      740904252 最后由 编辑

      大佬什么时候能做个教程啊,照着官网教程改了一下给配置加了些东西,最后是这样的,可以正常使用v2,但是自己不懂怎么查看流量记录(用官网的v2ctl api -h,显示command not found),希望大佬指点
      {
      "stats": {},
      "api": {
      "tag": "api",
      "services": [
      "StatsService"
      ]
      },
      "policy": {
      "levels": {
      "0": {
      "statsUserUplink": true,
      "statsUserDownlink": true
      }
      },
      "system": {
      "statsInboundUplink": true,
      "statsInboundDownlink": true
      }
      },
      "log": {
      "loglevel": "info",
      "access": "/var/log/v2ray/access.log",
      "error": "/var/log/v2ray/error.log"
      },
      "inbounds": [{
      "port": 24571,
      "protocol": "vmess",
      "settings": {
      "clients": [
      {
      "email": "1",
      "id": "cf7a455d-fca8-4110-9480-61675c39856b",
      "level": 1,
      "alterId": 55
      },
      {
      "email": "2",
      "id": "786c7448-526c-4f91-a244-7610bd9d4421",
      "level": 1,
      "alterId": 60
      },
      {
      "email": "3",
      "id": "e9f368a6-5180-4ef0-80c0-4b3acacfc747",
      "level": 1,
      "alterId": 60
      }
      ]
      },
      "streamSettings": {
      "network": "ws",
      "wsSettings": {
      "path": "/aabbcc",
      "headers": {
      "Host": "************"#手动屏蔽
      }
      }
      },
      "listen": "127.0.0.1"
      },
      {
      "listen": "127.0.0.2",
      "port": 10085,
      "protocol": "dokodemo-door",
      "settings": {
      "address": "127.0.0.2"
      },
      "tag": "api"
      }
      ],
      "outbounds": [{
      "protocol": "freedom",
      "settings": {}
      },{
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
      }],
      "routing": {
      "rules": [
      {
      "type": "field",
      "ip": ["geoip:private"],
      "outboundTag": "blocked"
      },
      {
      "inboundTag": [
      "api"
      ],
      "outboundTag": "api",
      "type": "field"
      }
      ]
      }
      }

      我觉得应该是有记录生成了,但是自己不知道在哪看,顺带一提,感觉还可以结合一下那个Git上的v2面板化管理项目优化一下一件脚本,真正一条龙服务,在此先感谢大佬了

      1 条回复 最后回复 回复 引用 0
      • H
        hijk 最后由 编辑

        v2ctl的路径是/usr/bin/v2ray/v2ctl,用全路径试试

        1 条回复 最后回复 回复 引用 0
        • 1 / 1
        • First post
          Last post
        © 网络跳越论坛 技术博客:网络跳越 | V2ray科技