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
标签:1.4,pptpd,centos,安装,192.168,etc,net,rpm 来源: https://www.cnblogs.com/blog-lhong/p/11712622.html