INSTALASI OPENVPN DI DEBIAN
First, we need to quickly install openvpn on our debian server.
aptitude install openvpn
#updatedb
#locate easy-rsa
Once we find the folder, we need to copy it to /etc/openvpn:
#cp -R /usr/share/doc/openvpn/examples/easy-rsa /etc/openvpn
#cp /usr/share/doc/openvpn/examples/sample-config-files/server.conf.gz /etc/openvpn
#cd /etc/openvpn/easy-rsa/2.0
#nano vars
Edit like this :
export KEY_COUNTRY="US"
export KEY_PROVINCE="CA"
export KEY_CITY="SanDiego"
export KEY_ORG="OpenVPN"
export KEY_EMAIL=myemail@mydomain.com
#. ./vars
(dot space ./vars)
#./clean-all
#./build-ca
#./build-key-server server
#./build-key client1
#./build-dh
#cp ca.crt ca.key dh1024.pem server.crt server.key /etc/openvpn
#cd /etc/openvpn
#gunzip server.conf.gz
#mv server.conf openvpn.conf
#nano openvpn.conf
Aktifkan baris :
client-to-client
restart openvpn
Share with your friends: |