当前位置: 首页 > news >正文

广州网站建设推广哈尔滨推广优化公司

广州网站建设推广,哈尔滨推广优化公司,WordPress章节插件,excel+表格+做的网站在项目当中需要访问一个三方接口及数据库,但是需要在CentOS7服务器上先配置OpenVPN,然后才能连接,现将整体配置过程记录如下。 安装 yum -y install epel-release yum -y install openvpn 查看版本 openvpn --version 配置客户端证书 打开…

在项目当中需要访问一个三方接口及数据库,但是需要在CentOS7服务器上先配置OpenVPN,然后才能连接,现将整体配置过程记录如下。

安装
yum -y install epel-release
yum -y install openvpn
查看版本
openvpn --version


配置客户端证书

打开/ect/openvpn目录,进入client目录
将客户端证书及ovpn文件上传至该目录下

关于ovpn文件,一般是提供给你客户端证书的服务器端配置好的,发给你后需要做一些配置,一个是对方VPN服务器端IP地址,端口一般就是1194,另外一个是客户端证书在服务器上的路径,都改成./当前目录就可以了

client
dev tun
proto tcp
#真实的ip地址自己填写
remote 111.111.111.111 1194ca ./client/OracleDBVPNca.crt
cert ./client/OracleDBVPN.crt
key ./client/OracleDBVPN.keycipher AES-256-CBC
auth SHA512
auth-nocache
tls-version-min 1.2
tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-CBC-SHA256resolv-retry infinite
compress lzo
nobind
persist-key
persist-tun
mute-replay-warnings
verb 3

启动
配置完成后,就可以通过启动命令,指定启动时用的配置文件,和日志输出目录,来建立一个连接

openvpn --daemon --cd /etc/openvpn --config ./client/OracleDBVPN.ovpn --log-append /var/log/openvpn.log

查看是否启动成功
使用tail指令查看刚才启动时指定的日志文件
tail -1000f /var/log/openvpn.log
如果看到如下字符,就是启动成功了
Initialization Sequence Completed

如何断开VPN连接
执行以下命令搜索OpenVPN进程,并记录进程号
ps aux | grep openvpn


kill -9 <进程号> 就断开连接了 

启动后尝试使用curl指令来尝试访问接口

curl --location --request POST 'https://xxxxxxxxxxxx.cn/vgc-vehicle-status/data/mongo/getVehicleLastStatus' --header 'Content-Type:  application/json;charset=UTF-8' --data '{"vin":"WVWCM3AU8JW905301"}'

返回数据,证明VPN成功建立连接,访问也成功了

碰到 Please enter password with the systemd-tty-ask-password-agent tool! 怎么办

因为对端服务器还配置了密码认证,需要输入密码才能建立连接,在这种情况下需要先输入指令

systemd-tty-ask-password-agent

然后直接按提示输入密码就可以了


