Virtual private server related
NOTE: PPTP VPN is considered insecure. Do not rely for this vpn if you need security. However, PPTP works out of the box on many operating systems, including many Linux distributions, Windows, Mac OS and Android and it's easily good enough for evading country level IP blocks.
CentOS-pptp-setup.sh has been tested on Vultr & Host1plus: CentOS 6 x86
Ubuntu-pptp-setup.sh has been tested on Vultr & Host1plus: Ubuntu14.04 x86
CentOS7-pptp-host1plus.sh is just for CentOS 7 on Host1plus & OpenVZ
wget https://raw.githubusercontent.com/DanylZhang/VPS/master/CentOS-pptp-setup.sh
chmod +x ./CentOS-pptp-setup.sh
./CentOS-pptp-setup.sh -u your_username -p your_password
wget https://raw.githubusercontent.com/DanylZhang/VPS/master/Ubuntu-pptp-setup.sh
sudo bash Ubuntu-pptp-setup.sh -u your_username -p your_password
service pptpd restart
or
wget https://raw.githubusercontent.com/DanylZhang/VPS/master/CentOS7-pptp-host1plus.sh
chmod +x ./CentOS7-pptp-host1plus.sh
./CentOS7-pptp-host1plus.sh -u your_username -p your_password
If your vpn password less than 8 characters,then give you a random password.
To add more accounts, see the file /etc/ppp/chap-secrets
If you keep the vpn server generated with this script on the internet for a long time (days or more), consider either restricting access to the ssh port on the server by ip addresses to the networks you use, if you know the addresses you are most likely to use or at least change ssh from port 22 to a random port.
You can also specify you own username and password, run ./CentOS-pptp-setup.sh -h
or sudo bash Ubuntu-pptp-setup.sh -h
for help.