Install an open-source VPN Server on CentOS 7

Source: Internet
Author: User
Tags ubuntu vps

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.

  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 ################################ [1, 100%]
  7. TheAccessServer 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. AccessServer web UIs are available here:
  15. Admin UI: https: // yourhostIP: 943/admin
  16. Client UI: https: // yourhostIP: 943/
Step 2: set a password for the OpenVPN Client
  1. [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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.