CrownCloud Wiki

CrownCloud - Internet Services

User Tools

Site Tools


pptp_vpn_setup_centos_6_openvz

PPTP VPN Setup CentOS 6 OpenVZ


Installation

This script will help you setup a PPTP based VPN your CentOS 6 OpenVZ based VPS.

yum install -y git
cd /opt 
git clone git://github.com/arjitc/VPN.git
cd VPN 
bash install.sh

Changing username & password

You can change your PPTP username / password to something more secure by editing the following file,

yum install nano
nano /etc/ppp/chap-secrets

It'll be in the following format,

VPN_USER pptpd VPN_PASS *

Edit the VPN_USER and VPN_PASS, save the file and then,

service pptpd restart-kill
service pptpd start

Additional Debugging

??? Not able to load any website once you're connected to the VPN ? Issue the following command,

 iptables -t nat -A POSTROUTING -j SNAT --to-source VPS_IP_HERE 

replace VPS_IP_HERE with the VPS IP

??? Still not able to load any website once you're connected to the VPN ? If you're on Windows, go to,

Control Panel\Network and Internet\Network Connections

Right click on the VPN connection, then,

Select “Internet Protocol Version 4” then, select “Properties”

Then set the DNS servers,

Hit, “Ok” and then disconnect the VPN connection and then re-connect to it and it should work.

pptp_vpn_setup_centos_6_openvz.txt · Last modified: 2014/04/18 16:00 by speedbus