VIRTUAL PRIVATE NETWORK dengan Open VPN (client linux)

21 Aug

VPN CLIENT LINUX
11. install rpm yang dibutuhkan
http://dag.wieers.com/rpm/packages/lzo2/
[root@router test]# rpm -Uvh lzo2-2.02-3.el4.rf.i386.rpm lzo2-devel-2.02-3.el4.rf.i386.rpm
warning: lzo2-2.02-3.el4.rf.i386.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing… ########################################### [100%]
1:lzo2 ########################################### [ 50%]
2:lzo2-devel ########################################### [100%]

http://dag.wieers.com/rpm/packages/openvpn/
[root@iscatm2 oracle]# rpm -Uvh openvpn-2.0.9-1.el5.rf.i386.rpm
warning: openvpn-2.0.9-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing… ########################################### [100%]
1:openvpn ########################################### [100%]

12. copy file /etc/openvpn/vars dari Server. Copy key client dari Server
[root@iscatm2 keys]# scp -r root@202.43.252.1:/etc/openvpn/easy-rsa/keys/ca.crt /etc/openvpn/easy-rsa/keys
root@202.43.252.1’s password:
ca.crt 100% 1261 1.2KB/s 00:00
[root@iscatm2 keys]# scp -r root@202.43.252.1:/etc/openvpn/easy-rsa/keys/myclient1.* /etc/openvpn/
root@202.43.252.1’s password:
myclient1.crt 100% 3569 3.5KB/s 00:00
myclient1.csr 100% 749 0.7KB/s 00:00
myclient1.key 100% 887 0.9KB/s 00:00

[root@iscatm2 keys]# touch /etc/openvpn/openvpn-status.log
[root@iscatm2 keys]# touch /etc/openvpn/openvpn.log
[root@iscatm2 keys]# chown nobody:nobody /etc/openvpn/openvpn-status.log
[root@iscatm2 keys]# chown nobody:nobody /etc/openvpn/openvpn.log

13. Konfigurasi OpenVPN client
[root@iscatm2 easy-rsa]# vim /etc/openvpn/client.conf
############################################################################
# client openvpn
#
############################################################################
client
dev tun
proto tcp
remote 202.43.252.1 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert myclient1.crt
key myclient1.key
comp-lzo
verb 3

1. VIRTUAL PRIVATE NETWORK dengan Open VPN (pendahuluan)

2. VIRTUAL PRIVATE NETWORK dengan Open VPN (server)

3. VIRTUAL PRIVATE NETWORK dengan Open VPN (client linux)

4. VIRTUAL PRIVATE NETWORK dengan Open VPN (client windows)

5. VIRTUAL PRIVATE NETWORK dengan Open VPN (server login with password)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: