关于流量监听



  • 大佬什么时候能做个教程啊,照着官网教程改了一下给配置加了些东西,最后是这样的,可以正常使用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面板化管理项目优化一下一件脚本,真正一条龙服务,在此先感谢大佬了



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


登录后回复