I'm developing a website for managing OpenVPN users with Django framework. But I need to know is there any way to extract active users from OpenVPN? My server is running Ubuntu 12.04.
OpenVPN – How to View Connected Users to OpenVPN Server
openvpn
openvpn
I'm developing a website for managing OpenVPN users with Django framework. But I need to know is there any way to extract active users from OpenVPN? My server is running Ubuntu 12.04.
Best Answer
There should be a status log you can look at to show you, mine is, for examle:
cat /etc/openvpn/openvpn-status.log
EDIT:
As an alternative, adding the flag
--management IP port [pw-file]
or adding that same directive to yourserver.conf
, for example:management localhost 7505
This would allow you to telnet to that port and offer you a list of commands to run:
telnet localhost 7505
help