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

Windows login greeter


This recipe is a continuation of the previous recipe. It will demonstrate how to push a message from the OpenVPN server to the client during the connection phase. This message can be used as a legal warning or as a disclaimer message. In order to do this, we use the setenv-safe directive, which is available in OpenVPN 2.1 and higher. This directive can be pushed out to clients, in contrast with the more commonly-used setenv directive.

Getting ready

Install OpenVPN 2.1 or higher on two computers. Make sure the computers are connected over a network. Set up the client and server certificates using the first recipe from Chapter 2, Client-server IP-only Networks. For this recipe, the server computer was running Fedora 12 Linux and OpenVPN 2.1.1. The client was running Windows XP SP3 and OpenVPN 2.1.1. Keep the server configuration file, example6-1-server.conf, from the previous recipe at hand.

How to do it...

  1. Append a line to the server configuration file example6-1-server...