Book Image

OpenVPN: Building and Integrating Virtual Private Networks

Book Image

OpenVPN: Building and Integrating Virtual Private Networks

Overview of this book

OpenVPN is a powerful, open source SSL VPN application. It can secure site-to-site connections, WiFi and enterprise-scale remote connections. While being a full-featured VPN solution, OpenVPN is easy to use and does not suffer from the complexity that characterizes other IPSec VPN implementations. It uses the secure and stable TLS/SSL mechanisms for authentication and encryption. This book is an easy introduction to this popular VPN application. After introducing the basics of security and VPN, the book moves on to cover using OpenVPN, from installing it on various platforms, through configuring basic tunnels, to more advanced features, such as using the application with firewalls, routers, proxy servers, and OpenVPN scripting. While providing only necessary theoretical background, the book takes a practical approach, presenting plenty of examples.
Table of Contents (17 chapters)
OpenVPN
Credits
About the Author
About the Reviewers
Preface
Index

Chapter 7. The Command openvpn and its Configuration File

In this chapter we will have a look at the syntax of the command-line tool openvpn, which enables us to build tunnels quickly. By analyzing the standard configuration file we used to set up a tunnel with a pre-shared key, we will now dive into the depths of the configuration options of openvpn. This way, we will learn about basic tunnel network setup and control, compression, and debug output.

As a next step, the configuration file containing the certificate-based tunnel created in Chapter 6 will be in our focus. From then on we will go through several groups of parameters that can be given to openvpn (be it in a configuration file or at the command-line prompt). We will deal with examples for many of these parameters and look at scenarios where they might prove helpful. Parameters available in server and client mode, encryption, and Windows-specific options are explained.

Many of the following options are explained in detail on the...