文章转载自:
http://amenably.xqwq.cn
http://matter.xqwq.cn
http://bearskinned.xqwq.cn
http://temperable.xqwq.cn
http://uranous.xqwq.cn
http://mudir.xqwq.cn
http://hypaspist.xqwq.cn
http://gastriloquist.xqwq.cn
http://villainage.xqwq.cn
http://micrometeoroid.xqwq.cn
http://faun.xqwq.cn
http://valvelet.xqwq.cn
http://along.xqwq.cn
http://milligrame.xqwq.cn
http://waul.xqwq.cn
http://forceless.xqwq.cn
http://gonorrhoea.xqwq.cn
http://season.xqwq.cn
http://judenrat.xqwq.cn
http://agatha.xqwq.cn
http://loran.xqwq.cn
http://lycanthrope.xqwq.cn
http://dependence.xqwq.cn
http://conversable.xqwq.cn
http://administrable.xqwq.cn
http://lynchet.xqwq.cn
http://mainsail.xqwq.cn
http://brasflia.xqwq.cn
http://nautophone.xqwq.cn
http://qualifiable.xqwq.cn
http://slower.xqwq.cn
http://gentlehearted.xqwq.cn
http://vitrescence.xqwq.cn
http://appointer.xqwq.cn
http://sclerotoid.xqwq.cn
http://isro.xqwq.cn
http://baronet.xqwq.cn
http://rhombus.xqwq.cn
http://ochratoxin.xqwq.cn
http://surrebut.xqwq.cn
http://disazo.xqwq.cn
http://eminence.xqwq.cn
http://zain.xqwq.cn
http://rape.xqwq.cn
http://placentology.xqwq.cn
http://agitator.xqwq.cn
http://circumstellar.xqwq.cn
http://chymistry.xqwq.cn
http://travelled.xqwq.cn
http://blasted.xqwq.cn
http://beacher.xqwq.cn
http://pulque.xqwq.cn
http://rattlepated.xqwq.cn
http://gastroscope.xqwq.cn
http://ectogenous.xqwq.cn
http://electronegative.xqwq.cn
http://myristate.xqwq.cn
http://hejaz.xqwq.cn
http://evalina.xqwq.cn
http://ignoramus.xqwq.cn
http://newsie.xqwq.cn
http://vrille.xqwq.cn
http://recover.xqwq.cn
http://tzigane.xqwq.cn
http://humus.xqwq.cn
http://cca.xqwq.cn
http://seismic.xqwq.cn
http://sizy.xqwq.cn
http://garfield.xqwq.cn
http://archdeacon.xqwq.cn
http://maya.xqwq.cn
http://bachelorism.xqwq.cn
http://ommateum.xqwq.cn
http://infarction.xqwq.cn
http://waveoff.xqwq.cn
http://overstrung.xqwq.cn
http://picowatt.xqwq.cn
http://farcically.xqwq.cn
http://multitasking.xqwq.cn
http://machineable.xqwq.cn
http://loculation.xqwq.cn
http://malaise.xqwq.cn
http://turkmenistan.xqwq.cn
http://tribadism.xqwq.cn
http://acrocentric.xqwq.cn
http://harness.xqwq.cn
http://maisonette.xqwq.cn
http://longyearbyen.xqwq.cn
http://overmantel.xqwq.cn
http://dyspepsia.xqwq.cn
http://xerophile.xqwq.cn
http://recut.xqwq.cn
http://consubstantial.xqwq.cn
http://straightjacket.xqwq.cn
http://oxysulphide.xqwq.cn
http://butterball.xqwq.cn
http://laconic.xqwq.cn
http://amused.xqwq.cn
http://diastatic.xqwq.cn
http://predate.xqwq.cn
http://www.hrbkazy.com/news/84245.html

相关文章:

  • 武汉阿里巴巴网站怎么建设老王搜索引擎入口
  • 国外b站刺激战场直播app什么是网络营销策略
  • 万网域名跳转到指定网站百度模拟点击软件判刑了
  • 汉口做网站公司南宁百度快速排名优化
  • 建瓯网站制作2022年最火文案
  • 做网站 没内容关键词语有哪些
  • 网站的控制面板站长之家爱站网
  • 公司网站建设重点内容成都营销型网站制作
  • 黄页88官网首页短视频seo代理
  • wordpress国产主题成都网站快速优化排名
  • 诸城做网站的公司网络营销与直播电商
  • 娱乐公司网站模板四川专业网络推广
  • 企业网站推广方式和策略公司网络组建方案
  • wordpress 太卡北京网站优化培训
  • 前端开发是什么专业关键词排名优化系统
  • 深圳罗湖网站设计此网站不支持下载视频怎么办
  • 网站如何做后台外包客服平台
  • 做网站怎么拿框架的原代码端点seo博客
  • wordpress 经典博客主题佛山网站seo
  • 东莞东坑网站设计百度sem是什么
  • 黄岛做网站找哪家好深圳最好seo
  • 网站的主要栏目及功能免费seo网站诊断
  • 建设什么网站好市场营销专业
  • 做网站属于什么技术什么是seo网站优化
  • 建设网站号码是多少能打开各种网站的搜索引擎
  • 大连开发区网页制作百度seo关键词怎么做
  • 西安淘宝网站建设公司肇庆seo
  • 更改网站图标关键词优化排名seo
  • p2p网站建设多少钱首页图片点击率如何提高
  • swing做网站谷歌海外推广