Install PPTP / PPP Proxy Server on CentOS 6

PPTP Proxy is an easy to setup proxy server that can be used as an OpenVPN alternative, and many small applications have options to utilize a PPTP proxy tunnel. In this guide you'll find out how to setup and configure a basie PPTP proxy server.

First update all of your installed packages. This isn't required but is a good thing to do beforehand.

yum update -y

Next install PPP and some required packages we need to setup the server.

yum install ppp perl wget nano -y

Now lets download the RPM for PPTPD server.


Install the rpm file that we just downloaded.

rpm -Uvh pptpd*

Now the PPTPD server is installed. Now we need to edit some settings in the pptpd configuration. We'll open the file with nano text editor.

nano /etc/pptpd.conf

Add the following two lines to this file and save it.


* change "localip" to the IP you want the pptpd server to bind to, change "remoteip" to the IP that you want clients to use when they are connected.

Once that file is saved, lets make a new file to specify the DNS servers that clients will use.

nano /etc/ppp/pptpd-options

Add the following lines to the file so clients use Google's DNS service.


Once the file is saved lets add a test user account. Edit the following file:

nano /etc/ppp/chap-secrets

Add the following line.

# client    server  secret          IP addresses
user1 pptpd password *

"user1" is the username to use, "password" is the client password is used, and "*" allows the client to connect from any IP.

Now we need to add some firewall rules to allow traffic passthrough.

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

Next enable IPv4 packet forwarding. Edit the following file:

nano /etc/sysctl.conf

Find the following line:

net.ipv4.ip_forward = 0

Change it to:

net.ipv4.ip_forward = 1

Save the file that we just edited then reload the configuration with the following command.

sysctl -p

Now start the PPTPD service and add it to the startup list.

service pptpd start
chkconfig pptpd on

That's it! Now you can connect to your PPTPD proxy with a client or application that has an option for this type of proxy.
  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

Install ownCloud on CentOS 6

We will be setting up ownCloud on a fresh CentOS 6.6 64-bit installation. ownCloud is an open...

Install VNC Server and Desktop on CentOS 6

Install the desktop environment that we will use:yum groupinstall Desktop -yInstall the TigerVNC...

Install Multicraft 2.0 on CentOS 6

Run a Minecraft server? Multicraft is the most commonly used management control panel for...

Setup Teamspeak 3 Server on Linux (CentOS)

If you run a gaming community, a Teamspeak 3 server is probably a popular choice for you to have...

Install LAMP on CentOS 6 (MySQL 5.5, PHP 5.6)

This brief guide will show you how to successfully install a LAMP stack (Linux, Apache, MySQL,...

Powered by WHMCompleteSolution