最近升级了VMware esxi 5.5后, 早上起来发现有人反应PPTP服务器没法连接VPN, 自己用黑苹果测试了一下, 发现服务器断开链接. 又试了一下Win7, 发现长久停留在验证用户名和密码的界面.
之前都好好的, 没有修改过PPTP服务器配置, 试了一下重新重启加载之前保存的配置, 再次拨号结果依然一样.
打开系统日志发现如下:
- Tue Nov 19 09:35:13 2013 : publish_entry SCDSet() failed: Success!
- Tue Nov 19 09:35:13 2013 : publish_entry SCDSet() failed: Success!
- Tue Nov 19 09:35:13 2013 : PPTP connecting to server ‘macros.cc’ (50.23.69.18)…
- Tue Nov 19 09:35:13 2013 : PPTP connection established.
- Tue Nov 19 09:35:13 2013 : PPTP set port-mapping for en0, interface: 4, protocol: 0, privatePort: 0
- Tue Nov 19 09:35:13 2013 : Using interface ppp0
- Tue Nov 19 09:35:13 2013 : Connect: ppp0 socket[34:17]
- Tue Nov 19 09:35:17 2013 : PPTP port-mapping for en0, interfaceIndex: 0, Protocol: None, Private Port: 0, Public Address: 0, Public Port: 0, TTL: 0.
- Tue Nov 19 09:35:17 2013 : PPTP port-mapping for en0 inconsistent. is Connected: 1, Previous interface: 4, Current interface 0
- Tue Nov 19 09:35:19 2013 : PPTP error when reading socket : EOF
- Tue Nov 19 09:35:19 2013 : PPTP error when reading header : read -1, expected 12 bytes
- Tue Nov 19 09:35:19 2013 : PPTP hangup
- Tue Nov 19 09:35:19 2013 : Connection terminated.
- Tue Nov 19 09:35:19 2013 : PPTP clearing port-mapping for en0
- Tue Nov 19 09:35:19 2013 : PPTP disconnecting…
- Tue Nov 19 09:35:19 2013 : PPTP disconnected
上网Google了一下, 找到了原因. 原来是虚拟机的E1000网卡的祸. 把E1000网卡删除, 然后添加Flexible类型网卡, 重新启动就解决了这个Bug. 如图.
下面是参考资料:
http://forum.mikrotik.com/viewtopic.php?f=15&t=78280
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2061834
Point-to-Point Tunneling Protocol (PPTP) connections may not work on ESXi 5.5(2061834)
Symptoms
- After upgrading to ESXi 5.5, the virtual machine providing Virtual Private Network (VPN)/Router/Firewall services is unable to connect to via Point-to-Point Tunneling Protocol.
- The virtual machine providing VPN/Router/Firewall is configured to use an E1000 vNIC adapter.
- Clients are unable to establish a PPTP connection to the virtual machine.
- Attempts to connect to the virtual machine with:Error 628