Reading VPN client status from server?

How to customize and extend your OpenVPN installation.

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

Post Reply
kjans
OpenVpn Newbie
Posts: 1
Joined: Sat Sep 08, 2012 11:38 am

Reading VPN client status from server?

Post by kjans » Sat Sep 08, 2012 12:08 pm

Hi!
I have a small VPN network with a Fedora Linux 16 system as server.
I would like to read the client status (online/offline + IP address) from the server using a python script.
It is easy find out when someone connects by parsing the log file, but finding out when someone disconnects from the VPN network is much more problematic. I can't find this information in the log files or anywhere else. Any ideas on where to find that information?

Basically the idea is to write a small utility that would display all online clients.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Reading VPN client status from server?

Post by maikcat » Sun Sep 09, 2012 9:30 am

if you enable management interface you can use
openvpn-control utility which displays live connected clients...

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply