A
A
Arslanali2020-05-28 09:31:05
PHP
Arslanali, 2020-05-28 09:31:05

How to track, parse, visually monitor connected users via OpenVPN?

Good afternoon!

To connect remote employees, OpenVPN was raised in the company.
It is necessary to monitor who and when connected from remote employees to the OpenVPN server.
Where is the log file located on the server?
How and with what to parse this log file and visually display it for the management (HR department)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2020-05-28
@Arsen2011

There is a status directive in the openvpn config - in it you can set the path to the file where openvpn will add the current information on connected connections. How to parse - FIG knows, parse it yourself, the log is simple.
In the log or log-append directives - specify the general log file, all the rest of the information from openvpn is poured there.
The logging level is set using verb.

B
Bronn, 2020-05-28
@bronn

Under FreeBSD, I have logs from three OpenVPN processes in /var/log/openvpnN.log
For simple monitoring, text files are written
/usr/local/etc/openvpn-statusN.log
Their format is quite simple, for example:
OpenVPN CLIENT LIST
Updated , Thu May 28 16:31:18 2020
Common Name,Real Address,Bytes Received,Bytes Sent,Connected ,33079349,Wed May 27 13:07:01 2020 ROUTING TABLE Virtual Address, Common Name, Real Address, Last Ref 10.8 . 136.132.112.27,Thu May 28 16:31:17 2020

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question