Linux – Monitor OpenVPN User Bandwidth Usage

debianlinuxopenvpn

So i've been researching this as much as possible and i haven't found a specific result.

I'm trying to monitor the incoming and outgoing bandwidth of OpenVPN users, i'm removing as many logs as possible for security reasons on the server, so how can i still monitor and limit the bandwidth of a user without monitoring what they're doing, etc.

Best Answer

I monitor and log the user bandwith storing the information from openvpn-status.log using the script below

https://github.com/jofrep/scripts/blob/master/openvpn/log-openvpn-users.pl