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

Chapter 9

You can change this value to a matching setting in openswan-2/include/ietf_constants.h.

Symantec

Some Symantec VPN products contain a bug in the IKE negotiation. It sends packets with a length that does not match the length declared in the header length field. This manifests itself with the following error on the Openswan end:

Feb 12 14:58:52 CoffeeCompany pluto[12549]: packet from 193.110.157.17:500: size differs from size specified in ISAKMP HDR (40)

Upgrade the firmware to 16Y or higher to resolve this issue.

Frequently used VPN Client Appliances

Many DSL routers and WiFi products now support IPsec. These devices should be able to connect to Openswan. Some of them might be limited to pre-shared key connections, but more and more devices now offer support for X.509 Certificates. We will discuss a few commonly used products.

ZyXEL

ZyXEL makes products ranging from end-user DSL routers with IPsec support to dedicated firewall/VPN products.

Some versions of the ZyXEL firmware seem to exhibit a bug at rekey or IPsec SA deletion. The problem is that the ZyXEL units seem to delete the Phase 2 sixty seconds after the deletion of Phase 1, even if one of them has not yet expired. The problem is that during these sixty seconds, Openswan still uses the Phase 2, since it did not get deleted, but the ZyXEL assumes that the Phase 2 is dead. No packets will flow during these sixty seconds.

To add to the problem, the longest lifetime (on both the Phase 1 and Phase 2, since they are treated the same) is 3600 seconds. So this bug happens for one minute every hour. DPD would solve this issue, but we have not heard any reports of DPD running successfully on the ZyXEL, and we are not sure if it is properly supported.

This bug is not necessarily fixed in newer versions of the firmware. We have seen reports of the Presteige 652R-11 with ZyNOS v3.40(FN.7) exhibiting this bug, but the same unit with ZyNOS v3.40(FN.6) worked fine. Firmware versions before May 2005 also exhibit problems with multiple tunnels.

If your version does support subnets properly, but you accidentally set the Local: Addr Type option to SINGLE instead of SUBNET, you will be able to tell by the following error on the Openswan side:

Nov 23 22:03:43 ikmisyella pluto[7517]: "zywall" #3: cannot respond to IPsec SA request because no connection is known for 192.168.1.0/24===192.168.0.1[S=C]...192.168.0.254[S=C]===192.168.2.2/32

If your ZyXEL does not support subnets (we believe they all do), you can specify 192.168.2.2/32 instead of 192.168.2.0/24 as the rightsubnet= parameter on the Openswan side.

Other than these issues, configuration of the ZyXELs is pretty straightforward and all the options are pretty self explanatory. Below is an example using PSK with a ZyWALL. On the main VPN menu, you can edit and delete VPN connections.

217

Interoperating with Other Vendors

Below is the Edit menu. Be sure to set the Address Type to Subnet if you want a subnet-to-subnet connection. At the bottom of the screen, set the ESP encryption and authentication algorithms to 3DES and SHA1 respectively.

The Advanced menu is accessible by clicking the button at the bottom of the Edit screen. Set the

Key Group and Perfect Forward Secrecy options to DH2.

218