centos pptpd安装配置

centos pptpd安装配置

yum install -y ppp wget net-tools
[[ `uname -r` =~ "x86_64" ]]
then
     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
else
     wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.4.0-1.el6.i686.rpm
     rpm -ivh pptpd-1.4.0-1.el6.i686.rpm
fi
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

 

posted @ 2019-10-21 11:54  些许记忆  阅读(1242)  评论(0编辑  收藏