[root@VM_0_6_centos etc]# vim /etc/pptpd.conf
localip 193.112.40.37
remoteip 172.16.1.120-200
3.指定DNS写入文件末尾即可
[root@VM_0_6_centos etc]# vim /etc/ppp/options.pptpd
ms-dns 8.8.8.8
ms-dns 8.8.4.4
4.配置用户名和密码
[root@VM_0_6_centos etc]# vim /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
xingyulin pptpd 123456 *
5、开启IP转发
[root@VM_0_6_centos etc]# vim /etc/sysctl.conf
#将“net.ipv4.ip_forward = 0”改为“net.ipv4.ip_forward = 1”
# Controls IP packet forwarding
net.ipv4.ip_forward = 1