Using the status file
OpenVPN offers several options to monitor the clients connected to a server. The most commonly used method is using a status file. This recipe will show how to use and read the OpenVPN's status file.
Getting ready
We use the following network layout:
This recipe uses the PKI files created in the first recipe of this chapter. In this recipe, the server computer was running CentOS 5 Linux and OpenVPN 2.1.1. The first client was running Fedora 12 Linux and OpenVPN 2.1.1. The second client was running Windows XP SP3 and OpenVPN 2.1.1. For the Linux server, keep the server configuration file basic-udp-server.conf
from the recipe Server-side routing at hand. For the Linux client, keep the client configuration file basic-udp-client.conf
from the same recipe at hand. For the Windows client, keep the corresponding client configuration file basic-udp-client.ovpn
from the previous recipe at hand.
How to do it...
Create the server configuration file by adding a line to the
basic-udp...