我在 CentOS 6.5 上设置了 pptp (VPN) 服务器。我可以连接,但不幸的是,当我尝试加载页面时,它挂在“正在连接...”上,我不知道是什么导致了这种情况...
tail /var/log/messages
返回:
Apr 29 12:55:42 ps-vpn001 pptpd[1287]: GRE: read(fd=6,buffer=611860,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 29 12:55:42 ps-vpn001 pptpd[1287]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7) Apr 29 12:55:42 ps-vpn001 pptpd[1287]: CTRL: Client x.x.x.x control connection finished Apr 29 12:55:59 ps-vpn001 pptpd[1296]: CTRL: Client x.x.x.x control connection started Apr 29 12:55:59 ps-vpn001 pptpd[1296]: CTRL: Starting call (launching pppd, opening GRE) Apr 29 12:55:59 ps-vpn001 pppd[1297]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded. Apr 29 12:55:59 ps-vpn001 pppd[1297]: pppd 2.4.5 started by root, uid 0 Apr 29 12:55:59 ps-vpn001 pppd[1297]: Using interface ppp0 Apr 29 12:55:59 ps-vpn001 pppd[1297]: Connect: ppp0 <--> /dev/pts/1 Apr 29 12:55:59 ps-vpn001 pppd[1297]: peer from calling number x.x.x.x authorized Apr 29 12:55:59 ps-vpn001 pppd[1297]: MPPE 128-bit stateless compression enabled Apr 29 12:55:59 ps-vpn001 pppd[1297]: found interface eth0 for proxy arp Apr 29 12:55:59 ps-vpn001 pppd[1297]: local IP address 188.166.94.95 Apr 29 12:55:59 ps-vpn001 pppd[1297]: remote IP address 188.166.94.95 Apr 29 12:56:20 ps-vpn001 pppd[1297]: LCP terminated by peer (MPPE disabled) Apr 29 12:56:20 ps-vpn001 pppd[1297]: Connect time 0.4 minutes. Apr 29 12:56:20 ps-vpn001 pppd[1297]: Sent 0 bytes, received 22428 bytes. Apr 29 12:56:20 ps-vpn001 pptpd[1296]: CTRL: EOF or bad error reading ctrl packet length. Apr 29 12:56:20 ps-vpn001 pptpd[1296]: CTRL: couldn't read packet header (exit) Apr 29 12:56:20 ps-vpn001 pptpd[1296]: CTRL: CTRL read failed Apr 29 12:56:20 ps-vpn001 pppd[1297]: Modem hangup Apr 29 12:56:20 ps-vpn001 pppd[1297]: Connection terminated. Apr 29 12:56:20 ps-vpn001 pppd[1297]: Exit. Apr 29 12:56:20 ps-vpn001 pptpd[1296]: CTRL: Client x.x.x.x control connection finished
x.x.x.x
我的家乡IP在哪里。
我的options.pptpd
:http://pastebin.com/qiRv7six
答案1
第一种方法(更痛苦)是尝试调试问题,如下http://pptpclient.sourceforge.net/howto-diagnosis.phtml并启用调试日志。