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

Syntax of openvpn


In the previous chapters we have invoked openvpn at the command line several times. On Windows, this is an easy way to get more detailed output during troubleshooting; on Linux it is the normal way to set up a tunnel quickly. And on both systems this is what lies beneath the services layer of the services or the GUI Tools.

OpenVPN on both Windows and Linux is called by start scripts that add special parameters to the command openvpn. Normally, there is (among others) the parameter --config (followed by a filename) which lets openvpn read a configuration file; on Linux a file in /etc/openvpn/. On Windows configuration files have the extension .ovpn, on Linux .conf. The start scripts will read all configuration files in the configuration file directory and start the tunnels described in them. If you have three .conf files in your Linux configuration directory, openvpn will try to start three tunnels. The same applies for .ovpn files on Windows and if you double-click such...