I was thrilled to see so many comments on my previous post “Install PPTP VPN on CentOS 5 in 1 Minute“. Thank you guys!
CentOS 6 has been out for a while but lots of people still couldn’t get pptpd VPN working on it. So for today, I am sharing the same script with you all, but this time, it’s for the CentOS 6.
Trying to cut it short here, here are the command you use on VPS:
To get started, you need to use your root account to access your VPS server via SSH. Then type in the following command lines
yum update -y
Then hit “Enter”, the shell files should be downloaded on your server and now you can run it:
sh pptpd6.sh (make sure you are running this script as “root”)
The installation will be run and completed automatically, and when it’s done, the VPN username and password will be displayed on your console screen.
The PPTP VPN server’s account information is stored in the file located at “etc/ppp/chap-secrets”, you can use the command line to edit this file directly:
Hope it helps! Once again, happy VPNing!
If you have the following error:
iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 268: restorecon: command not found
Please run the following command to install policycoreutils
yum install policycoreutils
Filed Under: Servers