How to install PPTP VPN on CentOS 8 (Step by step guide)

6 Comments

Reading Time: 4 minutes

In this tutorial, we will tell you how to install PPTP VPN on CentOS 8. You know, PPTP stands for Point to Point Tunneling Protocol. This is a traditional protocol for implementing VPS networks.

A Virtual Private Network (VPN) is a connection method used to add security and privacy to private and public networks, like WiFi Hotspots and the Internet. Most of the time, corporations will utilize VPN to protect sensitive data. Or, ordinary web users will use them in parts of the world where there are government restrictions on internet content. Privacy is increased with a Virtual Private Network because the user’s initial IP address is replaced with one from the Virtual Private Network provider.

In other words, when you use a VPN, your IP address is hidden to give you more security and protection. It also helps you to surf those blocked and banned websites you wish to visit.

how to install PPTP VPN on centOSPPTP (Point-to-Point Tunneling Protocol) is a VPN protocol used to ensure proper communications between a VPN client and a VPN server. It also is available for CentOS Linux. PPTP is a free and open-source (community-supported) enterprise operating system, compatible with its upstream source Red Hat Enterprise Linux, from the CentOS Project.

Administrators rarely use PPTP as a stable protocol. But, its implementation is easier and straight-forward on CentOS Linux. IF you need this configuration and setup, this article suitable to read. In this article, we will describe how to install PPTP VPN on CentOS 8

Linux VPS Hosting

Get yourself an economy or premium Linux VPS for hosting your website or remote desktop, at the cheapest price out there. VPS Running on Linux KVM for increased efficiency and working on powerful hardware with NVMe SSD storage for increased speed.

Check Out Linux VPS Plans
Linux VPS Hosting

How to set up and install a PPTP VPN on CentOS 8:

 

Step 1: Install PPP

Installing PPTP completely depends on PPP and PPTPD packages. To do so, first, install the related package and then configure it to initiate configuration. Use the following commands one by one:

Step 2: Configure and Setup your PPTPD

Edit IP settings in: /etc/pptpd.conf as shown in the following:

Edit the following settings to /etc/ppp/options.pptpd:

As you can see, this code will add a DNS server to your VPN server. You can add the DNS servers provided by your internet provider or use Google DNS server and insert them in the file.

Step 3: Create a user to access the VPN server

Add user account in/etc/ppp/chap-secrets (assign username and password) like the following:

Step 4: Enable IP/network forwarding

We need IP forwarding to help VPN route packets between the VPN clients and the outside world. Therefore, the VPN server will become a router:

sudo v1 /etc/sysctl.conf

Now, add the following line:

After running this code, you must save and close the file. Then apply the changes with the following command:

sudo sysctl -p

this command will reserve our setting between system reboots.

Step 5: Setup ”iptables”

Now, you need to add the following IP-tables rules in order to open the correct ports and properly forward the data packets:

 

Step 6: Start VPN server

Congratulations. You have successfully installed PPTP VPN on your CentOS! these steps will help you to configure the PPTP VPN in a non-GUI way. using these Linux commands, you can easily configure,  connect, or even disconnect the PPTP VPN.

✅Conclusion:

In this series of VPS technologies tutorials, we showed you how to install PPTP VPN on CentOS 8 Linux. PPTP protocol does not describe authentication or encryption. Therefore, most of the administrators avoid using that. But it is very straight-forward in CentOS distribution. the intended use of PPTP is to provide similar levels of protection, security, and remote access as typical VPN products. You can use the PPTP control channel over the TCP and a GRE  tunnel operating to encapsulate the PPP packets and give them more security and protection. 

2
2

Comments

Leave A Comment

6 thoughts on “How to install PPTP VPN on CentOS 8 (Step by step guide)”

  1. Well I get error when I try to create a user, and I do type the command correctly. Any idea what might be the problem?

  2. At the beginning of the article you mentioned that admins rarely use PPTP, Why is that? And what does a stable protocol mean?

  3. @jurgen1
    I think windows and some other distros of Linux like Redhat have disapproved the PPTP an d it is not possible to use them in those operating systems

  4. Is it possible to use PPTP vpn to establish a secure connection between two computers? I think it could be possible. Because as you explained in the article if it is possible to use pptp on centos 8 to connect to VPN server, it should be possible to establish a connection between 2 computers too.

Leave a Reply

Your email address will not be published. Required fields are marked *