欢迎来到天天文库
浏览记录
ID:40568646
大小:57.00 KB
页数:8页
时间:2019-08-04
《openvpn详细配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、核心出品必属精品免费下载OPENVPN安装手册 OPENVPN安装手顺系统环境及所需软件:OS :FREEBSD6.0openvpn:OpenVPN2.0.9.tar.gz lzo :lzo-2.02.tar.gz安装lzotarxzvflzo-2.02.tar.gzcd./lzo-2-2.02.tar.gz./configmakemakecheckmakeinstall安装openvpntarxzvf2.0.9.tar.gz ./configure--with-lzo-headers=/usr/local/
2、include--with-lzo-lib=/usr/local/libmakemakeinstall生成证书和密钥cdopenvpn-2.0.9/easy-rsa/vivarsKEY_COUNTRY,KEY_PROVINCE,KEY_CITY,KEY_ORG,KEY_EMAIL,比如我的exportKEY_COUNTRY=CNexportKEY_PROVINCE=liaoningexportKEY_CITY=dalianexportKEY_ORG=edgesoftexportKEY_EMAIL="liuhename@163.com"然后保存../vars(注意两个点中间
3、有空格BASH)./clean-all./build-cabuild-ca命令使用openssl命令生成certificateauthority(CA)certificate和密钥:-------------------------------------------------------------------------------bash-2.04#./build-caGeneratinga1024bitRSAprivatekey..........++++++................++++++writingnewprivatekeyto'ca.key'
4、-----Youareabouttobeaskedtoenterinformationthatwillbeincorporatedintoyourcertificaterequest.WhatyouareabouttoenteriswhatiscalledaDistinguishedNameoraDN.TherearequiteafewfieldsbutyoucanleavesomeblankForsomefieldstherewillbeadefaultvalue,Ifyouenter'.',thefieldwillbeleftblank.-----CountryNam
5、e(2lettercode)[CN]:StateorProvinceName(fullname)[liaoning]:LocalityName(eg,city)[dalian]:OrganizationName(eg,company)[edgesoft]:OrganizationalUnitName(eg,section)[]:CommonName(eg,yournameoryourserver'shostname)[]:liuheEmailAddress[liuhename@163.com]:---------------------------------------
6、----------------------------------------------为vpnserver产生证书和私钥./build-key-serverserverCommonName处填server,其他默认,为上面编辑vars文件时设置的值。"Signthecertificate?[y/n]"和"1outof1certificaterequestscertified,commit?[y/n]"两处选y。-------------------------------------------------------------------------------
7、-------bash-2.04#./build-key-serverserverGeneratinga1024bitRSAprivatekey.......................++++++..++++++writingnewprivatekeyto'server.key'-----Youareabouttobeaskedtoenterinformationthatwillbeincorporatedintoyourcertificaterequest.Whatyouareabouttoenteriswhatisc
此文档下载收益归作者所有