O'Reilly logo

OpenVPN 2 Cookbook by Jan Just Keijser

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required