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

Interoperating with Microsoft Windows and Apple Mac OS X

virtual_private=%v4:192.168.0.0/16,%v4:!192.168.1.0/24,%v4:10.0.0.0/8

include /etc/ipsec.d/examples/no_oe.conf

conn west-roadwarriors

#left is local (aivd.xelerance.com) left=193.110.157.131 leftcert=newwestCert.pem leftnexthop=193.110.157.158 leftsubnet=192.168.1.0/24

#right is roadwarrior/remote rightrsasigkey=%cert right=%any rightsubnet=vhost:%no,%pr auto=add

#clients must initiate rekey rekey=no

As with the configuration of Openswan with L2TP, verify that the kernel has ip_forwarding enabled, and rp_filter disabled. See Chapter 5 for detailed instructions on how to set up the server and where to place the certificate, private key, and Root CA.

Client Configuration for X.509 IPsec without L2TP

Since Windows 2000, Microsoft actually ships with a built-in IPsec client. It consists of the kernel part which, much like KLIPS and NETKEY, holds the SPDs and SADs (the IPsec policies) and which also performs the actual packet encryption and decryption. There are also third-party clients that contain their own IPsec implementation and do not require or depend on Microsoft's IPsec.

Microsoft's IKE Daemon

The IKE daemon is a Windows Service, called the 'IPSEC Policy Agent' on Windows 2000 and 'IPsec Service' on XP. The actual service name to use with the net start or net stop command is policyagent. To talk to the IKE daemon, you need to have Microsoft's equivalent of the Openswan whack program. For Windows 2000, this is called ipsecpol.exe, and is part of the Windows 2000 Resource Kit. For Windows XP and newer, this command is called ipseccmd.exe and comes as part of the Windows XP Support Tools.

When using Windows XP Service Pack 2, you will need to install an updated version of the Support Tools intended for use with Service Pack 2, otherwise ipseccmd.exe will not work properly.

These programs perform various tasks within the Windows Registry to glue together all IPsec-related tasks.

Microsoft's Certificate Store

The policy agent retrieves certificates from the Certificate Store that is located somewhere in the deep magic of the Windows Registry. You can use the Microsoft Management Console (MMC) to add or remove certificates. This is, however, a very tedious process, prone to errors.

176