原github
https://github.com/zhaodg/pptpd-centos7-install-script
作者本人blog
zhaodg’s blog address http://zhaodg.github.io.
作者给出的帮助
http://zhaodg.github.io/2015/04/26/build-vpn/.
代码我拷贝一份在我的github上,怕万一消失了。
你要git代码首先要有git,看到版本即为安装
git --version
安装git
sudo yum install git
如果安装了,version依然看不到自己百度查下原因
git回来代码
原作者的
git clone https://github.com/zhaodg/pptpd-centos7-install-script.git
- 有时候会遇到问题
fatal: unable to access 'https://github.com/zhaodg/pptpd-centos7-install-script.git/': Peer reports incompatible or unsupported protocol version.
解决办法
yum update -y nss curl libcurl
我这里copy了一下,传说中的备用
git clone https://github.com/broeeee/centos7_pptp.git
进目录更新源 Update centos7 yum
sh install-centos7-yum-pero.sh
安装pptpd并运行
sh install-pptpd.sh
后面获得账户密码,可自己去改
vi /etc/ppp/chap-secrets
格式是
用户名[空格]pptpd[空格]密码[空格]*
执行后可用,比github上star第一的那个要好用,star第一的那个我重装了3此系统,那个自动脚本效果不好。
地址在这里:https://github.com/boizz/PPTP-L2TP-IPSec-VPN-auto-installation-script-for-CentOS-7
里面还有菠菜地址,哎~现在这推广做的。。。
网友评论