Book Image

OpenVPN 2 Cookbook

Book Image

OpenVPN 2 Cookbook

Overview of this book

Table of Contents (19 chapters)
OpenVPN 2 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Management interface


This recipe shows how an OpenVPN client is managed using the management interface from the server side.

Getting ready

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.

How to do it...

  1. Start the server using the "default" server configuration file:

    [root@server]# openvpn --config basic-udp-server.conf
    
  2. 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.

  3. Transfer the ca.crt, client2.crt, client2.key files and the tls-auth secret key file ta.key to...