"status" script for OpenVPN

0

1

I hope I'm in the right section to post this ...

By configuring an OpenVPN server, I could call 2 scripts to connect and disconnect the client:

client-connect my-script.sh
client-disconnect my-script.sh

These 2 scripts, when called, include 2 environment variables: $bytes_received and $bytes_send

If I understand correctly, at the client-disconnect, I receive all the bytes sent and bytes received during the entire client session.

Is there a way to have this data in real time?

I saw that there was also a configuration status, but I did not understand what it was used ... Is there another script to configure that would be called frequently and with this information?

Thank you !

EDIT

Ok, I see that "status" is just a log file that's rewritten every minute.. I can parse it, but if there is another way, I mean a real script called every minute, that could be better :)

Doubidou

Posted 2019-04-09T17:45:13.210

Reputation: 101

No answers