Optimizing performance using iperf

This recipe is not really about OpenVPN but more about how to use the network performance measurement tool iperf in an OpenVPN setup. The iperf utility can be downloaded from http://sourceforge.net/projects/iperf/ for Linux, Windows, and MacOS.

In this recipe, we will run iperf outside of OpenVPN and over the VPN tunnel itself, after which the differences in performance will be explained.

Getting ready

We use the following network layout:

Getting ready

Set up the client and server certificates using the Setting up the public and private keys recipe from Chapter 2Client-server IP-only Networks. For this recipe, the server computer ...

Get OpenVPN Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.