Page 1 of 1

OpenVPN client list

Posted: Tue May 22, 2012 12:13 pm
by irashi
Hello! i am inquiring about the community version of OpenVPN v2.2.2
So my issue is that i need a way to see the number of clients connected.
Is there any configuration or any way to type into the command line of OpenVPN to show the number of connected clients?

Re: OpenVPN client list

Posted: Tue May 22, 2012 12:35 pm
by janjust
add

Code: Select all

status /tmp/openvpn-status.log
to the server config and restart the openvpn server process; the file /tmp/openvpn-status.log will now contain info on the connected clients. There is no way to retrieve this info using a command-line option.

Re: OpenVPN client list

Posted: Tue May 22, 2012 12:49 pm
by dazo
JJK is right ... and --status is one good way. But there is another approach as well, using the --management interface. If you add the following line to your server config:

Code: Select all

management 127.0.0.1 45678
Then you can use telnet to access the management interface ... type 'help' and you'll see all you can do there.

Code: Select all

[user@host:~] telnet localhost 45678