opalata
19-01-2008, 18:47
OpenVPN SERVER
Bước 1: Cài đặt mặc định OpenVPN
Bước 2: Truy cập theo đường dẫn mặc định " C:\Program Files\OpenVPN\easy-rsa "
HÌNH 1
http://www.hotlinkfiles.com/files/746936_vic2u/OpenVPN_001.jpg
Chạy " init-conig.bat " theo HÌNH 1
Sau khi chạy file bạn sẽ thấy thêm 2 files "openssl" và "vars.bat" theo HÌNH 2
HÌNH 2
http://www.hotlinkfiles.com/files/746949_km4ow/OpenVPN_002.jpg
Bước 3: Tạo thư mục " keys " trong thư mục "easy-rsa" theo HÌNH 3
HÌNH 3
http://www.hotlinkfiles.com/files/746959_ophf6/OpenVPN_003.jpg
Chép 2 files "index.txt.start" và "******.start" vào thư mục "keys" và đổi tên thành "index.txt" và "******"
http://www.hotlinkfiles.com/files/746977_vt5nj/OpenVPN_004.jpg
Bước 4: Vào Start-->Run "cmd"
http://www.hotlinkfiles.com/files/746982_llmsl/OpenVPN_005.jpg
Bạn sẽ thấy file "dh1024.pem" vừa được tạo:
http://www.hotlinkfiles.com/files/746983_lqcnw/OpenVPN_006.jpg
Command line "C:\Program Files\OpenVPN\easy-rsa\build-ca.bat"
http://www.hotlinkfiles.com/files/746991_g8asm/OpenVPN_007.jpg
Command line "C:\Program Files\OpenVPN\easy-rsa\build-key-server.bat VPN-Server"
Sau khi chạy dòng lệnh bạn sẽ thấy :
http://www.hotlinkfiles.com/files/746990_wzmqg/OpenVPN_008.jpg
Bước 5 : Tạo Chìa khóa cho " Client "
Command line "C:\Program Files\OpenVPN\easy-rsa\build-key-server.bat client-name"
" client-name " có thể sửa tùy thích
Ví dụ : client-name <=> chusu105
http://www.hotlinkfiles.com/files/746998_wbkfd/OpenVPN_009.jpg
3 files này dành chép cho máy "Client" để kết nối với OpenVPN-Server
Bước 6:
Chép thư mục "keys" và tập tin "sample.ovpn" trong "C:\Program Files\OpenVPN\sample-config"
vào "C:\Program Files\OpenVPN\config"
http://www.hotlinkfiles.com/files/747003_zg775/OpenVPN_010.jpg
Chỉnh sửa lại file "sample"
http://www.hotlinkfiles.com/files/747005_ah2j8/OpenVPN_011.jpg
OpenVPN CLIENT
Chép 3 tập tin ( 'ca.crt' ' ; 'chusu105.crt' ; 'chusu105.key' ) tức là ( 'ca.crt' ' ; 'client-name.crt' ; 'client-name.key' )
vào thư mục "C:\Program Files\OpenVPN\config" ở máy Client. Tiếp tục chép file "sample.ovpn" và "C:\Program Files\OpenVPN\config". Chỉnh sửa lại file "sample.ovpn".
###
remote 192.168.0.36 ( là ip của máy Server )
http://www.hotlinkfiles.com/files/747027_m7y7c/OpenVPN_014.jpg
by Opalata
Bước 1: Cài đặt mặc định OpenVPN
Bước 2: Truy cập theo đường dẫn mặc định " C:\Program Files\OpenVPN\easy-rsa "
HÌNH 1
http://www.hotlinkfiles.com/files/746936_vic2u/OpenVPN_001.jpg
Chạy " init-conig.bat " theo HÌNH 1
Sau khi chạy file bạn sẽ thấy thêm 2 files "openssl" và "vars.bat" theo HÌNH 2
HÌNH 2
http://www.hotlinkfiles.com/files/746949_km4ow/OpenVPN_002.jpg
Bước 3: Tạo thư mục " keys " trong thư mục "easy-rsa" theo HÌNH 3
HÌNH 3
http://www.hotlinkfiles.com/files/746959_ophf6/OpenVPN_003.jpg
Chép 2 files "index.txt.start" và "******.start" vào thư mục "keys" và đổi tên thành "index.txt" và "******"
http://www.hotlinkfiles.com/files/746977_vt5nj/OpenVPN_004.jpg
Bước 4: Vào Start-->Run "cmd"
http://www.hotlinkfiles.com/files/746982_llmsl/OpenVPN_005.jpg
Bạn sẽ thấy file "dh1024.pem" vừa được tạo:
http://www.hotlinkfiles.com/files/746983_lqcnw/OpenVPN_006.jpg
Command line "C:\Program Files\OpenVPN\easy-rsa\build-ca.bat"
http://www.hotlinkfiles.com/files/746991_g8asm/OpenVPN_007.jpg
Command line "C:\Program Files\OpenVPN\easy-rsa\build-key-server.bat VPN-Server"
Sau khi chạy dòng lệnh bạn sẽ thấy :
http://www.hotlinkfiles.com/files/746990_wzmqg/OpenVPN_008.jpg
Bước 5 : Tạo Chìa khóa cho " Client "
Command line "C:\Program Files\OpenVPN\easy-rsa\build-key-server.bat client-name"
" client-name " có thể sửa tùy thích
Ví dụ : client-name <=> chusu105
http://www.hotlinkfiles.com/files/746998_wbkfd/OpenVPN_009.jpg
3 files này dành chép cho máy "Client" để kết nối với OpenVPN-Server
Bước 6:
Chép thư mục "keys" và tập tin "sample.ovpn" trong "C:\Program Files\OpenVPN\sample-config"
vào "C:\Program Files\OpenVPN\config"
http://www.hotlinkfiles.com/files/747003_zg775/OpenVPN_010.jpg
Chỉnh sửa lại file "sample"
http://www.hotlinkfiles.com/files/747005_ah2j8/OpenVPN_011.jpg
OpenVPN CLIENT
Chép 3 tập tin ( 'ca.crt' ' ; 'chusu105.crt' ; 'chusu105.key' ) tức là ( 'ca.crt' ' ; 'client-name.crt' ; 'client-name.key' )
vào thư mục "C:\Program Files\OpenVPN\config" ở máy Client. Tiếp tục chép file "sample.ovpn" và "C:\Program Files\OpenVPN\config". Chỉnh sửa lại file "sample.ovpn".
###
remote 192.168.0.36 ( là ip của máy Server )
http://www.hotlinkfiles.com/files/747027_m7y7c/OpenVPN_014.jpg
by Opalata