Linux · 2012-04-05

from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs

pptpd vpn错误619的解决办法

#/var/log/messages错误日志为:
Apr  5 19:45:25 localhost pptpd[2000]: GRE: read(fd=6,buffer=8059680,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Apr  5 19:45:25 localhost pptpd[2000]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)

# 打开options.pptpd
# vi /etc/ppp/options.pptpd
# 找到debug,在下面添加一行 debug dump 打开连接调试
#错误日志提示为:Cannot determine ethernet address for proxy ARP

Apr  5 19:49:25 localhost pppd[2026]: nobsdcomp         # (from /etc/ppp/options.pptpd)
Apr  5 19:49:25 localhost pppd[2026]: require-mppe-128          # (from /etc/ppp/options.pptpd)
Apr  5 19:49:25 localhost pppd[2026]: pppd 2.4.4 started by root, uid 0
Apr  5 19:49:25 localhost pppd[2026]: Using interface ppp0
Apr  5 19:49:25 localhost pppd[2026]: Connect: ppp0 <--> /dev/pts/1
Apr  5 19:49:25 localhost pppd[2026]: MPPE 128-bit stateless compression enabled
Apr  5 19:49:25 localhost pptpd[2025]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!
Apr  5 19:49:27 localhost pppd[2026]: Cannot determine ethernet address for proxy ARP
Apr  5 19:49:27 localhost pppd[2026]: local  IP address 10.0.0.1
Apr  5 19:49:27 localhost pppd[2026]: remote IP address 10.0.0.2

# 重启pptpd服务
service pptpd restart
windows上 开始运行cmd
apr -d *
再拨VPN就OK