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?
OpenVPN client list
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: OpenVPN client list
add
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.
Code: Select all
status /tmp/openvpn-status.log
- dazo
- OpenVPN Inc.
- Posts: 155
- Joined: Mon Jan 11, 2010 10:14 am
- Location: dazo :: #openvpn-devel @ libera.chat
Re: OpenVPN client list
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:
Then you can use telnet to access the management interface ... type 'help' and you'll see all you can do there.
Code: Select all
management 127.0.0.1 45678
Code: Select all
[user@host:~] telnet localhost 45678