Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traffic Counting #151

Open
4 tasks done
zZedix opened this issue Feb 12, 2023 · 3 comments
Open
4 tasks done

Traffic Counting #151

zZedix opened this issue Feb 12, 2023 · 3 comments

Comments

@zZedix
Copy link

zZedix commented Feb 12, 2023

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
@amirqasemi74
Copy link

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.

@aligilani1986
Copy link

Same here

@zwsq
Copy link

zwsq commented Mar 8, 2023

@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": "[email protected]",
"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": {}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants