Overview
StartMyVPN tracks each user’s data usage across all VPN servers and enforces monthly bandwidth limits set on their plan.How tracking works
OpenVPN: Every successful authentication creates a log entry. When the connection ends, the bytes transferred are recorded against the user’s usage for the current billing period. WireGuard: StartMyVPN periodically readsrx_bytes / tx_bytes counters from the WireGuard interface on each server and updates the wireguard_configs table.
Both sources are combined to calculate total usage.
Billing period
Usage resets at the start of each billing period. The reset date is calculated from the service creation date — not the calendar month. For example, if a service started on the 15th, usage resets on the 15th of each month.Bandwidth limits
Plans can have a bandwidth limit set in GB. If set tonull, bandwidth is unlimited.
When a user reaches their limit:
- OpenVPN: The next connection attempt is rejected during authentication
- WireGuard: The peer config is removed from all servers (user will be disconnected)
API endpoints
Current usage for the authenticated user:Admin view
Admins can see per-user bandwidth usage in Admin → Users → [User] → Bandwidth.Unlimited plans
If a plan has no bandwidth limit (null), the API returns "unlimited": true and connections are never rejected for bandwidth reasons.