[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

This is an old revision of the document!


OpenVPN

Wikipedia about OpenVPN

OpenVPN is an open source software application that implements virtual private network (VPN) techniques for creating secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses a custom security protocol that utilizes SSL/TLS for key exchange. It is capable of traversing network address translators (NATs) and firewalls. It was written by James Yonan and is published under the GNU General Public License (GPL).

OpenVPN allows peers to authenticate each other using a pre-shared secret key, certificates, or username/password. When used in a multiclient-server configuration, it allows the server to release an authentication certificate for every client, using signature and Certificate authority. It uses the OpenSSL encryption library extensively, as well as the SSLv3/TLSv1 protocol, and contains many security and control features.

How to use OpenVPN

It's barely simple if you already got a ready-to-go config by any openvpn provider.

$ openvpn --config yourconfig.ovpn

If you don't get a config that you can use you should have a look at /etc/openvpn. Slackware got a example config with some good hints in there.

Using OpenVPN with automatic password input

Since I wanted to use my openvpn connection to start automatically when I put my Thinkpad into the dock I thought it would be usefull to add the 'password safe' feature. That feature is not added by default on Slackwares package. You have to add it to the slackbuild and recompile the package.

Start with grabbing the source and slackbuild from one of the Slackware mirrors.

http://mirrors.slackware.com/slackware/slackware64-14.0/source/n/openvpn/

Change the mirror for your needs, for example -current.

In the next step we will change the openvpn.Slackbuild file.

vim openvpn.Slackbuild

Look for the row that starts with

./configure \

Sources

 howtos:security:openvpn ()