0%

centos pptpd安装配置

1
2
3
4
5
6
7
8
9
10
11
12
yum install -y ppp wget net-tools  perl

wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.4.0-1.el6.x86_64.rpm
rpm -ivh pptpd-1.4.0-1.el6.x86_64.rpm

echo -e "localip 192.168.100.1\nremoteip 192.168.100.207-217" >>/etc/pptpd.conf
echo -e "ms-dns 192.168.100.1\nms-dns 192.168.100.1" >>/etc/ppp/options.pptpd
echo 'user1 pptpd 123456 *' >>/etc/ppp/chap-secrets
sed -i 's/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g' /etc/sysctl.conf
sysctl -p
service pptpd restart
chkconfig pptpd on

参考:

https://www.cnblogs.com/blog-lhong/p/11712622.html

http://blog.chinaunix.net/uid-30076712-id-5522260.html