Professional Documents
Culture Documents
Open VPN
Open VPN
OpenVPN
Ng i t o S ki m sot Phin b n
: : :
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
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
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
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 .
S trang : 5/6
OpenVPN 1.0
S trang : 6/6