Beruflich Dokumente
Kultur Dokumente
(https://www.quickservers.com/en/index.php)
BLOG
VPS HOSTING (HTTPS://WWW.QUICKSERVERS.COM/EN/INDEX.PHP)
DOMAINS (HTTPS://WWW.QUICKSERVERS.COM/EN/DOMAIN-NAMES.PHP)
SSL (HTTPS://WWW.QUICKSERVERS.COM/EN/SSL-CERTIFICATES.PHP)
ABOUT (HTTPS://WWW.QUICKSERVERS.COM/EN/CONTACT.PHP)
(HTTPS://WWW.QUICKSERVERS.COM/NL/HOW-TO-INSTALL-OPENVPN-ON-
CENTOS.PHP)
In this tutorial we explain how to install OpenVPN on your QuickServers virtual or dedicated server.
OpenVPN is an open source VPN application that lets you create and join a private network securely
over the internet.
On CentOS 6:
https://www.quickservers.com/en/how-to-install-openvpn-on-centos.php 1/7
5/6/2019 How To Install OpenVPN on CentOS
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
On CentOS 7:
Copy the sample.conf to /etc/openvpn as starting point for our own con g le.
vi /etc/openvpn/server.conf
Uncomment the following lines and make them look like as below:
Create a folder to store the key and certi cates in, copy the key generation script and openssl.cnf with
this command:
vi /etc/openvpn/easy-rsa/vars
Find (and uncomment when commented) these lines and change them with your own information.
export KEY_COUNTRY="NL"
export KEY_PROVINCE="FL"
export KEY_CITY="Amsterdam"
export KEY_ORG="QuickServers"
https://www.quickservers.com/en/how-to-install-openvpn-on-centos.php 2/7
5/6/2019 How To Install OpenVPN on CentOS
export KEY_EMAIL="admin@quickservers.com"
export KEY_OU="IT"
Change KEY_NAME to "server". Do not change it to something else since we use 'server' also in other
commands in this tutorial.
export KEY_NAME="server"
export KEY_CN=openvpn.quickservers.com
Now we're going to generate all keys and certi cates. As we specifed all variables already in
/etc/openvpn/easy-rsa/vars, just press ENTER on each question.
./build-ca
./build-key-server server
./build-dh
Add this rule to allow VPN traf c go through. Change 'venet0' to your main network adapter name. In
most cases this is venet0 or eth0.
net.ipv4.ip_forward = 1
Add this rule to allow VPN traf c go through. Change 'venet0' to your main network adapter name. In
most cases this is venet0 or eth0.
vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
And now?
Windows: http://openvpn.net/index.php/open-source/downloads.html
Mac: https://code.google.com/p/tunnelblick/
client
dev tun
proto udp
remote vpn.quickservers.com 1194
resolv-retry in nite
nobind
persist-key
persist-tun
comp-lzo
verb 3
< ca>
-----BEGIN CERTIFICATE-----
MIIEtzCCA5+gAwIBAgIJAKdTKTrDcEmpMA0GCSqGSIb3DQEBCwUAMIGYMQswCQYD
VQQGEwJOTDELMAkGA1UECBMCRkwxDzANBgNVBAcTBkFsbWVyZTERMA8GA1UEChMI
-----END CERTIFICATE-----
< /ca>
< cert>
-----BEGIN CERTIFICATE-----
MIIE9TCCA92gAwIBAgIBAjANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCTkwx
CzAJBgNVBAgTAkZMMQ8wDQYDVQQHEwZBbG1lcmUxETAPBgNVBAoTCEVub3JtYWls
-----END CERTIFICATE-----
< /cert>
< key>
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC7N5Bd12XYuDBz
lWmyaGsuRbf3k0gQuRwzO88pqSd rhEb036gfPIIv5SQrEPZ+2fLqbqQqg+weQS
-----END PRIVATE KEY-----
< /key>
(https://www.quickservers.com/en/index.php)
Hosting
https://www.quickservers.com/en/how-to-install-openvpn-on-centos.php 6/7
5/6/2019 How To Install OpenVPN on CentOS
Services
Domains (https://www.quickservers.com/en/domain-names.php)
QuickServers
Sign Up (https://www.quickservers.com/en/signup.php)
Language
English (http://www.quickservers.com/en/index.php)
Nederlands (http://www.quickservers.com/nl/index.php)
https://www.quickservers.com/en/how-to-install-openvpn-on-centos.php 7/7