Easiest Way To Build VPN Server with PPTP

How to Install PPTP VPN on CentOS server in ONLY 3 steps – In this page I will show you a shortcut method how to build a VPN server based on PPTP technology in only 3 (three) steps. Normally if you want to install it manually you’ll need at least 10 steps to make it done correctly and setting up PPTPD options to match with your server. Thanks to an installer script that does everything in 3 simple Unix commands.

What you need?

  1. A VPS or Dedicated server running CentOS 6.x
  2. Proper knowledge to use Putty, SSH and common Unix command
  3. Only for VPS based-on OpenVZ virtualization (other skip this): please enable TUN/TAP and PPP options in your VPS control panel (e.g: SolusVM).

OpenVZ VPS user only:

enable tun tap ppp

How To Install PPTP VPN on CentOS 6.x

Step 0 – Login to your server via SSH. You better login as root.

Step 1 – Now issue this first command syntax:

1
yum install -y git

example:

install git

Step 2 – Now also type this command and hit Enter

1
cd /opt && git clone git://github.com/drewsymo/VPN.git

example:

Step 3 – The final command, issue this and wait (the output a little bit long):

1
cd VPN && bash vpn-setup-vanilla.sh

example:

last command to install pptp vpn

That’s it. Now your brand new VPN server is ready to use. You’ll see default username and password at the end of the installation:

install pptp vpn ready

Now you can test it on your iPhone,iPad and Android devices.

NOTE for OpenVZ-based VPS:

You have to also issue this last command:

1
iptables -t nat -A POSTROUTING -j SNAT --to-source x.x.x.x

Please replace x.x.x.x with your venet0 IP address.

Conclusion

Building a VPN server using CentOS can never be easier than above method. I tested this script in a Cloud server hosted by DigitalOcean which I don’t know what virtualization technology used but it works like charm. For you guys who simply need a free PPTP VPN server that really works (and fast) to use in your iPhone, iPad, iPod or any Android devices, you can visit VPNADAY.COM. There you can get free VPN with no registration.

Credit of the script goes to drewsymo.com.

Leave a Reply

%d bloggers like this: