PPTPD 配置出现619错误,调试过程

今天友情帮网友配了一个vpn,centos5配置vpn pptpd方法

结果发现619错误,现在下面贴出调试方法:

首先查看系统的日志文件出现:

# tail -n 20 /var/log/message

pptpd[1068]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
打开pptpd的debug调试模式:

# /etc/ppp/pptp-options 找到如下内容:

#debug
#dump
把这两行前的#号删除,重启服务:

# /etc/init.d/pptpd restart

Shutting down pptpd: [ OK ]
Starting pptpd: [ OK ]
Warning: a pptpd restart does not terminate existing
connections, so new connections may be assigned the same IP
address and cause unexpected results. Use restart-kill to
destroy existing connections during a restart.
再进行拨号连接,依然619错误,继续查看日志:

# tail -n 20 /var/log/message

pppd[1069]: In file /etc/ppp/options.pptpd: unrecognized option ‘“ms-dns’
原来是这里出现了问题,打开以后出现了乱码,可能是黏贴内容的是时候出的错。修正以后拨号就可以上网了。

Add a Comment

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.