|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
欢迎大家来到仓酷云论坛!OpenVPN是一个用于创立假造公用收集(VirtualPrivateNetwork)加密通道的收费开源软件。利用OpenVPN能够便利地在家庭、办公场合、留宿旅店等分歧收集会见场合之间搭建相似于局域网的公用收集通道。
利用OpenVPN共同特定的代办署理办事器,可用于会见Youtube、FaceBook、Twitter等受限网站,也可用于冲破公司的收集限定。
1、办事器端装置及设置
办事器情况:洁净的CentOS6.364位体系
内网IP:10.143.80.116
外网IP:203.195.***.***
OpenVPN版本:OpenVPN2.3.2x86_64-redhat-linux-gnu
1、装置前筹办
[size=1em][size=1em]#封闭selinux
[size=1em]setenforce0
[size=1em]sed-i/^SELINUX=/cSELINUX=disabled/etc/selinux/config
[size=1em]
[size=1em]#装置openssl和lzo,lzo用于紧缩通信数据加速传输速率
[size=1em]yum-yinstallopensslopenssl-devel
[size=1em]yum-yinstalllzo
[size=1em]
[size=1em]#装置epel源
[size=1em]rpm-ivhhttp://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
[size=1em]sed-is/^mirrorlist=https/mirrorlist=http//etc/yum.repos.d/epel.repo
2、装置及设置OpenVPN和easy-rsa
[size=1em][size=1em]#装置openvpn和easy-rsa
[size=1em]yum-yinstallopenvpneasy-rsa
[size=1em]
[size=1em]#修正vars文件
[size=1em]cd/usr/share/easy-rsa/2.0/
[size=1em]vimvars
<divstyle="padding:0px;margin:0px;color:rgb(85,85,85);font-family:宋体,ArialNarrow,arial,serif;font-size:14px;line-height:28px;"><divclass="syntaxhighlighterplain"id="highlighter_296787"style="width:720px;padding:0px!important;margin:0.3em0px!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow-y:visible!important;overflow-x:auto!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;box-sizing:content-box!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;"><divclass="container"style="padding:0px!important;margin:0px!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background:none!important;">[size=1em]#修正注册信息,好比公司地点、公司称号、部分称号等。
[size=1em]exportKEY_COUNTRY="CN"
[size=1em]exportKEY_PROVINCE="Shandong"
[size=1em]exportKEY_CITY="Qingdao"
[size=1em]exportKEY_ORG="MyOrganization"
<divclass="linenumber6index5alt1"style="white-space:nowrap;padding:0px1em!important;margin:0px!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:static!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;"> |
|