How to deploy PPTP VPN for CentOS single-step!

Written by

1, First, Download install code:

wget http://www.lk6.net/tools/vpn_centos.sh

If “wget not found”, Install it firstly

yum -y install wget

2, Just running the .sh Code:

sh pptp_centos.sh

Put your username and passwd,

Continue, automatic install.

3, Install is completed!


Note:

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:
Knowledge

Leave a Reply

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

Shares