How to deploy PPTP VPN for CentOS single-step!

Written by

1, First, Download install code:


If “wget not found”, Install it firstly

yum -y install wget

2, Just running the .sh Code:


Put your username and passwd,

Continue, automatic install.

3, Install is completed!


1, Change the username and password :

vi /etc/ppp/chap-secrets

2, OpenVZ VPS must make sure TUN and OPP is enable:

chekc TUN/TAP

 cat: /dev/net/tun: File descriptor in bad state   //OK

check PPP

cat: /dev/ppp: No such device or address   //OK

3, If error ” etc/ppp not found”:

vi /etc/yum/pluginconf.d/fastestmirror.conf
change enabled=1 to enabled=0

service pptpd restart or /etc/init.d/pptpd restart

Article Tags:
Article Categories:

Leave a Reply

Your email address will not be published. Required fields are marked *