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?
- A VPS or Dedicated server running CentOS 6.x
- Proper knowledge to use Putty, SSH and common Unix command
- 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:
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:
yum install -y git
Step 2 – Now also type this command and hit Enter
cd /opt && git clone git://github.com/drewsymo/VPN.git
Step 3 – The final command, issue this and wait (the output a little bit long):
cd VPN && bash vpn-setup-vanilla.sh
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:
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:
iptables -t nat -A POSTROUTING -j SNAT --to-source x.x.x.x
Please replace x.x.x.x with your venet0 IP address.
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.