Traffic Monitoring
The server continuously tracks usage so operators can measure consumption and enforce policy.
Capabilities
- Real-time traffic tracking — upload/download usage per user
- Session-based statistics — bytes sent/received per session
- Total usage analytics — cumulative counters across sessions
- Automatic data persistence — traffic data saved to JSON about every 10 seconds
- Live bandwidth monitoring — real-time bandwidth visibility
- Unauthorized website blocking — deny domains you do not want users to visit
- Unauthorized IP blocking — deny destination IPs you do not want users to reach
- Visited website tracking — optional per-user logging (
log: "yes"/"no")
What Is Tracked
- Bytes sent and received per session
- Total traffic per user
- Session timestamps
- Real-time bandwidth usage
Persistence
Traffic snapshots are written to files such as traffic_username.json. See Traffic Statistics for the schema.