环境 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 (责任编辑:IT) |