Mastering OpenVPN

Master building and integrating secure private networks using OpenVPN
Preview in Mapt

Mastering OpenVPN

Eric F Crist, Jan Just Keijser

1 customer reviews
Master building and integrating secure private networks using OpenVPN
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $39.99
Save 74%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Mastering OpenVPN Book Cover
Mastering OpenVPN
$ 39.99
$ 10.00
Mastering Machine Learning Algorithms Book Cover
Mastering Machine Learning Algorithms
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $55.98
Add to Cart

Book Details

ISBN 139781783553136
Paperback364 pages

Book Description

Security on the internet is increasingly vital to both businesses and individuals. Encrypting network traffic using Virtual Private Networks is one method to enhance security. The internet, corporate, and “free internet” networks grow more hostile every day. OpenVPN, the most widely used open source VPN package, allows you to create a secure network across these systems, keeping your private data secure. The main advantage of using OpenVPN is its portability, which allows it to be embedded into several systems.

This book is an advanced guide that will help you build secure Virtual Private Networks using OpenVPN. You will begin your journey with an exploration of OpenVPN, while discussing its modes of operation, its clients, its secret keys, and their format types. You will explore PKI: its setting up and working, PAM authentication, and MTU troubleshooting. Next, client-server mode is discussed, the most commonly used deployment model, and you will learn about the two modes of operation using "tun" and "tap" devices.

The book then progresses to more advanced concepts, such as deployment scenarios in tun devices which will include integration with back-end authentication, and securing your OpenVPN server using iptables, scripting, plugins, and using OpenVPN on mobile devices and networks.

Finally, you will discover the strengths and weaknesses of the current OpenVPN implementation, understand the future directions of OpenVPN, and delve into the troubleshooting techniques for OpenVPN.

By the end of the book, you will be able to build secure private networks across the internet and hostile networks with confidence.

Table of Contents

Chapter 1: Introduction to OpenVPN
What is a VPN?
Types of VPNs
Comparison of VPNs
OpenVPN packages
OpenVPN internals
Summary
Chapter 2: Point-to-point Mode
Pros and cons of the key mode
TCP protocol and different ports
OpenVPN secret keys
Routing
The complete setup
Three-way routing
Bridged tap adapter on both ends
Combining point-to-point mode with certificates
Summary
Chapter 3: PKIs and Certificates
An overview of PKI
OpenVPN server certificates
OpenVPN client certificates
Other features
Multiple CAs and CRLs
Extra security – hardware tokens, smart cards, and PKCS#11
Summary
Chapter 4: Client/Server Mode with tun Devices
Understanding the client/server mode
Setting up the Public Key Infrastructure
Initial setup of the client/server mode
Adding extra security
Basic production-level configuration files
Routing and server-side routing
Redirecting the default gateway
Client-specific configuration – CCD files
Client-side routing
The OpenVPN status file
The OpenVPN management interface
Session key renegotiation
Using IPv6
Advanced configuration options
Summary
Chapter 5: Advanced Deployment Scenarios in tun Mode
Enabling file sharing over VPN
Using LDAP as a backend authentication mechanism
Filtering OpenVPN
Windows network locations – public versus private
Using OpenVPN with HTTP or SOCKS proxies
Summary
Chapter 6: Client/Server Mode with tap Devices
The basic setup
Enabling client-to-client traffic
Using the tap device (bridging)
Using an external DHCP server
Checking broadcast and non-IP traffic
Comparing tun mode to tap mode
Summary
Chapter 7: Scripting and Plugins
Scripting
Plugins
Summary
Chapter 8: Using OpenVPN on Mobile Devices and Home Routers
Using the OpenVPN for an Android app
Using the OpenVPN Connect app for Android
Using the OpenVPN Connect app for iOS
Integrating smart phones into an existing VPN setup
Using a home router as a VPN client
Using a home router as a VPN server
Summary
Chapter 9: Troubleshooting and Tuning
How to read the log files
Fixing common configuration mistakes
Troubleshooting routing issues
How to optimize performance by using ping and iperf
Analyzing OpenVPN traffic by using tcpdump
Summary
Chapter 10: Future Directions
Current strengths
Current weaknesses
Where we are going
Summary

