B-andi-T / Openconnect-installer-Full-Management-Menu

OpenConnect VPN installer with management menu for Ubuntu servers
GNU General Public License v3.0
37 stars 15 forks source link

How to view users traffic #4

Open Hamedzargar opened 1 year ago

Hamedzargar commented 1 year ago

Your script is great and incredibly easy to use. I can simply add users, see connected ones, revoke them and ... Is there a way to inspect how much traffic (including download and upload) each user have used? OS is Ubuntu 20x I've been searching google and everywhere and I'm completely confused. Do ocserv have this feature or any easy to use library to suggest?

B-andi-T commented 1 year ago

I'm glad to hear that the script is useful for you. I am working on adding some new features to the script. Now, the functionality you want is possible with Radius Accounting. Currently, you can only see the bandwidth usage of connected users with "occtl show user USERNAME" command, but the reports will reset when the user disconnects. I will try to add a simple version of it in the new update.