环境
CentOS 6.x 32 位/64 位
XEN/KVM/OpenVZ
步骤
依次执行下列命令

#wget http://www.hi-vps.com/shell/vpn_centos6.sh
#chmod a+x vpn_centos6.sh

安装 Centos6.2PPTPVPN 指令码

#bash vpn_centos6.sh

执行完后有 1 、 2 、 3 种英文,对应如下中文意思。

1. 安装 VPN 服务
2. 修复 VPN
3. 新增 VPN 使用者

我们要安装 PPTP vpn,当然输入 1,然后 enter 键了。等待安装完成,就会出现账号和密码啦,预设账号是 vpn,密码是一串随机数字,自己用的话就不用加账号和密码了,复制下来备用吧。安装完成如下:
 

DKMS: add Completed.
Module build for the currently running kernel was skipped
since the kernel source for this kernel does not seem to be
installed.
kernel_ppp_mppe-1.0.2-3dkms.noarch
warning: ppp-2.4.5-17.0.rhel6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 862acc42: NOKEY
Preparing…                ########################################### [100%]
   1:ppp                    ########################################### [100%]
warning: pptpd-1.3.4-2.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 862acc42: NOKEY
Preparing…                ########################################### [100%]
   1:pptpd                  ########################################### [100%]
mknod: “/dev/ppp”: 档案已存在
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
Starting pptpd:                                            [  OK  ]
VPN service is installed, your VPN username is vpn, VPN password is 7OXoJ0V1