有一台 Macintosh(10.8.2),可以通过 PPTP 很好地连接到 CentOS 6.0 虚拟专用服务器(OpenVZ,由主机添加了 PPP)。
同一台计算机上使用相同以太网连接的 Windows 7 Home Premium 客户端(在 Sun 的 Virtual Box 中虚拟化)无法连接到 Linux VPN 服务器。
我在 Linux 机器上禁用了 iptables(用于测试)。我关闭了 Windows 防火墙。对于 Windows 连接,/var/log/messages 如下所示:
Oct 12 18:44:30 production pptpd[1880]: CTRL: Client 66.104.246.168 control connection started
Oct 12 18:44:30 production pptpd[1880]: CTRL: Starting call (launching pppd, opening GRE)
Oct 12 18:44:30 production pppd[1881]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Oct 12 18:44:30 production pppd[1881]: pptpd-logwtmp: $Version$
Oct 12 18:44:30 production pppd[1881]: pppd options in effect:
Oct 12 18:44:30 production pppd[1881]: debug#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: nologfd#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: dump#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: plugin /usr/lib/pptpd/pptpd-logwtmp.so#011#011# (from command line)
Oct 12 18:44:30 production pppd[1881]: require-mschap-v2#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: refuse-pap#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: refuse-chap#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: refuse-mschap#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: name pptpd#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: pptpd-original-ip 66.104.246.168#011#011# (from command line)
Oct 12 18:44:30 production pppd[1881]: 115200#011#011# (from command line)
Oct 12 18:44:30 production pppd[1881]: lock#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: local#011#011# (from command line)
Oct 12 18:44:30 production pppd[1881]: novj#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: novjccomp#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: ipparam 66.104.246.168#011#011# (from command line)
Oct 12 18:44:30 production pppd[1881]: proxyarp#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: 192.168.97.1:192.168.97.10#011#011# (from command line)
Oct 12 18:44:30 production pppd[1881]: nobsdcomp#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: require-mppe-128#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: mppe-stateful#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:44:30 production pppd[1881]: pppd 2.4.5 started by root, uid 0
Oct 12 18:44:30 production pppd[1881]: Using interface ppp0
Oct 12 18:44:30 production pppd[1881]: Connect: ppp0 <--> /dev/pts/1
(此时 Windows 机器显示一个对话框,内容为:“正在验证用户名和密码...”)
Oct 12 18:45:00 production pppd[1881]: LCP: timeout sending Config-Requests
Oct 12 18:45:00 production pppd[1881]: Connection terminated.
Oct 12 18:45:00 production pppd[1881]: Modem hangup
Oct 12 18:45:00 production pppd[1881]: Exit.
Oct 12 18:45:00 production pptpd[1880]: GRE: read(fd=6,buffer=8059660,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Oct 12 18:45:00 production pptpd[1880]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Oct 12 18:45:00 production pptpd[1880]: CTRL: Client 66.104.246.168 control connection finished
Macintosh 连接在 /var/log/messages 中如下所示:
Oct 12 18:50:49 production pptpd[1920]: CTRL: Client 66.104.246.168 control connection started
Oct 12 18:50:49 production pptpd[1920]: CTRL: Starting call (launching pppd, opening GRE)
Oct 12 18:50:49 production pppd[1921]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Oct 12 18:50:49 production pppd[1921]: pptpd-logwtmp: $Version$
Oct 12 18:50:49 production pppd[1921]: pppd options in effect:
Oct 12 18:50:49 production pppd[1921]: debug#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: nologfd#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: dump#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: plugin /usr/lib/pptpd/pptpd-logwtmp.so#011#011# (from command line)
Oct 12 18:50:49 production pppd[1921]: require-mschap-v2#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: refuse-pap#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: refuse-chap#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: refuse-mschap#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: name pptpd#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: pptpd-original-ip 66.104.246.168#011#011# (from command line)
Oct 12 18:50:49 production pppd[1921]: 115200#011#011# (from command line)
Oct 12 18:50:49 production pppd[1921]: lock#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: local#011#011# (from command line)
Oct 12 18:50:49 production pppd[1921]: novj#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: novjccomp#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: ipparam 66.104.246.168#011#011# (from command line)
Oct 12 18:50:49 production pppd[1921]: proxyarp#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: 192.168.97.1:192.168.97.10#011#011# (from command line)
Oct 12 18:50:49 production pppd[1921]: nobsdcomp#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: require-mppe-128#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: mppe-stateful#011#011# (from /etc/ppp/options.pptpd)
Oct 12 18:50:49 production pppd[1921]: pppd 2.4.5 started by root, uid 0
Oct 12 18:50:49 production pppd[1921]: Using interface ppp0
Oct 12 18:50:49 production pppd[1921]: Connect: ppp0 <--> /dev/pts/1
Oct 12 18:50:52 production pppd[1921]: MPPE 128-bit stateless compression enabled
Oct 12 18:50:52 production pppd[1921]: Unsupported protocol 'IPv6 Control Protocol' (0x8057) received
Oct 12 18:50:52 production pppd[1921]: Unsupported protocol 'Apple Client Server Protocol Control' (0x8235) received
Oct 12 18:50:52 production pppd[1921]: Cannot determine ethernet address for proxy ARP
Oct 12 18:50:52 production pppd[1921]: local IP address 192.168.97.1
Oct 12 18:50:52 production pppd[1921]: remote IP address 192.168.97.10
Oct 12 18:50:52 production pppd[1921]: pptpd-logwtmp.so ip-up ppp0 chris 66.104.246.168
我困惑了……