Skip to content
Contents
GuidesOpenWrt

Track 5G roaming usage by interface and device on OpenWrt

Cellular billing follows the operator's billing cycle and metering rules.

Cellular billing follows the operator's billing cycle and metering rules. vnStat can monitor traffic statistics on cellular interfaces, while nlbwmon can identify which LAN client consumed the data. Switching interfaces, restarting, or changing NAT may alter the observed metrics. Always synchronize the billing cycle and time zone first.

Clarify the threshold and actions

Set several alert thresholds and clearly define actions: block, switch to backup lines, or allow only essential services. Monitor traffic used by the router itself to prevent overlooking system updates and health checks.

Use a controlled download to align traffic quota

Log the 5G interface and client counts, as well as the carrier billing cycle. Have a single device download a file of known size and verify the increments at three distinct locations.

Use a small file to verify increments, compare local and operator data. Record units of measurement and risks of exceeding reporting intervals. Save the status in recoverable storage to reduce frequent writes.

Interface usage is used for overage prevention, while device count aids in location identification. Conservative threshold values are applied when billing metrics differ, and network or time period changes require subsequent verification.

Check whether vnStat tracks the selected lab interface and read its byte counters. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Check whether vnStat tracks the selected lab interface and read its byte counters. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check whether vnStat tracks the selected lab interface and read its byte counters. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments