How To Install PPTP VPN on CentOS 6

r00t January 30, 2015

PPTP-VPN

In this tutorial we will show you how to install and configuration of PPTP VPN on your CentOS 6 server. For those of you who didn’t know, The Point-to-Point Tunneling Protocol (PPTP) is a method for implementing virtual private networks. PPTP uses a control channel over TCP and a GRE tunnel operating to encapsulate PPP packets. The PPTP specification does not describe encryption or authentication features and relies on the Point-to-Point Protocol being tunneled to implement security functionality. We use PPTP because it is supported natively on almost all devices, Windows, Linux, Android, iOS and Mac OS.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. Here is the steps to install PPTP VPN on CentOS 6.

Install PPTP VPN on CentOS 6

Step 1. First install pptpd

Step 2. Setup pptpd

Edit IP setttings in /etc/pptpd.conf:

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

Step 3. Create user to access the VPN server

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

Step 4. Enable network forwarding in /etc/sysctl.conf

Step 5. Setup iptables

You need to add the following iptables rules in order to open the correct ports and properly forward the data packets:

Step 6. Start PPTP VPN server

Congratulation’s! You have successfully installed PPTP VPN. Thanks for using this tutorial for installing PPTP VPN on CentOS 6 system. For additional help or useful information, we recommend you to check the official PPTP VPN web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!
Share on Google+3Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon3Share on Reddit0Pin on Pinterest0
The Tags:

Leave a Comment