Instalasi OpenVPN di Centos

Berikut langkah-langkah instalasi OpenVPN community edition pada Centos 6.4.

  1. 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
  2. Menginstall OpenVPN:
    # yum install openvpn -y

    Jika ingin melihat file-file hasil instalasi bisa dilakukan:
    # rpm -ql openvpn

  3. Copy contoh configuration ke /etc/openvpn
    # cp /usr/share/doc/openvpn-2.3.2/sample/sample-config-files/server.conf /etc/openvpn
  4. Instalasi easy-rsa:
    # yum install easy-rsa

    Untuk melihat file-file hasil instalasi:
    # rpm -ql easy-rsa

  5. 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
  6. Copy certificate ke /etc/openvpn
    # cd /etc/openvpn/easy-rsa/keys
    # cp dh1024.pem ca.crt server.crt server.key /etc/openvpn
  7. Menstart openvpn
    # service openvpn start
  8. 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.

Archives