Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Add: 3rd floor, 137 Hoa B ng, Yn Ha, C u Gi y dist, H N i Tel: +84 4 269 6951, Fax: +84 4 269

6952 E-mail: info@genopen.com Website: www.genopen.com

OpenVPN

Ng i t o S ki m sot Phin b n

: : :

BI H U DOANH. <M ti li u> 1.0

OpenVPN 1.0

Ki m sot ti li u
Cc thay i

Ngy
08/08/2008

Ng i c p nh t
1.0

Phin b n
T ol n u

Cc thay i

Duy t ti li u Tn
Nguy n Thnh Tn Gim c

Ch c danh

Phn ph i B ns
1 2 3

Tn

a i m

Cng ty C ph n Cng ngh GEN

S trang : 2/6

OpenVPN 1.0

1. Gi i thi u

2. ci t: Thi t l p Openvpn server download hai gi lzo-2.03.tar v openvpn-2.1_rc7.tar t i trang: http://www.oberhumer.com/opensource/lzo/ http://www.openvpn.net/ Sau khi download v chng ta ti n hnh gi i nn v ci t . Tr c tin l lzo : tar xvzf lzo-1.08.tar.gz cd lzo-1.08 ./configure make make check make test make install Ti p theo chng ta ti n hnh ci t openvpn : tar xvzf openvpn-2.0.tar.gz cd openvpn-2.0 ./configure make make install 3.c u hnh cho Openvpn ho t ng c ta ti n hnh kh i t o . M t master CA certificate/key v SERVER certificate/key , cu i cng l client certificate/key . mv openvpn-2.0 /etc/openvpn // chuy n th m c cd /etc/openvpn/easy-rsa/2.0 // truy c p vo th m c t ng kh i t o certificate/key. . vars // c p nh t gi tr Key_Dir v Key_Config cho h th ng. ./clean-all // ti n hnh t o ra th m c keys v xa s ch d li u lu trong n u t n t i. ./build-ca // kh i t o ra CA certificate/key . ./build-key-server server // kh i t o certificate v private key cho server. ./build-key client // kh i t o certificate v private key cho client . ./build-dh Cng ty C ph n Cng ngh GEN S trang : 3/6

OpenVPN 1.0

Ti n hnh c u hnh cho openvpn server . mkdir /etc/openvpn/config cp /etc/openvpn/sample-config-files/server.conf /etc/openvpn/config cd /etc/openvpn/easy-rsa/2.0/keys cp dh1024.pem server.key server.crt ca.crt /etc/openvpn/config S a file server.config: vi /etc/openvpn/config/server.config

Ti n hnh kh i ng v ch y Openvpn server : openvpn /etc/openvpn/config/server.conf

Thi t l p Open VPN Client . B c 1 : Download b n open VPN dnh cho Windows t i y http://openvpn.net/release/openvpn-2.0.9-install.exe

Cng ty C ph n Cng ngh GEN

S trang : 4/6

OpenVPN 1.0

B c 2: Ti n hnh cc th t c ci t m c nh . Ri copy cc files ca.crt , client.crt , client.key trn server linux Vo th m c C:\Program Files\OpenVPN\config trn my Windows XP B c 3 : Dng notepad ti n hnh edit files C:\Program Files\OpenVPN\sampleconfig\client.opvn Save l i . R i copy files client.opvn vo th m c C:\Program Files\OpenVPN\config trn my Windows XP .

Ch : Tr c khi kh i ng OpenVPN c n ph i t t d ch v Iptables trn server: /etc/init.d/iptables stop


Kh i ng OpenvpnGui . S th y bi u t ng gc ph i task bar ph i mn hnh . Nh p chu t ph i bi u t ng v Click vo m c connect .

Cng ty C ph n Cng ngh GEN

S trang : 5/6

OpenVPN 1.0

Cng ty C ph n Cng ngh GEN

S trang : 6/6

You might also like