<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=PT-BR link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US>As Paul requested, I&#8217;ll state what I
did to switch klips to kernel cryptoapi. I&#8217;ve changed settings on
defconfig and created a new file for def_include. I&#8217;ll attach both of them
for references. This was done on Ubuntu 9.04.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Download openswan-2.6.24rc1.tar.gz and
extract it. Enter openswan-2.6.24rc1 directory and:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>cp packaging/linus/config-all.h
packaging/linus/ubuntu9.h<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Edit packaging/linus/ubuntu9.h to match the
file attached. Basically, those are the changes made:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>define CONFIG_KLIPS_AH 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>define CONFIG_KLIPS_ENC_3DES 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>define CONFIG_KLIPS_ENC_AES 0<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>define CONFIG_KLIPS_ENC_CRYPTOAPI 1<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>This is important: I had to add those lines
to the file or the module would compile but fail to load:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>#undef CONFIG_KLIPS_ENC_3DES<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>#undef CONFIG_KLIPS_ENC_AES<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>#undef CONFIG_KLIPS_AH<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Edit linux/net/ipsec/defconfig to match the
file attached. What I changed was:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>CONFIG_KLIPS_AH=n<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>CONFIG_KLIPS_ENC_3DES=n<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>CONFIG_KLIPS_ENC_AES=n<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>CONFIG_KLIPS_ENC_CRYPTOAPI=y<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Compile and install the module with:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>make module
KERNELSRC=/lib/modules/2.6.28-15-generic/build/
MODULE_DEF_INCLUDE=/usr/src/openswan/openswan-2.6.24rc1/packaging/linus/ubuntu9.h
MODULE_DEFCONFIG=/usr/src/openswan/openswan-2.6.24rc1/linux/net/ipsec/defconfig<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>make minstall
KERNELSRC=/lib/modules/2.6.28-15-generic/build/
MODULE_DEF_INCLUDE=/usr/src/openswan/openswan-2.6.24rc1/packaging/linus/ubuntu9.h
MODULE_DEFCONFIG=/usr/src/openswan/openswan-2.6.24rc1/linux/net/ipsec/defconfig<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Remember to change KERNELSRC to the correct
location of your kernel headers and MODULE_DEF_INCLUDE and MODULE_DEFCONFIG to
the location of the files edited above. I&#8217;m not covering compiling the
userland or configuring ipsec.conf here, but you&#8217;ll need David McCullough
NAT-T patches to get it working with l2tp/ipsec.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Hope it helps,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Giovani</span><span
lang=EN-US><o:p></o:p></span></p>

</div>

 <BR><BR>__________ Information from ESET NOD32 Antivirus, version of virus signature database 4569 (20091103) __________<BR><BR>The message was checked by ESET NOD32 Antivirus.<BR><BR><A HREF="http://www.eset.com">http://www.eset.com</A><BR> </body>

</html>