Traffic Counting
zZedix opened this issue · 3 comments
Welcome
- Yes, I'm using the latest major release. Only such installations are supported.
- Yes, I'm using the supported system. Only such systems are supported.
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've included all information below (version, config, log, etc).
Description of the problem,screencshot would be good
hello
thank you for this amazing panel
i have a problem which happened recently ! the panel stopped counting traffics ! i even updated my panel but still doesnt count
Version of x-ui
$ x-ui version
# Paste output here
x-ui log or xray log
# paste log here
I have similar issue. for one inbound counting traffic for each user is ok but sum all users traffic does not match the calculated traffic for inbound.
Same here
@ahaddiba
Your problem is related to Xray config. In the configuration you have a policy section that sets xray to count the traffic and it looks like this:
"policy": {
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
If you add it where the outbound ends, you'll see it will count again.
I add a full config below and I hope it helps you.
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "zwsq.app",
"port": 443,
"users": [
{
"id": "487301c5-6412-4e98-b02f-0d233dbac832",
"alterId": 0,
"email": "t@t.tt",
"security": "auto",
"encryption": "none",
"flow": ""
}
]
}
],
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"allowInsecure": false,
"fingerprint": ""
}
}
}
],
"policy": {
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
}
]
},
"stats": {}
}