What You Will Learn

  • Identify different VPN protocols (IPSec, PPTP, OpenVPN)
  • Build your own PKI and manage certificates
  • Deploy your VPN on various devices like PCs, mobile phones, tablets, and more
  • Differentiate between the routed and bridged network
  • Enhance your VPN with monitoring and logging
  • Authenticate against third-party databases like LDAP or the Unix password file
  • Troubleshoot an OpenVPN setup that is not performing correctly

Authors

Table of Contents

Chapter 1: Introduction to OpenVPN
What is a VPN?
Types of VPNs
Comparison of VPNs
OpenVPN packages
OpenVPN internals
Summary
Chapter 2: Point-to-point Mode
Pros and cons of the key mode
TCP protocol and different ports
OpenVPN secret keys
Routing
The complete setup
Three-way routing
Bridged tap adapter on both ends
Combining point-to-point mode with certificates
Summary
Chapter 3: PKIs and Certificates
An overview of PKI
OpenVPN server certificates
OpenVPN client certificates
Other features
Multiple CAs and CRLs
Extra security – hardware tokens, smart cards, and PKCS#11
Summary
Chapter 4: Client/Server Mode with tun Devices
Understanding the client/server mode
Setting up the Public Key Infrastructure
Initial setup of the client/server mode
Adding extra security
Basic production-level configuration files
Routing and server-side routing
Redirecting the default gateway
Client-specific configuration – CCD files
Client-side routing
The OpenVPN status file
The OpenVPN management interface
Session key renegotiation
Using IPv6
Advanced configuration options
Summary
Chapter 5: Advanced Deployment Scenarios in tun Mode
Enabling file sharing over VPN
Using LDAP as a backend authentication mechanism
Filtering OpenVPN
Windows network locations – public versus private
Using OpenVPN with HTTP or SOCKS proxies
Summary
Chapter 6: Client/Server Mode with tap Devices
The basic setup
Enabling client-to-client traffic
Using the tap device (bridging)
Using an external DHCP server
Checking broadcast and non-IP traffic
Comparing tun mode to tap mode
Summary
Chapter 7: Scripting and Plugins
Scripting
Plugins
Summary
Chapter 8: Using OpenVPN on Mobile Devices and Home Routers
Using the OpenVPN for an Android app
Using the OpenVPN Connect app for Android
Using the OpenVPN Connect app for iOS
Integrating smart phones into an existing VPN setup
Using a home router as a VPN client
Using a home router as a VPN server
Summary
Chapter 9: Troubleshooting and Tuning
How to read the log files
Fixing common configuration mistakes
Troubleshooting routing issues
How to optimize performance by using ping and iperf
Analyzing OpenVPN traffic by using tcpdump
Summary
Chapter 10: Future Directions
Current strengths
Current weaknesses
Where we are going
Summary

Book Details

ISBN 139781783553136
Paperback364 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

OpenVPN Cookbook - Second Edition Book Cover
OpenVPN Cookbook - Second Edition
$ 39.99
$ 10.00
Troubleshooting OpenVPN Book Cover
Troubleshooting OpenVPN
$ 27.99
$ 10.00
Beginning OpenVPN 2.0.9 Book Cover
Beginning OpenVPN 2.0.9
$ 35.99
$ 10.00
Mastering pfSense Book Cover
Mastering pfSense
$ 39.99
$ 10.00
OpenVPN 2 Cookbook Book Cover
OpenVPN 2 Cookbook
$ 29.99
$ 10.00
Mastering KVM Virtualization Book Cover
Mastering KVM Virtualization
$ 39.99
$ 10.00