How to Install PPTP VPN on CentOs 8

A VPN, or a Virtual Private Network, is a special connection kind. It is used to make connections to public and private networks safe. VPNs are also used by companies to send sensitive data. VPNs are also applied widely by individual users in the location where some internet content is restricted.

When you use a VPN, your IP address is hidden. Instead, on the web, the IP address that your VPN provider gives. Thus, it is impossible to identify from where you are connecting to the service.

PPTP (Point-to-Point Tunneling Protocol) is a special protocol used for VPN. It ensures communication between the VPN server and the VPN client.

You can use it for CentOS Linux, too. Thus, we will check how to install PPTP VPN on CentOS 8.

Step 1

It all starts with the PPTP installation. For that, execute the following command:

how to install pptp vpn on centos 8

 

Step 2

Now, set it up:

Move to /etc/pptpd.conf and edit your IP:

how to install pptp vpn on centos 8

 

Now, move to /etc/ppp/options.pptpd and edit the settings:

how to install pptp vpn on centos 8

 

Step 3

Set up the user. With it, you will access your VPN.

For that, move to /etc/ppp/chap-secrets, add there your user, and assign a password to it:

how to install pptp vpn on centos 8

 

Step 4

Move to /etc/sysctl.conf. Enable network forwarding.

how to install pptp vpn on centos 8

 

Step 5

Now, it is time to move to the iptables installation.

Open the correct ports and forwarding of data packets by adding the following iptables rules:

how to install pptp vpn on centos 8

 

Step 6

Start the VPN server.

how to install pptp vpn on centos 8

 

Now, your VPN is installed on CentOS.

Blog