rpm -Uvh http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm yum -y install pptpd sed -i ‘9s/0/1/g‘ /etc/sysctl.conf /sbin/sysctl -p echo ‘ms-dns 8.8.8.8‘ >> /etc/ppp/options.pptpd echo ‘ms-dns 8.8.4.4‘ >> /etc/ppp/options.pptpd sed -i ‘s/^logwtmp/#logwtmp/g‘ /etc/pptpd.conf echo ‘localip 192.168.88.1‘ >> /etc/pptpd.conf echo ‘remoteip 192.168.88.100-199‘ >> /etc/pptpd.conf echo ‘vawter pptpd 40bc59e1 *‘ >> /etc/ppp/chap-secrets chkconfig pptpd on iptables -t nat -A POSTROUTING -s 192.168.88.0/24 -o venet0 -j MASQUERADE service iptables save service pptpd restart
安装环境Host1Plus VPS CentOS6_X86
时间: 2024-10-01 03:43:59