Centos 7 源码安装pptpd
步骤一:下载pptpd源码包
[root@localhost ~]#yum install -y ppp
[root@localhost ~]#wget https://sourceforge.net/projects/poptop/files/pptpd/pptpd-1.3.4/pptpd-1.3.4.tar.gz/download
[root@localhost ~]# tar xvf download
[root@localhost ~]# cd pptpd-1.3.4/
[root@localhost pptpd-1.3.4]# ./configure -prefix=/usr/local/pptpd && make && make install
[root@localhost pptpd-1.3.4]# cp samples/options.pptpd /etc/ppp
[root@localhost pptpd-1.3.4]# cp samples/pptpd.conf /etc/
[root@localhost pptpd-1.3.4]# vi /etc/pptpd.conf
#localip 192.168.0.1
#remoteip 192.168.0.234-238,192.168.0.245
[root@localhost pptpd-1.3.4]# vi /etc/ppp/options.pptpd
#ms-dns 10.0.0.1
#ms-dns 10.0.0.2
[root@localhost pptpd-1.3.4]# /usr/local/pptpd/sbin/pptpd -c /etc/pptpd.conf
[root@localhost pptpd-1.3.4]# iptables -A INPUT -p tcp –dport 1723 -j ACCEPT
1211231