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 5. Configuring an OpenVPN Server—The First Tunnel

In this chapter we will create an encryption key for OpenVPN and use it to set up our first OpenVPN tunnel between two Windows systems in the same network. By doing so, we have a test-bed environment where no problems with firewalls or routers will interfere with our OpenVPN setup, and we can concentrate on learning how to create tunnels.

A little work on the configuration file needs to be done and the key has to be exchanged between these systems. After this, the tunnel will be started and tested with the ping command. We will then copy the key on a Linux system and connect this system with a tunnel to the first Windows machine. As a last step, we will ensure that OpenVPN is run automatically on both systems and have a look at the Service Manager on Windows and the init system on Linux.