1.在你的Linux机器或者 VPS 上安装OpenVPN服务
从 https://openvpn.net/index.php/access-server/download-openvpn-as-sw.html (它被墙一点都不奇怪,你知道的)下载安装包,Ubuntu用户也可以找到合适的安装包并安装。
1.[leo@vps ]$ cd /tmp 2.[leo@vps tmp]$ wget http://swupdate.openvpn.org/as/openvpn-as-2.0.10-CentOS7.x86_64.rpm 3.[leo@vps tmp]$ sudo rpm -Uvh openvpn-as-2.0.10-CentOS7.x86_64.rpm 4.Preparing... ################################# [100%] 5.Updating / installing... 6. 1:openvpn-as-0:2.0.10-CentOSrelease################################# [100%] 7.The Access Server has been successfully installed in /usr/local/openvpn_as 8.Configuration log file has been written to /usr/local/openvpn_as/init.log 9.Please enter "passwd openvpn" to set the initial 10.administrative password, then login as "openvpn" to continue 11.configuration here: https://yourhostIP:943/admin 12.To reconfigure manually, use the /usr/local/openvpn_as/bin/ovpn-init tool. 13. 14.Access Server web UIs are available here: 15.Admin UI: https://yourhostIP:943/admin 16.Client UI: https://yourhostIP:943/
2.为 OpenVPN 客户端设置密码
1.[leo_g@vps ]$passwd openvpn
3.通过管理URL https://yourhostIP:943/admin 登录并启动服务

输入用户名 “openvpn” 和你先前设置的密码

4.从客户端URL安装客户端 (它会给你一个选项下载安装程序)

你可以在”https://openvpn.net”看指导来了解如何在你的操作系统上安装。
5.用你先前创建的用户名和密码连接你的服务器

就是这样,你可以访问whatismyip.com来查看你的IP,应该已经是你的CentOS 7上的OpenVPN的地址了。
近期评论