50% 할인 모든 플랜, 기간 한정. 시작 가격 $2.48/mo
4분 남음
보안 및 네트워킹

CentOS 8에 PPTP VPN 설치하는 방법 (단계별 가이드)

Matt Schmitt By Matt Schmitt 4분 읽기 Updated Apr 15, 2023
CentOS 8에 PPTP VPN 설치

In this tutorial, we will tell you how to CentOS 8에 PPTP VPN 설치. 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.We review all server options in our detailed article about best VPS for VPN.

What does Point-to-point tunneling mean?

how to install PPTP VPN on centOS

PPTP (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 straightforward on CentOS Linux. IF you need this configuration and setup, this article is suitable to read. In this article, we will describe how to CentOS 8에 PPTP VPN 설치

centos-vps 최소 사양의 극한을 보여주는 서버

Cloudzy CentOS VPS에 CentOS 7 또는 CentOS 8을 설치하고, 최소한의 리소스로 효율적인 Linux 기반 서버를 운영하세요.

CentOS VPS 시작하기

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:

yum install ppp iptables nano
cd /usr/local/src

For 64-bit OS:

wget    http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.4.0-1.el6.x86_64.rpm
rmp -Uhv pptpd-1.4.0-1.el6.x86_64.rpm

For 32-bit OS:

wget    http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.4.0-1.el6.i686.rpm
rmp -Uhv pptpd-1.4.0-1.el6.i686.rpm

함께 읽기: Listing and Deleting Linux Iptables Rules

Step 2: Configure and Setup your PPTPD

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

nano /etc/pptpd.conf

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

ms-dns 8.8.8.8
ms-dns 4.4.4.4

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:

nano /etc/ppp/chap-secrets

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:

nano /etc/sysctl.conf
net.ipv4.ip_forward = 1

To make the changes to sysctl.conf take effect, use the following command:

sysctl -p

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:

iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -i eth0 -p gre -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Step 6: Start VPN server

service pptpd restart
chkconfig pptpd restart

Congratulations. You have successfully installed a 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. As you know, there are other self-hosted VPN options too. We have another detailed guide for installing OpenVPN Client on VPS. Among other protocols like IKEv2, L2TP and PPTP, OpenVPN may be the one that is tailored for VPN use case.

결론

In this series of VPS technologies tutorials, we showed you how to install PPTP VPN on CentOS 8 Linux or CentOS VPS. PPTP protocol does not describe authentication or encryption. Therefore, most of the administrators avoid using that. But it is very straightforward 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. 

공유

블로그 더 보기

계속 읽기.

노트북이 빛나는 파란색과 금색 디지털 터널과 방패 아이콘을 통해 서버 랙에 연결되는 모습을 보여주는 MikroTik L2TP VPN 가이드의 Cloudzy 타이틀 이미지.
보안 및 네트워킹

MikroTik L2TP VPN 설정 (IPsec 포함): RouterOS 가이드 (2026)

이 MikroTik L2TP VPN 설정에서 L2TP는 터널링을 담당하고 IPsec은 암호화와 무결성을 담당합니다. 두 가지를 함께 사용하면 서드파티 없이도 네이티브 클라이언트 호환성을 확보할 수 있습니다.

Rexa CyrusRexa Cyrus 9분 분량
어두운 청록색 배경에 원격 호스트 식별 변경 경고 메시지와 수정 가이드 제목, Cloudzy 브랜딩이 표시된 SSH 터미널 화면.
보안 및 네트워킹

경고: 원격 호스트 식별이 변경되었습니다 - 수정 방법

SSH는 시스템 간에 암호화된 터널을 생성하는 보안 네트워크 프로토콜입니다. GUI 없이도 컴퓨터에 원격으로 접속해야 하는 개발자들 사이에서 꾸준히 사용되고 있습니다.

Rexa CyrusRexa Cyrus 읽는 데 10분
어두운 배경에 경고 기호와 파란색 서버가 있는 Linux 이름 확인 오류 관련 DNS 서버 문제 해결 가이드 일러스트
보안 및 네트워킹

이름 확인 임시 실패: 원인과 해결 방법

Linux를 사용하다 보면 웹사이트 접속, 패키지 업데이트, 인터넷 연결이 필요한 작업 실행 시 이름 확인 임시 실패 오류가 발생할 수 있습니다.

Rexa CyrusRexa Cyrus 읽는 데 12분

배포할 준비가 됐나요? 월 $2.48부터.

2008년부터 운영해온 독립 클라우드. AMD EPYC, NVMe, 40 Gbps. 14일 환불 보장.