O'Reilly logo

Mastering OpenVPN by Jan Just Keijser, Eric F Crist

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fixing common configuration mistakes

When setting up an OpenVPN configuration, there are a few common mistakes that are easily made. These configuration mistakes can be roughly divided up into four categories:

  • Certificate (PKI) errors and mismatches
  • Option mismatches, such as tun versus tap, ciphers, and compression
  • Insufficient privileges to run OpenVPN
  • Routing mistakes

In this section, we will go through the first three of these categories. Routing mistakes will be discussed later in this chapter.

Wrong CA certificate in the client configuration

The client configuration file will almost always contain three lines like this:

ca ca.crt
cert client.crt
key client.key

These certificate and private key files were created in Chapter 3, PKIs and Certificates ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required