PPTPD one-click installation package

PPTPD one-click installation package

Two one-click installation packages are currently found.
1. Provided by diahosting.com

System requirements: CentOS 5 32bits/64bits.
Directions:
wget http://www.diahosting.com/dload/pptpd.sh
sh pptpd.sh
After the installation is complete, you will be prompted for the VPN username and password.
VPN User Management:
Directly edit the /etc/ppp/chap-secrets file and add the username and password in the same format.

2. Provided by wty.name

 wget http://wty.name/linux/sh/pptpd.sh;sh ./pptpd.sh;
 Once the installation is complete, your VPN username and password will appear on the last line.

3. Provided by onepoundwebhosting.co.uk

System requirements: Centos 5.7 (32 bit)
Install:
wget www.onepoundwebhosting.co.uk/linux/pptp.sh
sh pptp.sh
Password change: nano /etc/ppp/chap-secrets
Restart the pptp service: service pptpd restart

4. Provided by http://www.putdispenserhere.com/, the website cannot be accessed.
Suitable for DEBIAN/UBUNTU OPENVZ systems.
Use as follows:
Check whether the VPS supports PPP: cat /dev/ppp
If you see: cat: /dev/ppp: No such device or address, it means it can be used.
Use as follows:

wget http://wpthemes2.googlecode.com/files/pptpinstall.sh
chmod +x pptpinstall.sh
./pptpinstall.sh

File contents:

#!/bin/bash
# Interactive PoPToP install script on a OpenVZ VPS
# Tested on Debian 5, 6, and Ubuntu 11.04
# 2011 v1.1
# Author: Commander Waffles
# http://www.putdispenserhere.com/pptp-debian-ubuntu-openvz-setup-script/

echo "###############################################################"
echo "Interactive PoPToP Install Script for OpenVZ VPS"
echo "by Commander Waffles http://www.putdispenserhere.com"
echo "Should work on various deb-based Linux distos."
echo “Tested on Debian 5, 6, and Ubuntu 11.04”
echo
echo "Make sure to message your provider and have them enabled"
echo "IPtables and ppp modules prior to setting up PoPToP."
echo
echo "You need to set up the server before creating more users."
echo "A separate user is required per connection or machine."
echo "###############################################################"
echo
echo
echo "###############################################################"
echo "Select on option:"
echo “1) Set up new PoPToP server AND create one user”
echo "2) Create additional users"
echo "###############################################################"
read x
if test $x -eq 1; then
echo “Enter username that you want to create (eg. client1 or john):”
read u
echo “Specify password that you want the server to use:”
read p

# get the VPS IP
ip=`ifconfig venet0:0 | grep 'inet addr' | awk {'print $2′} | sed s/.*://`

echo
echo "###############################################################"
echo "Downloading and Installing PoPToP"
echo "###############################################################"
apt-get update
apt-get install pptpd

echo
echo "###############################################################"
echo "Creating Server Config"
echo "###############################################################"
cat > /etc/ppp/pptpd-options <<END
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 8.8.8.8
ms-dns 8.8.4.4
proxyarp
nodefaultroute
lock
nobsdcomp
END

# setting up pptpd.conf
echo "option /etc/ppp/pptpd-options" > /etc/pptpd.conf
echo "logwtmp" >> /etc/pptpd.conf
echo "localip $ip" >> /etc/pptpd.conf
echo "remoteip 10.1.0.1-100" >> /etc/pptpd.conf

# adding new user
echo "$u * $p *" >> /etc/ppp/chap-secrets

echo
echo "###############################################################"
echo "Forwarding IPv4 and Enabling it on boot"
echo "###############################################################"
cat >> /etc/sysctl.conf <<END
net.ipv4.ip_forward=1
END
sysctl -p

echo
echo "###############################################################"
echo "Updating IPtables Routing and Enabling it on boot"
echo "###############################################################"
iptables -t nat -A POSTROUTING -j SNAT –to $ip
# saves iptables routing rules and enables them on-boot
iptables-save > /etc/iptables.conf

cat > /etc/network/if-pre-up.d/iptables <<END
#!/bin/sh
iptables-restore < /etc/iptables.conf
END

chmod +x /etc/network/if-pre-up.d/iptables
cat >> /etc/ppp/ip-up <<END
ifconfig ppp0 mtu 1400
END

echo
echo "###############################################################"
echo "Restarting PoPToP"
echo "###############################################################"
/etc/init.d/pptpd restart

echo
echo "###############################################################"
echo "Server setup complete!"
echo “Connect to your VPS at $ip with these credentials:”
echo "Username:$u ##### Password: $p"
echo "###############################################################"

# runs this if option 2 is selected
elif test $x -eq 2; then
echo “Enter username that you want to create (eg. client1 or john):”
read u
echo “Specify password that you want the server to use:”
read p

# get the VPS IP
ip=`ifconfig venet0:0 | grep 'inet addr' | awk {'print $2′} | sed s/.*://`

# adding new user
echo "$u * $p *" >> /etc/ppp/chap-secrets

echo
echo "###############################################################"
echo "Additional user added!"
echo “Connect to your VPS at $ip with these credentials:”
echo "Username:$u ##### Password: $p"
echo "###############################################################"

else
echo "Invalid selection, quitting."
exit
fi

<<:  Domestic and foreign online webmaster tools

>>:  MySQL large capacity database backup method

Recommend

Afterburst: $7/month/1GB RAM/60GB SSD space/unlimited traffic/KVM/Germany

Afterburst is a foreign hosting company founded i...

OwnBox: £8/year/128MB memory/8GB SSD space/1TB bandwidth/1Gbps/KVM/UK

OwnBox, a British merchant, has been mentioned tw...

Impact: $6/year/256MB/5GB space/250GB traffic/1 IP/OpenVZ/Seattle

Impact, introduced many times, has a data center ...

Hetzner: €2.49/month/2GB RAM/20GB NVMe space/20TB bandwidth/KVM/Germany

Hetzner, a long-established German hosting compan...

Hostigger: $100/year/8GB RAM/100GB SSD space/10TB bandwidth/KVM/Türkiye/Chicago

Hostigger, an American hosting provider, was foun...

Kimsufi independent server installation Windows system graphic tutorial

Details: kimsufi 9 Euro special price dedicated s...

VolumeDrive: $47.95/month/24GB/1000GB/unlimited data

I have previously introduced VolumeDrive's VP...

[Black Friday] Blesta: Lifetime license, $550; annual payment $180

Blesta, like whmcs, is a relatively well-known ho...