Loading... <span style="font-size: large;"><strong>1.</strong></span>下载软件 [html]wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.i386.rpm wget http://poptop.sourceforge.net/yum/stable/packages/ppp-2.4.4-14.1.rhel5.i386.rpm wget http://poptop.sourceforge.net/yum/stable/packages/ppp-devel-2.4.4-14.1.rhel5.i386.rpm[/html] 安装rpm -ivh *.rpm <span style="font-size: large;"><strong>2.</strong></span>设置 1./opt/pptpd.conf主文件 [html]option /etc/ppp/options.pptpd debug bcrelay eth1 localip 172.16.1.1-10 remoteip 172.16.1.100-200[/html] 2./etc/ppp/options.pptpd选项 [html]name pptpd refuse-pap refuse-chap refuse-mschap require-mschap-v2 require-mppe-128 ms-dns 208.67.220.220 ms-dns 8.8.8.8 ms-dns 208.67.222.222 proxyarp debug lock nobsdcomp novj novjccomp nologfd lcp-max-configure 100[/html] 3./etc/ppp/chap-secrets 用户名和密码 [html]user1 pptpd password *[/html] 4.iptables设置 开启ip转发 修改/etc/sysctl.conf为如下值 [html]net.ipv4.ip_forward = 1[/html] 设置nat [html]/sbin/iptables -t nat -A POSTROUTING -s 172.16.1.0/24 -j SNAT –to-source 公网IP[/html] <span style="font-size: large;"><strong>3.</strong></span>系统日志中/var/log/messages如果出现 [html]pppd is unable to open the /dev/ppp device[/html] <span style="font-size: large;"><strong>4.</strong></span>执行如下命令即可 [html]mknod /dev/ppp c 108 0[/html] Last modification:October 6, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏
2 comments
我们同在一个主机上呦 大家一起做好SEO 呵呵
是吗??哈哈!!