今天友情帮网友配了一个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’
原来是这里出现了问题,打开以后出现了乱码,可能是黏贴内容的是时候出的错。修正以后拨号就可以上网了。