Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Building And Integrating Virtual Private Networks With Openswan (2006).pdf
Скачиваний:
73
Добавлен:
17.08.2013
Размер:
4.74 Mб
Скачать

Chapter 12

This message is a nasty one, because it basically means "something went wrong", and there could be many reasons for it. The most common is that the Microsoft Windows native IPsec subsystem has been disabled, for instance by installing a third-party IPsec client such as NCP/Astaro, SoftRemote, or SSH-Sentinel. To re-enable it, find the IPsec service in the Services item in Administrative Tools, and change from Disabled or Manual to Automatic. Start it as well.

If that does not help, double-check the certificates again. Note that this error also happens if you try to combine IPsec connections with Terminal Service sessions on Windows 2000.

Mar 4 01:38:03 BlueElf pluto[21324]: "west-l2tp"[2] 216.59.238.100 #1: cannot respond to IPsec SA request because no connection is known for 193.110.157.131:17/1701 ... 216.59.238.100 [10.0.1.2] :17/56352===10.0.1.2/32

This indicates that you might have added a leftsubnet= statement in the L2TP connection. L2TP uses IPsec in host-to-host transport mode, rather than in host-to-subnet tunnel mode. Remove any leftsubnet= line completely.

Another reason could be that you have not specified rightproto=17/%any, but instead used

rightprotoport=17/0 or rightprotoport=17/1701, and the connecting client is either using a

high random source port (Mac OS X) or the incoming connection is from a Windows XP server without Service Pack 2. Another reason could be there is NAT-T involved and you did not specify

a rightsubnet=vhost:%no,%priv option.

Jun 29 03:16:24 mi6 pluto[11872]: "west-l2tp-patched-windows-cert"[4] 193.110.157.155 #4: IPsec SA established {ESP=>0xc83a62af <0x7cb7f18c xfrm=3DES_0-HMAC_MD5 NATD=none DPD=none}

If you get this success message, but you still did not manage to get the L2TP/IPsec tunnel working, and you are connecting from behind a NAT router, then double-check the NATD= setting in the above line. If it says NATD=none, then you are missing NAT-T support in the client. For XP, install at least SP2. For Windows 2000 first install SP4, then the Windows Update will list a patch in the 'Recommended updates' that adds IPsec NAT-Traversal support.

You Suddenly Cannot Log in Anymore over the VPN

Sometimes a Windows Update can cause a sudden failure of the VPN authentication. One user reported on the mailing list that his VPN broke after some security updates. After many days of tinkering, he finally solved it by applying Microsoft's Knowledge Base article Q244474, How to force Kerberos to use TCP instead of UDP in Windows Server 2003, in Windows XP, and in Windows 2000.

Obviously, the issue here was one of UDP, packet sizes, and fragmentation. Switching to TCP helped in this case, though of course it does not address the underlying problem.

Software Bugs

Software bugs can occur in the userland, such as in the startup scripts or the Pluto daemon, or in the kernel IPsec stack. Most software issues happen in the IKE daemon and if you can reproduce these errors, they can usually be fixed quickly. Kernel errors are more difficult to address, since finding the exact cause of a lock-up can be hard, and often the UML-based kernels do not exhibit the same problems as real kernels do.

275