從外部訪問公司內網服務器OpenV

從外部訪問公司內部服務器

使用命令: 
./clean-all  刪除keys目錄下的文件
./build-ca   製作ca證書
./build-key-server server
---------
使用默認配置,最後兩次需要選擇兩次y
    Sign the certificate? [y/n]:y
    1 out of 1 certificate requests certified, commit? [y/n]y
---------
./build-dh

服務器端證書生成完畢
---------
./build-key MedPioneer
---------
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
--------

ps -aux | grep openvpn
ss -tnlp | grep 1194
service openvpn start
service openvpn stop

使用密碼,修改配置文件:

在客戶端配置中
ca ca.crt
auth-user-pass
auth-nocache

openV訪問公司內網01

openV訪問公司內網02

openV訪問公司內網03

openV訪問公司內網04

openV訪問公司內網05

openV訪問公司內網06

IP內網轉發

只能訪問一臺機器,訪問不到其他機器

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章