What is PPTP?
PPTP is short for Point-to-Point Tunneling Protocol, a technology for creating Virtual Private Networks (VPNs) quickly. Support is built-in to many operating systems natively, without needing an additional client, unlike OpenVPN.
What does this script do?
This script will automatically PPTP/PoPToP on your OpenVZ VPS in a few of minutes. Port forwarding, server configuration, and authentication setup is all taken care of for you.
What if I want to do it myself?
A manual installation guide is available here for those of you who want to get down and dirty: http://www.putdispenserhere.com/pptp-vpn-setup-guide-for-a-debian-openvz-vps/
How do I install it?
1. Enable PPP and make sure that your VPS has its PPP module working.
To check, run the following command:
If your VPS returns this message, then your PPP module is set correctly:
cat: /dev/ppp: No such device or address
If not, then you need to enable it in SolusVM (or disable and re-enable it).
2. Copy and paste these lines into your SSH client of choice:
chmod +x ezpptp.sh && ./ezpptp.sh
I have edited a script (credits below as well as a CentOS/RHEL version) for automated OpenVPN setup. OpenVPN server on your OpenVZ VPS can be set up in under a couple of minutes. Port forwarding, client config, key archiving, and config setup is all done for you. Note that setting the port to 53 can be used to bypass captive portals as an alternative to using iodine. Feedback is appreciated.
Make sure that your VPS has it’s TUN/TAP modules enabled by your provider first. To verify it is working, enter the command below:
If you receive this message, your TUN/TAP device is ready for use:
cat: /dev/net/tun: File descriptor in bad state
If you receive this message, contact your provider for assistance:
cat: /dev/net/tun: No such file or directory
To install the script, copy and paste this into your SSH client of choice:
chmod +x openvpninstall.sh
This script is based of 21Andy’s work, and Lowendbox’s work.
Please note that this script has been deprecated in favor of Xeoncross’s updated Lowendscript. This post remains here just for historical purposes.
The main differences compared to Andy’s and Lowendbox’s work are:
PHP 5.3 vs 5.2
Nginx 0.7 vs 0.6
MySQL 5.1 vs 5.0
Cleaner repos (for those Debian templates with broken repositories)
To run this script, enter in:
Afterward, run this to setup WordPress:
bash setup-debian.sh wordpress blog.example.com
Make sure you change blog.example.com to match your domain.