Many of my friends will not install vpn in CENTOS, because it is a dizzy task for cainiao to install VPN, especially openvpn. However, installing pptp is a little simpler, there are a lot of tutorials on installing pptp on the Chinese site, but they are complicated. I found a one-click installation solution for pptv vpn on a foreign website. I would like to share with you here.
The following is an operation command. Of course, you must first enter your SSH
Wget http://www.centoscn.com/tool/pptpd6.sh
This command downloads the Installation File
Sh pptpd6.sh
Use the root account to run the above command. The PPTP will be installed with one click. It is fully automatic. After the installation is complete, your VPN user name and password will be automatically displayed on your screen.
The account and password of pptp vpn are in etc/ppp/chap-secrets. You can use the following command to enter the file and modify it.
Vi/etc/ppp/chap-secrets
The operation is so simple that it will be helpful to everyone.
Tip:
If you have the following errors
Iptables: Saving firewall rules to/etc/sysconfig/iptables:/etc/init. d/iptables: line 268: restorecon: command not found
You can run the following command:
Yum install policycoreutils
Original article: http://www.rockia.com/2012/03/install-pptpd-vpn-on-xen-centos-6-in-1-minute