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

Using 'client-config-dir' files


In a setup where a single server can handle many clients, it is sometimes necessary to set per-client options that overrule the "global" options. The client-config-dir option is very useful for this. It allows the administrator to assign a specific IP address to a client, to push specific options such as compression and DNS server to a client, or to temporarily disable a client altogether.

Getting ready

This recipe is a continuation of the previous one. Install OpenVPN 2.1 on two computers. For this recipe, the server computer was running CentOS 5 Linux and OpenVPN 2.1.1 and the client was running Fedora 13 Linux and OpenVPN 2.1.1. Keep the configuration file, basic-udp-server.conf, from the previous recipe at hand, as well as the client configuration file, basic-udp-client.conf, at hand.

How to do it...

  1. Modify the server configuration file, basic-udp-server.conf, by adding a line:

       client-config-dir /etc/openvpn/cookbook/clients
    

    Then save it as example2-4-server...