I've gone through the process of configuring OpenVPN and Tunnelblick at least twice before and I never seem to get it right on the first or second try. This time I'll document a few of the paint points that I experienced even while following the excellent Digital Ocean guide to configuring OpenVPN on CentOS 6.
- Follow the "Initial OpenVPN Configuration" section from the DO document.
- When generating keys and certificates in the next section, the easy-rsa files are in
/usr/share/easy-rsa/
, not/usr/share/openvpn/easy-rsa/
. - Be descriptive when running
./build-key client
with something like./build-key jeremy-home
so that you don't get annoyed later that you have a config named "client". - The DO docs don't mention configuring a TLS-Auth key, even though the OpenVPN configuration now has it by default. Do this with
openvpn --genkey --secret /etc/openvpn/ta.key
before attempting to start theopenvpn
service. - You'll need a few more lines in
client.ovpn
to match the server config. These worked last time, but look at the OpenVPN logs when you try to connect for other errors.tls-auth ta.key 1
(the server uses this with0
) to enable TLS-Auth.cipher AES-256-CBC
to fix 'cipher' is used inconsistently errors.keysize 256
to fix 'keysize' is used inconsistently errors.tun-mtu 1500
to set the MTU, though I'm not sure this is really necessary.- Remove
comp-lzo
from the client if it's configured. This appears to cause an IP packet with unknown IP version=15 seen error.
- Be sure to copy the contents of
ta.key
into a new<tls-auth>
section at the end ofclient.ovpn
so that the client has the same static TLS-Auth key as the server.
Throughout all this, remember that after you drag and drop a configuration file into Tunnelblick, it gets put somewhere else and needs to be manually reloaded every time you make a configuration change to the client.ovpn
file you might be working with.
Things are now working with OpenVPN 2.4.4, easy-rsa 2.2.2, and Tunnelblick 3.7.4a.
The only requirement for your mention to be recognized is a link to this post in your post's content. You can update or delete your post and then re-submit the URL in the form to update or remove your response from this page.
Learn more about Webmentions.