With an Ubuntu server running OpenVPN 2.2.1 and with


in the server.conf, how can I programmatically identify an individual client amongst multiple clients, and the IP address it has been assigned?


Configure a status file. It shows a "OpenVPN CLIENT LIST" and a "ROUTING TABLE". The client list has entries with the following values: "Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since".

Alternatively, you can configure a mnagenment socket and use the status command:

echo status | socat STDIO SOCKET:/var/run/openvpn.socket

This will display the same information.

Configuration file:

# Status file:
status /var/run/openvpn.status

# Managenment socket:
management /var/run/openvpn.socket unix
management-client-user root

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.