Hello, I never saw over 4GiB on wireguard per peer traffic counters, is it only me?
Support obviously can’t reproduce this on their devices.
never checked, maybe your device is aware you cannot count any higher than 4 ?
I wonder if there is some magic reset threshold…
One month ago:


Now:


Impossibru.
The interface only has this one peer, as you can see in both cases, now and one month ago RX counters match, as they are under 4GiB. But the peer TX counter rolled over a few times since then.
I love the “can’t reproduce” replies, I’ve asked for a screenshot with a peer recording over 4 GiB, let’s see what they cook up.
You are quite correct, I see the same thing.
I have a daily copy job of roughly 8Gb which gets pulled over to my laptop using wireguard on my router.
I never see the counters moving over 4Gb.
So for me it’s quite easy to demonstrate the problem.


I seem to recall this has been reported already before … have to look for the correct post.
EDIT: found it, 7.6RC thread:
http://forum.mikrotik.com/t/v7-6rc-is-released/161262/44
Well, surely it’s easy to reproduce, setup two peers and push over 4GiB of data over them, but if they can’t replicate the issue…
Ah, the old “bug reports lost in release topics” issue ![]()
Did you create a support ticket for it ?
Otherwise I will and point them to this thread.
Reference: SUP-114497
Summary: WireGuard: Peers Rx/Tx counters stored as 32bit
Maybe it’s platform dependent? I’ve only tested arm64 (rb5009).
Nah. I got my RB5009 since february of this year and I see in that 7.6RC thread I discussed it in oct 2022.
At that time my main router was Hex.
So it’s not only arm64.

It was mentioned in that topic that it even goes negative in the Android App, welp.. t’s true.. rofl
Surely they can’t reproduce this either I presume..
Wait… why is the MikroTik Android App using different units here? MB vs MiB? …
[admin@MikroTik] > :put [/interface/wireguard/peers/get [find where interface=wg-rw-01] value-name=rx ]
995382692
WinBox / WebFig shows 949.3 MiB
The MikroTik App shows 995.4 MB
We’re not selling storage devices, MikroTik …
This is very easy to recreate.
- Open webfig to the peer section so you can see the counters.
- Push more than 4GiB of traffic, I push 5 just to be sure. (While on the page the counters will move past 4GiB without issue, but the counter history cannot save more than 4GiB)
- Navigate away from the page to lets say the Interfaces page.
- Go back to the wireguard/peers page and you will see the counters have reset.
Tested with CCR2216 on 7.10rc1.
Oh, so if you’re watching in real time the counter doesn’t reset?
Probably that’s what they mean that they can’t recreate this … they’ve never closed/reopened that page/menu/window?
If I can only figure out how to do this for my cell phone usage ![]()
Happens in Winbox too.
Counters move up to 4Gb = 4096 Mb and then restart at 0.
You don’t even have to move away from that window.
Is there any progress on the issue? Year gone and peer counters still reset @32bit byte value
I’m running into this issue having set up a WG server on an rb5009 running 7.18.2. I’ve raised another support ticket with MT to get this looked at, referencing this thread & the previously reported ticket. Will report back with anything I hear.