还在担心数据安全和隐私?来试试这款开源VPN服务器

运维 系统运维 开源
在本篇Linux教程中,我会在CentOS 7上安装一个OpenVPN服务。OpenVPN很容易使用,开源且拥有社区的支持。它的客户端支持Windows、Android和Mac。

我上网时最担心的一件事情是,我该如何确保我的数据安全和隐私。在搜索答案的过程中,我找到了很多保持匿名的方法,比如使用代理网站。但是使用第三方的服务不能完全保证。我需要的是有一款软件可以让我自己安装并运行,那样我就能确保只有我才能访问数据。

这款软件叫什么呢?

它叫VPN服务,就是虚拟隐私网络的简称。它允许访问时通过SSL加密你的数据。因为是加密的连接,所以你的ISP不能看到你的浏览信息。

在本篇Linux教程中,我会在CentOS 7上安装一个OpenVPN服务。OpenVPN很容易使用,开源且拥有社区的支持。它的客户端支持Windows、Android和Mac。

 

第一步: 在你的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/

 

第二步: 为 OpenVPN 客户端设置密码

  1. [leo_g@vps ]$passwd openvpn

 

第三步: 通过管理URL https://yourhostIP:943/admin 登录并启动服务

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

 

第四步: 从客户端URL安装客户端 (它会给你一个选项下载安装程序)

你可以在这里看指导来了解如何在你的操作系统上安装。

 

第五步: 用你先前创建的用户名和密码连接你的服务器

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


via: http://techarena51.com/index.php/how-to-install-an-opensource-vpn-server-on-linux/

作者:Leo G 译者:geekpi 校对:wxy

责任编辑:林师授 来源: Linux中国
相关推荐

2016-09-23 18:32:42

iTunesIOS 10苹果

2019-07-12 08:37:22

DockerNginx程序员

2019-08-19 01:25:48

服务器进程OOM

2023-10-12 07:43:00

2011-08-02 16:17:00

2010-07-29 10:54:21

VPN设置

2020-11-11 15:36:51

服务器

2022-09-14 08:02:25

加密算法Bcryp

2024-03-26 10:30:37

Mybatis扩展库API

2009-12-31 14:10:23

2015-07-03 10:38:39

2015-06-11 10:19:34

2023-02-01 10:40:01

2009-12-29 11:03:28

VPN服务器故障

2022-06-17 11:10:43

PandasPolarsPython

2021-04-15 13:29:46

Linux服务器安全开源工具

2015-05-29 09:01:48

2020-03-25 11:06:46

无服务器开源安全工具

2010-08-25 17:25:06

DHCP服务器

2020-12-15 10:24:05

点赞
收藏

51CTO技术栈公众号