OpenVPN client list

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
irashi
OpenVpn Newbie
Posts: 1
Joined: Tue May 22, 2012 12:05 pm

OpenVPN client list

Post by irashi » Tue May 22, 2012 12:13 pm

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?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN client list

Post by janjust » Tue May 22, 2012 12:35 pm

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.

User avatar
dazo
OpenVPN Inc.
Posts: 155
Joined: Mon Jan 11, 2010 10:14 am
Location: dazo :: #openvpn-devel @ libera.chat

Re: OpenVPN client list

Post by dazo » Tue May 22, 2012 12:49 pm

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

Post Reply