-
Book Overview & Buying
-
Table Of Contents
OpenVPN 2 Cookbook
This recipe shows how an OpenVPN client is managed using the management interface from the server side.
This recipe uses the PKI files created in the first recipe of this chapter. For this recipe, we used the server computer that runs CentOS 5 Linux and OpenVPN 2.1.1. The client was running Windows XP SP3 and OpenVPN 2.1.1. For the server, one should keep the configuration file basic-udp-server.conf from the recipe Server-side routing at hand. For the Windows client, keep the configuration file basic-udp-client.ovpn from the recipe Using an 'ifconfig-pool' block at hand.
Start the server using the "default" server configuration file:
[root@server]# openvpn --config basic-udp-server.conf
Create a configuration file for the Windows client by adding a line to the basic-udp-client.ovpn file:
management tunnel 23000 stdin
Save it as example2-9.ovpn.
Transfer the ca.crt, client2.crt, client2.key files and the tls-auth secret key file ta.key to...