Install an open-source VPN Server on CentOS 7
One of my biggest concerns when I access the Internet is how to ensure the security and privacy of my data. While searching for answers, I found many anonymous methods, such as using a proxy website. However, third-party services cannot be fully guaranteed. What I need is a software that allows me to install and run on my own, so that I can ensure that only I can access data.
What is this software called?
It is called VPN service, short for virtual private cloud. It allows encryption of your data through SSL during access. Because it is an encrypted connection, your ISP cannot see your browsing information.
In this Linux tutorial, I will install an OpenVPN service on CentOS 7. OpenVPN is easy to use and open-source with community support. Its clients support Windows, Android, and Mac.
Step 1: Install OpenVPN on your Linux machine or VPS
Download the installation package from the https://openvpn.net/index.php/access-server/download-openvpn-as-sw.html (it's not surprising to be walled, you know), Ubuntu users can also find the appropriate installation package and install it.
- [Leo @ vps] $ cd/tmp
- [Leo @ vps tmp] $ wget http://swupdate.openvpn.org/as/openvpn-as-2.0.10-CentOS7.x86_64.rpm
- [Leo @ vps tmp] $ sudo rpm-Uvh openvpn-as-2.0.10-CentOS7.x86_64.rpm
- Preparing... ################################### [100%]
- Updating/installing...
- 1: openvpn-as-0: 2.0.10-CentOSrelease ################################ [1, 100%]
- TheAccessServer has been successfully installed in/usr/local/openvpn_as
- Configuration log file has been written to/usr/local/openvpn_as/init. log
- Please enter "passwd openvpn" to set the initial
- Administrative password, then login as "openvpn" to continue
- Configuration here: https: // yourhostIP: 943/admin
- To reconfigure manually, use the/usr/local/openvpn_as/bin/ovpn-init tool.
-
- AccessServer web UIs are available here:
- Admin UI: https: // yourhostIP: 943/admin
- Client UI: https: // yourhostIP: 943/
Step 2: set a password for the OpenVPN Client
- [Leo_g @ vps] $ passwd openvpn
Step 3: log on to and start the service by managing the URL https: // yourhostIP: 943/admin
Enter the username "openvpn" and the password you set earlier.
Step 4: Install the client from the client URL (it will give you an option to download the installer)
Here, you can learn how to install it on your operating system.
Step 5: Use the username and password you created to connect to your server
In this way, you can access whatismyip.com to view your IP address. It should already be the OpenVPN address on your CentOS 7.
Build and configure PPTP and OpenVPN in CentOS5-based Linux
Use PPTP to build a VPN
PPTPD for RHEL5.4 VPN service configuration
The problem of configuring NAT forwarding in PPTPd on Ubuntu VPS
Install pptp vpn under CentOS
Linux VPN (PPTPD) + Windows AD unified authentication