Berikut langkah-langkah instalasi OpenVPN community edition pada Centos 6.4.
- Menambahkan Fedora repository supaya kita bisa menginstall OpenVPN :
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh epel-release-6-8.noarch.rpm - Menginstall OpenVPN:
# yum install openvpn -yJika ingin melihat file-file hasil instalasi bisa dilakukan:
# rpm -ql openvpn - Copy contoh configuration ke /etc/openvpn
# cp /usr/share/doc/openvpn-2.3.2/sample/sample-config-files/server.conf /etc/openvpn - Instalasi easy-rsa:
# yum install easy-rsaUntuk melihat file-file hasil instalasi:
# rpm -ql easy-rsa - Pembuatan certificate
# mkdir -p /etc/openvpn/easy-rsa/keys
# cp -rf /usr/share/easy-rsa/2.0/* /etc/openvpn/easy-rsa
# cd /etc/openvpn/easy-rsa/
# vi vars
# . ./vars
# ./clean-all
# ./build-ca
# ./build-key-server server
# ./build-key client1
# ./build-key client2
# ./build-key client3
# ./build-dh - Copy certificate ke /etc/openvpn
# cd /etc/openvpn/easy-rsa/keys
# cp dh1024.pem ca.crt server.crt server.key /etc/openvpn - Menstart openvpn
# service openvpn start - Membuat auto start saat boot openvpn:
# chkconfig openvpn on
Referensi:
1. http://openvpn.net/index.php/open-source/documentation/howto.html
2. https://www.digitalocean.com/community/articles/how-to-setup-and-configure-an-openvpn-server-on-centos-6 .
Kunjungi www.proweb.co.id untuk menambah wawasan anda.
Instalasi OpenVPN di Centos