<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Windancer - Stairway to ...Heaven?</title>
	<atom:link href="http://www.imacandi.net/windancer/feed" rel="self" type="application/rss+xml" />
	<link>http://www.imacandi.net/windancer</link>
	<description>&#34;You know my methods, Watson...&#34;</description>
	<lastBuildDate>Fri, 05 Feb 2010 17:49:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>to IPComp or not to IPComp and&#8230;which Vendor</title>
		<link>http://www.imacandi.net/windancer/2010/02/05/to-ipcomp-or-not-to-ipcomp-and-which-vendor.html</link>
		<comments>http://www.imacandi.net/windancer/2010/02/05/to-ipcomp-or-not-to-ipcomp-and-which-vendor.html#comments</comments>
		<pubDate>Fri, 05 Feb 2010 17:49:21 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[checkpoint]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[IETF]]></category>
		<category><![CDATA[IKE]]></category>
		<category><![CDATA[IPComp]]></category>
		<category><![CDATA[ipsec]]></category>
		<category><![CDATA[netcocoon]]></category>
		<category><![CDATA[passion]]></category>
		<category><![CDATA[RFC]]></category>
		<category><![CDATA[Strongswan]]></category>
		<category><![CDATA[techie]]></category>
		<category><![CDATA[xfrm]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1603</guid>
		<description><![CDATA[It occurred to me today&#8230;how &#8217;bout trying an IPcomp scenario? Of course, looking at RFC 3173, I was very excited about running a test and actually viewing Next Header / Protocol = 108, as the IETF guys say.
Basically, the &#8220;Compression&#8221; part of this IPsec traffic is negotiated just as  any other protocol: AH, ESP, EAP&#8230;via [...]]]></description>
			<content:encoded><![CDATA[<p>It occurred to me today&#8230;how &#8217;bout trying an <strong><a href="http://www.faqs.org/rfcs/rfc3173.html">IPcomp</a></strong> scenario? Of course, looking at <strong><a href="http://www.faqs.org/rfcs/rfc3173.html">RFC 3173</a></strong>, I was very excited about running a test and actually viewing <strong>Next Header / Protocol = 108</strong>, as the IETF guys say.</p>
<p>Basically, the &#8220;Compression&#8221; part of this IPsec traffic is negotiated just as  any other protocol: AH, ESP, EAP&#8230;via IKE, or manually configured on a device. Now&#8230;as I&#8217;ve got to devices&#8230;.good question: _what_ device could I use if I want IPsec IPCompression?</p>
<p>Look at this:<strong><a href="http://www.vpnc.org/vpnc-ipsec-features-chart.html"> http://www.vpnc.org/vpnc-ipsec-features-chart.html</a><span style="font-weight: normal;">. Scroll down to &#8220;Features (HTML table). The vendors that actually implement this, as per VPN Consortium (and for some of them I could tell you from direct experience), are </span>CheckPoint, Cisco, McAfee, SafeNet, StoneSF and TeamF1</strong>. A bit disappointed that I didn&#8217;t have the opportunity of working on all of these devices, I am redirecting my attention to what I do have: a big, shiny and fluffy Debian, with Strongswan installed and xfrm module also on.</p>
<p>So, lets get down to business. I have taken the simplest scenario I could think of at the moment, a <strong>transport mode</strong> scenario, having as Initiator 192.168.0.10 and as Responder 192.168.0.1. These two hosts negotiate 3des-md5-dh2 algorithms, doing PSK authentication. No PFS, no other kinky stuff. Just basic IKEv2 negotiation. The Strongswan config is as simple as possible.</p>
<p>*Note 1 : on strongswan.org people say that IKEv2 does not support compression &#8211; I have run a test with IKEv2 and compression and it works very well <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But, in order to humor the strongswan guys, I have used IKEv1 in the following scenario</p>
<p>*Note 2 : in order to actually _see_ the encapsulated packets, I have used ESP-NULL Encryption for data encapsulation. Yes, I could have used a <strong>NetCocoon </strong>analyzer, but that &#8211; in the next episode <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>So: IKEv1, Transport mode, Main Mode, Null Encryption, ESP only, IP Comp:</p>
<div id="_mcePaste"><strong><em>config setup</em></strong></div>
<div id="_mcePaste"><strong><em>plutostart=yes</em></strong></div>
<div id="_mcePaste"><strong><em>charonstart=no</em></strong></div>
<div id="_mcePaste"><strong><em>plutodebug=all</em></strong></div>
<div id="_mcePaste"><strong><em>crlcheckinterval=180</em></strong></div>
<div id="_mcePaste"><strong><em>strictcrlpolicy=no</em></strong></div>
<div id="_mcePaste"><strong><em># Add connections here.</em></strong></div>
<div id="_mcePaste"><strong><em>conn %default</em></strong></div>
<div id="_mcePaste"><strong><em>keyingtries=1</em></strong></div>
<div id="_mcePaste"><strong><em>keyexchange=ikev1</em></strong></div>
<div id="_mcePaste"><strong><em>authby=secret</em></strong></div>
<div id="_mcePaste"><strong><em>mobike=no</em></strong></div>
<div id="_mcePaste"><strong><em>pfs=no</em></strong></div>
<div id="_mcePaste"><strong><em>type=transport</em></strong></div>
<div id="_mcePaste"><strong><em>compress=yes</em></strong></div>
<div id="_mcePaste"><strong><em>auto=start</em></strong></div>
<div id="_mcePaste"><strong><em>ike=3des-md5-modp1024</em></strong></div>
<div id="_mcePaste"><strong><em>esp=null-md5</em></strong></div>
<div id="_mcePaste"><strong><em>leftfirewall=yes</em></strong></div>
<div id="_mcePaste"><strong><em>rekey=yes</em></strong></div>
<div id="_mcePaste"><strong><em>conn network1</em></strong></div>
<div id="_mcePaste"><strong><em>left=192.168.0.1</em></strong></div>
<div id="_mcePaste"><strong><em>right=192.168.0.10</em></strong></div>
<div><strong><em></p>
<div># ipsec status</div>
<div><span style="font-weight: normal;">000 &#8220;network1&#8243;: 192.168.0.1[192.168.0.1]&#8230;192.168.0.10[192.168.0.10]; erouted; eroute owner: #3</span></div>
<div><span style="font-weight: normal;">000 &#8220;network1&#8243;:   newest ISAKMP SA: #2; newest IPsec SA: #3;</span></div>
<div><span style="font-weight: normal;">000</span></div>
<div><span style="font-weight: normal;">000 #3: &#8220;network1&#8243; STATE_QUICK_R2 (IPsec SA established); EVENT_SA_REPLACE in 2488s; newest IPSEC; eroute owner</span></div>
<div><span style="font-weight: normal;">000 #3: &#8220;network1&#8243; esp.525b0b48@192.168.0.10 (0 bytes) esp.5511d8c2@192.168.0.1 (0 bytes) comp.1169@192.168.0.10 comp.527e@192.168.0.1; transport</span></div>
<div><span style="font-weight: normal;">000 #2: &#8220;network1&#8243; STATE_MAIN_R3 (sent MR3, ISAKMP SA established); EVENT_SA_REPLACE in 2488s; newest ISAKMP</span></div>
<div><span style="font-weight: normal;">000</span></div>
<div><span style="font-weight: normal;"><br />
</span></div>
<div><span style="font-style: normal; font-weight: normal;"><strong><em></p>
<div><span style="font-weight: normal;"><span style="font-style: normal;">Yes, it worked.</span></span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;"><br />
</span></span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;">Now&#8230;I am not sure what exact compression algorithms this Strongswan daemon has, but I can tell you for sure it uses at least <strong><a href="http://en.wikipedia.org/wiki/DEFLATE">DEFLATE</a></strong><a href="http://en.wikipedia.org/wiki/DEFLATE"> </a>(  <strong><a href="http://www.faqs.org/rfcs/rfc2394.html">RFC 2394</a></strong> ). <strong><a href="http://www.cisco.com/en/US/docs/ios/12_2t/12_2t13/feature/guide/ft_lzsft.html">Cisco</a></strong><a href="http://www.cisco.com/en/US/docs/ios/12_2t/12_2t13/feature/guide/ft_lzsft.html"> </a>on the other hand, uses only <strong>LZS </strong>(<strong><a href="http://www.faqs.org/rfcs/rfc2395.html">RFC 2395</a></strong> ) &#8211; as far as I have seen &#8211; to be updated if anybody else tested it versus DEFLATE.</span></span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;">The process of actually obtaining this cute ESP packets is the following:</span></span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;">a. get the Data from the upper layers of the TCP stack &#8211; doh, we need data</span></span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;">b. compress the Data above using the chosen algorithm &#8211; you will notice the <strong>CPI</strong> &#8211; Compression Parameter Index &#8211; which has well know identifiers for the well known compression algorithms</span></span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;">c. set the Next Header value of the IPComp header to the layer 4 protocol (in this case, TCP)</span></span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;">d. encapsulate everything in ESP, put on the corresponding SPI, set the Next Header value of the ESP header to 108 (0&#215;6c)</span></span></div>
<div><span style="font-style: normal; font-weight: normal;">e. wrap it up in IP and&#8230; we are all set</span></div>
<div><span style="font-style: normal; font-weight: normal;"><br />
</span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;">&#8212; You can admire the ESP of IKEv1 in the screenshot attached</span></span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;"><a href="http://www.imacandi.net/windancer/wp-content/uploads/2010/02/ipcomp.jpg" class="lightview" rel="gallery[1603]" title="ipcomp"><img class="alignright size-full wp-image-1608" title="ipcomp" src="http://www.imacandi.net/windancer/wp-content/uploads/2010/02/ipcomp.jpg" alt="" width="744" height="268" /></a><br />
</span></span></div>
<div><span style="font-weight: normal;"><span style="font-style: normal;"><br />
</span></span></div>
<div><span style="font-style: normal; font-weight: normal;">Now, what happens differently with IKEv2? I was telling you before the on Strongswan, IKEv2 and AH is a no-no for the moment, ESP with null encryption does a weird thinggie that vmp was so kind to point it out for me (while I was feeling actually quite happy about myself being able to do an IPComp test via IKEv1).</span></div>
<div><span style="font-style: normal; font-weight: normal;">The thing is that, unlike the (correct) way of doing IPComp in IKEv1 (see the aboe a. to e. steps), IKEv2 implementation of Strongswan does a weird thing: </span></div>
<div><span style="font-style: normal; font-weight: normal;">a. get the Data ..blah-blah</span></div>
<div><span style="font-style: normal; font-weight: normal;">b. compress the Data with whatever compression algorithm and put on the IPComp header with CPI value and all</span></div>
<div><span style="font-style: normal; font-weight: normal;">* c. put on another IP header (the internal one, in case of a tunnel mode scenario)</span></div>
<div><span style="font-style: normal; font-weight: normal;">d. put on the ESP header</span></div>
<div><span style="font-style: normal; font-weight: normal;">e. wrap everything up</span></div>
<div><span style="font-style: normal; font-weight: normal;"><br />
</span></div>
<div><span style="font-style: normal; font-weight: normal;">&#8212; Unfortunately, you CANNOT admire the ESP of IKEV2 in a screenshot, because my current wireshark has no idea on how to do decompression of this type of packet. Once it does, I will update <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></div>
<p></em></strong></p>
<p></span></div>
<p></em></strong></p>
</div>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=to+IPComp+or+not+to+IPComp+and%E2%80%A6which+Vendor+http://6hmnm.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/02/05/to-ipcomp-or-not-to-ipcomp-and-which-vendor.html&amp;title=to+IPComp+or+not+to+IPComp+and%E2%80%A6which+Vendor" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/02/05/to-ipcomp-or-not-to-ipcomp-and-which-vendor.html&amp;title=to+IPComp+or+not+to+IPComp+and%E2%80%A6which+Vendor" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/02/05/to-ipcomp-or-not-to-ipcomp-and-which-vendor.html&amp;t=to+IPComp+or+not+to+IPComp+and%E2%80%A6which+Vendor" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/02/05/to-ipcomp-or-not-to-ipcomp-and-which-vendor.html&amp;t=to+IPComp+or+not+to+IPComp+and%E2%80%A6which+Vendor&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/02/05/to-ipcomp-or-not-to-ipcomp-and-which-vendor.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>we haz Smart Food :)</title>
		<link>http://www.imacandi.net/windancer/2010/02/04/we-haz-smart-food.html</link>
		<comments>http://www.imacandi.net/windancer/2010/02/04/we-haz-smart-food.html#comments</comments>
		<pubDate>Thu, 04 Feb 2010 12:41:39 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mancare sanatoasa]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1598</guid>
		<description><![CDATA[Dupa cum unii dintre voi stiau, tipul ala mare, blond, ras in cap si cu motocicleta (Alex Militaru), si-a facut firma de catering – Smart Food.
De ce? Pentru ca e super simandicos si pretentios si sclifosit si vrea sa aiba mereu procentajul ideal de grasime versus muschi/oase…si ce-o mai fi in corp. De-aia era mereu [...]]]></description>
			<content:encoded><![CDATA[<p>Dupa cum unii dintre voi stiau, tipul ala mare, blond, ras in cap si cu motocicleta (Alex Militaru), si-a facut firma de catering – <strong><a href="http://www.smartfood.ro/">Smart Food</a></strong>.</p>
<p>De ce? Pentru ca e super simandicos si pretentios si sclifosit si vrea sa aiba mereu procentajul ideal de grasime versus muschi/oase…si ce-o mai fi in corp. De-aia era mereu nemultumit de mancarea pe care o gaseam primprejur si s-a gandit sa rezolve el problema.</p>
<p>Azi am comandat mai multi de la Smart Food si am fost foooarte multumiti. Preturile sunt cam ca peste tot, dar mancarea e fff buna, te saturi, da’ nu simti ca dai pe-afara, nu e grasa si e gatita ca sa isi pastreze componentele hranitoare. Conceptul Smart Food este enuntat de Alex pe pagina de  …<a href="http://www.smartfood.ro/concept.html"><strong>Concept</strong></a></p>
<p><strong><em>Smartfood s-a nascut din dorinta de a oferi clientilor un gust aparte si un mod sanatos de preparare a produselor, fara aditivi, fara conservanti si fara compromisuri. Conceptul s-a nascut dupa o experienta personala materializata in cautarea unui echilibru alimentar, incercarea de a ajunge la o greutate ideala, completate de sport. Dupa cativa ani de studiu, 20 de kg mai putin si multiple incercari am ajuns la o formula ce ofera deopotriva mancare gustoasa si sanatoasa….</em></strong></p>
<p>Alaturi de mancarea etichetata frumos sa nu ne incurcam intre noi am primit si sloganuri speciale, ale mele sunt asa:</p>
<p><strong>Supa crema de ciuperci – <em>IKEv2 si niste terci</em></strong></p>
<p><strong>Pui balsamic – <em>ai grija la degete</em></strong></p>
<p>Pentru maine am comandat:</p>
<p><strong>supa de broccoli cu branza de capra<br />
somon aglio olio</strong></p>
<p>Abia astept sa vina!!!</p>
<p>Meniul e la adresa :</p>
<p><a href="http://smartfood.ro/meniu.html"><strong>http://smartfood.ro/meniu.html</strong></a></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong></p>
<div>Comenzi la: <strong>0764 828 122</strong>, <strong>0725 450 662</strong> sau <strong>0751 339 940</strong></div>
<p></strong></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=we+haz+Smart+Food+%3A%29+http://zgn4x.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/02/04/we-haz-smart-food.html&amp;title=we+haz+Smart+Food+%3A%29" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/02/04/we-haz-smart-food.html&amp;title=we+haz+Smart+Food+%3A%29" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/02/04/we-haz-smart-food.html&amp;t=we+haz+Smart+Food+%3A%29" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/02/04/we-haz-smart-food.html&amp;t=we+haz+Smart+Food+%3A%29&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/02/04/we-haz-smart-food.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>geek joke</title>
		<link>http://www.imacandi.net/windancer/2010/02/04/geek-joke.html</link>
		<comments>http://www.imacandi.net/windancer/2010/02/04/geek-joke.html#comments</comments>
		<pubDate>Thu, 04 Feb 2010 11:38:02 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[geekish]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1596</guid>
		<description><![CDATA[When I read it on her facebook page, I was rotfl
&#8212; from a friend, now studying Cybernetics in Bonn
&#8220;you have the attention of a dirac distribution&#8221;&#8230;
    ]]></description>
			<content:encoded><![CDATA[<p>When I read it on her facebook page, I was rotfl</p>
<p>&#8212; from a friend, now studying Cybernetics in Bonn</p>
<h3>&#8220;you have the attention of a dirac distribution&#8221;&#8230;</h3>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=geek+joke+http://ksr6c.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/02/04/geek-joke.html&amp;title=geek+joke" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/02/04/geek-joke.html&amp;title=geek+joke" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/02/04/geek-joke.html&amp;t=geek+joke" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/02/04/geek-joke.html&amp;t=geek+joke&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/02/04/geek-joke.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Smart Food &#8211; as a true Quality Assurance Engineer</title>
		<link>http://www.imacandi.net/windancer/2010/02/04/smart-food-as-a-true-quality-assurance-engineer.html</link>
		<comments>http://www.imacandi.net/windancer/2010/02/04/smart-food-as-a-true-quality-assurance-engineer.html#comments</comments>
		<pubDate>Thu, 04 Feb 2010 11:30:20 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fit]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[gym]]></category>
		<category><![CDATA[health]]></category>
		<category><![CDATA[passion]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1594</guid>
		<description><![CDATA[Alex was my QA colleague. Wonderful engineer and wonderful person. And a very demanding person in matters of food, he was never happy with the food we used to get from the local places and restaurants, we always made fun of him being so picky about everything.
So, last year, a few months ago, he decided [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Alex</strong> was my QA colleague. Wonderful engineer and wonderful person. And a very demanding person in matters of food, he was never happy with the food we used to get from the local places and restaurants, we always made fun of him being so picky about everything.</p>
<p>So, last year, a few months ago, he decided to solve this problem and opened <strong><a href="http://">Smart Food</a></strong>. Today I&#8217;ve ordered <strong><em>Mushroom soup</em></strong> and <strong><em>Balsamic chicken with vegetables</em></strong>. I am simply HAPPY, I&#8217;ve eaten all the food, very fast, I just couldn&#8217;t help myself . Some other colleagues ordered two other types of soups and fish, I have tasted all, of course. My opinion: WONDERFUL.</p>
<p>Finally, good quality food, what <strong>Alex </strong>and his team had in mind all the time. The Smart Food concept is the following: &#8220;Smartfood was born out of the wish to offer our customers a special taste and a healthy way of preparing our products: no additives, no preservatives and no compromises&#8221;&#8230;read the rest on the <strong><a href="http://www.smartfood.ro/concept.html">Smart Food site.</a></strong></p>
<p>Alex practiced sports when he was in highschool and gained a lot of weight in the past few years. Over more than a year, he actually eats everyday the type of food he sells to us. When I met him at a coffee shop 2 months ago I simply didn&#8217;t recognized him: very very fit, looking much younger and simply gorgeous. I have decided to go to the gym at least 3-4 times a week (for the past month I have went almost 5 days every week) &#8211; following his advice and be more careful about what I eat and when I eat. The <strong>Smart Food</strong> products are very nourishing, but have a big advantage: they help me stay in shape and&#8230;boy, I looove shapes&#8230;I&#8217;m gonna go to the gym and run again at least 6km&#8230;as in the past couple of weeks &#8211; talk to you later <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Smart+Food+%E2%80%93+as+a+true+Quality+Assurance+Engineer+http://yrawt.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/02/04/smart-food-as-a-true-quality-assurance-engineer.html&amp;title=Smart+Food+%E2%80%93+as+a+true+Quality+Assurance+Engineer" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/02/04/smart-food-as-a-true-quality-assurance-engineer.html&amp;title=Smart+Food+%E2%80%93+as+a+true+Quality+Assurance+Engineer" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/02/04/smart-food-as-a-true-quality-assurance-engineer.html&amp;t=Smart+Food+%E2%80%93+as+a+true+Quality+Assurance+Engineer" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/02/04/smart-food-as-a-true-quality-assurance-engineer.html&amp;t=Smart+Food+%E2%80%93+as+a+true+Quality+Assurance+Engineer&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/02/04/smart-food-as-a-true-quality-assurance-engineer.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Come Rugiada al cespite</title>
		<link>http://www.imacandi.net/windancer/2010/01/29/come-rugiada-al-cespite.html</link>
		<comments>http://www.imacandi.net/windancer/2010/01/29/come-rugiada-al-cespite.html#comments</comments>
		<pubDate>Fri, 29 Jan 2010 09:50:49 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[passion]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1592</guid>
		<description><![CDATA[by Placido Domingo &#8211; Verdi &#8211; Ernani - first scene
That kind of voice and interpretation that just gives you thrills all over your body and never lets you get away from the iPod
Come rugiada al cespite
D&#8217;un appassito fiore,
D&#8217;aragonese vergine
Scendeami voce al core;
Fu quello il primo palpito,
il primo palpito
D&#8217;amor, d&#8217;amor che mi beò
Il vecchio Silva stendere
Osa [...]]]></description>
			<content:encoded><![CDATA[<p>by Placido Domingo &#8211; Verdi &#8211; <strong>Ernani </strong>- first scene</p>
<p><a href="http://www.imacandi.net/windancer/2010/01/29/come-rugiada-al-cespite.html"><em>Click here to view the embedded video.</em></a></p>
<p>That kind of voice and interpretation that just gives you thrills all over your body and never lets you get away from the iPod</p>
<p><em>Come rugiada al cespite<br />
D&#8217;un appassito fiore,<br />
D&#8217;aragonese vergine<br />
Scendeami voce al core;<br />
Fu quello il primo palpito,<br />
il primo palpito<br />
D&#8217;amor, d&#8217;amor che mi beò<br />
Il vecchio Silva stendere<br />
Osa su lei la mano<br />
Domani trarla al talamo<br />
Confida l&#8217;inumano.<br />
Ah, s&#8217;ella m&#8217;è tolta, ahi, misero!<br />
D&#8217;affanno morirò!<br />
S&#8217;ella m&#8217;è tolta, ahi, misero!<br />
D&#8217;affanno morirò!<br />
D&#8217;affanno, d&#8217;affanno, d&#8217;affanno morirò!<br />
D&#8217;affanno morirò!<br />
D&#8217;affanno morirò!</em></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Come+Rugiada+al+cespite+http://www.imacandi.net/windancer/?p=1592" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/01/29/come-rugiada-al-cespite.html&amp;title=Come+Rugiada+al+cespite" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/01/29/come-rugiada-al-cespite.html&amp;title=Come+Rugiada+al+cespite" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/01/29/come-rugiada-al-cespite.html&amp;t=Come+Rugiada+al+cespite" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/01/29/come-rugiada-al-cespite.html&amp;t=Come+Rugiada+al+cespite&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/01/29/come-rugiada-al-cespite.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>RSA keypair, Radius and StokeOS for IKEv2-EAP Authentication</title>
		<link>http://www.imacandi.net/windancer/2010/01/28/rsa-keypair-radius-and-stokeos-for-ikev2-eap-authentication.html</link>
		<comments>http://www.imacandi.net/windancer/2010/01/28/rsa-keypair-radius-and-stokeos-for-ikev2-eap-authentication.html#comments</comments>
		<pubDate>Thu, 28 Jan 2010 10:30:11 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[csr]]></category>
		<category><![CDATA[digital certificates]]></category>
		<category><![CDATA[eap]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[p7b]]></category>
		<category><![CDATA[PFX]]></category>
		<category><![CDATA[PKCS12]]></category>
		<category><![CDATA[PKI]]></category>
		<category><![CDATA[techie]]></category>
		<category><![CDATA[X509]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1577</guid>
		<description><![CDATA[Stoke is quite a cool company when it comes to VPN gateways, and I mention here the SSX-3000, the only device I had the pleasure of working with. I could see on their website that new investments are made in LTE technologies, which should make this company even more attractive for me.
Well, this post is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.stoke.com/"><strong>Stoke </strong></a>is quite a cool company when it comes to VPN gateways, and I mention here the <a href="http://www.stoke.com/Products/ssx-3000.asp"><strong>SSX-3000</strong></a>, the only device I had the pleasure of working with. I could see on their website that new investments are made in <strong>LTE </strong>technologies, which should make this company even more attractive for me.</p>
<p>Well, this post is going to be about a specific thinggie of the SSX-3000 and<strong><a href="http://www.stoke.com/Products/StokeOS_specs.asp"> StokeOS</a></strong>, that funky colored box, namely how they work with digital certificates. The scenario I am using them on is a classic Remote-Access scenario, for IKEv2. The StokeOS gateway is getting authenticated by the roadwarrior via digital certificate, while the roadwarrior authenticates via <a href="http://tools.ietf.org/html/draft-eronen-ipsec-ikev2-eap-auth-07"><strong>EAP</strong></a>.</p>
<p>First of all, we need digital certificates for the StokeOS. Following the User Guide got me nowhere, so we had to be inventive <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><strong>A. The official version</strong></p>
<p>1. Create a CSR on the Stoke:</p>
<p><strong><em>Stoke[local]#certificate request new name newcsr.pem days 100 keylength 1024</em></strong></p>
<p>2. Copy &#8211; paste the content of the CSR (or copy the file onto an ftp/tftp server), then generate a certificate using a CA (I had a Windows 2003 Server) =&gt; results a signed certificate &#8211; I used to download them in base64 format</p>
<p>3. Copy &#8211; paste the CA&#8217;s certificate and the Stoke&#8217;s certificate we&#8217;ve just signed onto Stoke and run the command:</p>
<div id="_mcePaste"><strong><em>Stoke[local]#certificate device-certificate new ca-certfile cacert.pem format pemcertfile signed-ssx-ca.pem format pem name mypkcs12</em></strong></div>
<p>&#8212; This command should &#8220;link&#8221; the CA, the signed certificate and the Stoke&#8217;s private RSA key to a PKCS12 file that this device uses for authentication. This is how Stoke authenticates <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>*** PROBLEM: when generating the CSR, the private key doesn&#8217;t get saved anywhere. I have looked everywhere:  &#8221; -r&#8221; : /hd/&#8230;, /cfint, /cfext&#8230; &#8211; so, the latest mightiest command is not working.</p>
<p><strong>B.  The working version</strong></p>
<p>1. Do not create the CSR on the DUT <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>2. Generate a &#8220;Server Certificate&#8221; from IE and download it to a tftp/ftp server &#8211; it will be in pfx format</p>
<p>3. Export the private key to a separate key file &#8211; I have used <strong><em>openssl</em><span style="font-weight: normal;"> </span></strong></p>
<p>4. Upload the CA&#8217;s certificate, signed certificate and the private key file on SSX and run the command (assuming I have put these files on /hd/Certs directory):</p>
<p><strong><em>Stoke[local]#certificate device-certificate new name SSX format pem ca-certfile /hd/Certs/cacert.pem format pem signed-certificate /hd/Certs/signed-ssx-ca.pem format pem private-key /hd/Certs/signed-ssx-ca-key.pem</em></strong></p>
<p>and now it works <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>as you can see from</p>
<p><strong><em>Stoke[local]#sh certificate device-certificate all</em></strong></p>
<p><strong><em>Certificate Name</em></strong></p>
<p><strong><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</em></strong></p>
<p><strong><em>SSX</em></strong></p>
<p>Further on, create a context &#8211; I have called it <strong><em>test </em><span style="font-weight: normal;">and a name for the radius session &#8211; I have called it </span><em>ikev2</em><span style="font-weight: normal;">, instruct the Stoke to do session authentication on radius, create a management interface on the same subnet as the radius machine, configure a radius server (where the Stoke should connect for session authentication) and, of course, the IKEv2 policies that make it work and the Configuration Payload (as we like to call the famous &#8220;mode-configuration&#8221; in IKEv2). The config should look like this:</span></strong></p>
<p><a href="http://www.imacandi.net/windancer/wp-content/uploads/2010/01/stoke.jpg" class="lightview" rel="gallery[1577]" title="stoke"><img class="alignright size-full wp-image-1587" title="stoke" src="http://www.imacandi.net/windancer/wp-content/uploads/2010/01/stoke.jpg" alt="" width="877" height="373" /></a></p>
<p><strong><span style="font-weight: normal;"><span id="more-1577"></span><strong><em>context test</em></strong></span></strong></p>
<p><strong><strong><em> aaa profile</em></strong></strong></p>
<p><strong><strong><em> user authentication local</em></strong></strong></p>
<p><strong><strong><em> session authentication radius</em></strong></strong></p>
<p><strong><strong><em> service authorization local</em></strong></strong></p>
<p><strong><strong><em> exit</em></strong></strong></p>
<p><strong> </strong></p>
<p><strong><em> session name ikev2</em></strong></p>
<p><strong><em> ip address pool</em></strong></p>
<p><strong><em> password encrypted 3A0C060A</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> radius strip-domain</em></strong></p>
<p><strong><em> radius session authentication profile</em></strong></p>
<p><strong><em> timeout 60</em></strong></p>
<p><strong><em> retry 3</em></strong></p>
<p><strong><em> max-outstanding 127</em></strong></p>
<p><strong><em> server 10.205.17.172 port 1812 key ipsec</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> ip pool 40.0.0.2 1024</em></strong></p>
<p><strong><em> interface Mngmt management</em></strong></p>
<p><strong><em> arp arpa</em></strong></p>
<p><strong><em> ip source-address context-default</em></strong></p>
<p><strong><em> ip address 10.205.17.238/24</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> interface session1 session loopback</em></strong></p>
<p><strong><em> ip session-default</em></strong></p>
<p><strong><em> ip address 40.0.0.1/32</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> interface Untrust_1</em></strong></p>
<p><strong><em> arp arpa</em></strong></p>
<p><strong><em> ip address 200.0.0.1/24</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> interface Trust_1</em></strong></p>
<p><strong><em> arp arpa</em></strong></p>
<p><strong><em> ip address 201.0.0.1/24</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> ip route 50.0.0.0/16 200.0.0.2</em></strong></p>
<p><strong><em> ip route 70.0.0.0/16 201.0.0.2</em></strong></p>
<p><strong><em> ipsec policy ikev2 phase1 name RAv2</em></strong></p>
<p><strong><em> custom</em></strong></p>
<p><strong><em> gw-authentication certificate name SSX password encrypted 3A0C060A</em></strong></p>
<p><strong><em> peer-authentication eap</em></strong></p>
<p><strong><em> hard-lifetime 3600 secs</em></strong></p>
<p><strong><em> encryption triple-des</em></strong></p>
<p><strong><em> hash md5</em></strong></p>
<p><strong><em> d-h group2</em></strong></p>
<p><strong><em> prf md5</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> ipsec policy ikev2 phase2 name RAv2</em></strong></p>
<p><strong><em> any</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em>port ethernet 0/0</em></strong></p>
<p><strong><em> bind interface Mngmt test</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> enable</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em>port ethernet 1/0</em></strong></p>
<p><strong><em> bind interface Untrust_1 test</em></strong></p>
<p><strong><em> ipsec policy ikev2 phase1 name RAv2</em></strong></p>
<p><strong><em> ipsec policy ikev2 phase2 name RAv2</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> service ipsec</em></strong></p>
<p><strong><em> enable</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em>port ethernet 1/2</em></strong></p>
<p><strong><em> bind interface Trust_1 test</em></strong></p>
<p><strong><em> exit</em></strong></p>
<p><strong><em> enable</em></strong></p>
<p><strong><em> exit</em></strong></p>
<div><span style="font-weight: normal;">Also, I had a <strong>radius system</strong> (a freeradius 2.1.6) &#8211; with EAP enabled, MD5 default EAP-Type, and realm NULL enabled.</span></div>
<div><span style="font-weight: normal;">The main files of the configs are (default is not mentioned):</span></div>
<div>- the <strong><em>users</em><span style="font-weight: normal;"> file has:</span></strong></div>
<div><strong><span style="font-weight: normal;"></p>
<div><strong><em>DEFAULT Auth-Type := EAP, Cleartext-Password := &#8220;md5&#8243;</em></strong></div>
<div><strong><em> Service-Type = Framed-User,</em></strong></div>
<div><strong><em> Framed-IP-Address = 255.255.255.254,</em></strong></div>
<div><strong><em><br />
</em></strong></div>
<div>As I am a nutcase sometimes, this time I wanted to run with full Stoke power, which is <strong><em>240K IPsec sessions</em></strong>, this is why I didn&#8217;t want to be concerned with the Radius authentication, and this is why I have this DEFAULT entry in my users file <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </div>
<div>- in the <strong><em>proxy.conf</em><span style="font-weight: normal;"> file I have:</span></strong></div>
<div><strong><span style="font-weight: normal;"></p>
<div>realm NULL {</div>
<div>authhost        = LOCAL</div>
<div>}</div>
<div>*** GIVEN SITUATION:  StokeOS uses the notion of <strong><em>contexts</em><span style="font-weight: normal;"> in order to identify virtual separate router configurations. Basically, this machine has 4 slots, each with 4 ports on. I can define simultaneously a large (I don&#8217;t know _how_ large) number of configurations that reside in parallel on the machine. In order to apply one of them (or more) on the actual physical ports, I assign a port to a specific context (as you can see above in the config). It&#8217;s like&#8230; I have my any number of router configurations running and I apply on the actual ports either one I want, or more routers, on more ports, keeping in mind the rule: </span>one port can only belong to one router<span style="font-weight: normal;"> &#8211; fair enough, I&#8217;d say <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></strong></div>
<div><strong><span style="font-weight: normal;"><br />
</span></strong></div>
<div><strong><span style="font-weight: normal;">*** </span><span style="font-weight: normal;">PROBLEM</span><span style="font-weight: normal;">: In the Remote-Access scenarios, more exactly, at the user authentication on the machine, StokeOS identifies the users by matching them against a given context, so that, </span><span style="font-weight: normal;"><em>even if a user defined on context X arrives on a port belonging to context Y, the authentication fails</em></span><span style="font-weight: normal;">. The problem this thing imposes when doing EAP versus Radius is that the StokeOS strips the context name, so:</span></strong></div>
<div><strong><span style="font-weight: normal;">- I have a user called </span><span style="font-weight: normal;">roadwarrior1<span style="font-weight: normal;"> in context </span>test<span style="font-weight: normal;">. The string this client should send to Stoke is </span><strong>roadwarrior1@test</strong><span style="font-weight: normal;">, otherwise Stoke fails to authenticate it</span></span></strong></div>
<div><strong><span style="font-weight: normal;"><span style="font-weight: normal;">- Once Stoke authenticates the user, it forwards the username (</span><strong>roadwarrior1</strong><span style="font-weight: normal;">), to the Radius server, so that in radius this user arrives with </span><strong>realm NULL</strong></span></strong></div>
<div>- The problem appears when doing the actual radius authentication, because radius gives an error:</div>
<div><strong><em>Identity does not match User-Name, setting from EAP Identity</em></strong></div>
<div>I have looked around the Internet, but found none actual solution to this.</div>
<div>So, I have called a friend again &#8211; a friend of mine, _and_ a friend of C and we hacked into</div>
<div><strong>freeradius-server-2.1.6/src/modules/rlm_eap/eap.c</strong></div>
<div>file replacing:</div>
<div>
<div>vp = pairfind(request-&gt;packet-&gt;vps, PW_USER_NAME);</div>
<div>with:</div>
<div>vp = NULL;</div>
<div>everywhere (2 places) and recompiled the EAP so (thanks, vmp <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</div>
<div>Now everything is fine, I have 240K IPsec roadwarriors happily authenticated via EAP on Stoke&#8217;s SSX-3000.</div>
<div>Me Happy <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div>***CLARIFICATIONS:</div>
<div>As far as I know (and with lots of help from vmp <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), there are 3 documents that &#8220;deal&#8221; with IKEv2-EAP authentication thinggie:</div>
<div>a. <strong><a href="http://www.ietf.org/rfc/rfc4306.txt">RFC 4306</a></strong> - 3.16. Extensible Authentication Protocol (EAP) Payload &#8211; which treats EAP as an IKEv2 extension that appears in the <strong>IKE_AUTH</strong> packets (the first IKE_AUTH packet, coming from the IKEv2 Initiator actually contains no Authentication Payload, then the IKE_AUTH reply from the IKEv2 Responder contains the Responder&#8217;s digital certificate and an EAP-Identity Request method) &#8212;or some varying interpretations..</div>
<div>b. <strong><a href="http://tools.ietf.org/html/draft-eronen-ipsec-ikev2-eap-auth-07">http://tools.ietf.org/html/draft-eronen-ipsec-ikev2-eap-auth-07</a> </strong>- which identifies basically an EAP-IKEv2 method, meaning that IKEv2 is a method of EAP&#8217;s, and, as far as vmp could explain to me the EAP in this case deals with the Authentication and IKEv2 does the negotiation &#8220;inside&#8221; EAP</div>
<div>c. <strong><a href="http://tools.ietf.org/html/rfc4739">RFC 4739</a></strong> - Multiple Authentication Exchanges in the Internet Key Exchange (IKEv2) Protocol &#8211; which should be some twisted multiple authentication, one EAP authentication after another &#8211; vmp stopped explaining at this point and I didn&#8217;t have enough time to dig through that <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
</div>
<p></span></strong></p>
</div>
<p></span></strong></p>
</div>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=RSA+keypair%2C+Radius+and+StokeOS+for+IKEv2-EAP+Authentication+http://xqd7b.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/01/28/rsa-keypair-radius-and-stokeos-for-ikev2-eap-authentication.html&amp;title=RSA+keypair%2C+Radius+and+StokeOS+for+IKEv2-EAP+Authentication" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/01/28/rsa-keypair-radius-and-stokeos-for-ikev2-eap-authentication.html&amp;title=RSA+keypair%2C+Radius+and+StokeOS+for+IKEv2-EAP+Authentication" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/01/28/rsa-keypair-radius-and-stokeos-for-ikev2-eap-authentication.html&amp;t=RSA+keypair%2C+Radius+and+StokeOS+for+IKEv2-EAP+Authentication" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/01/28/rsa-keypair-radius-and-stokeos-for-ikev2-eap-authentication.html&amp;t=RSA+keypair%2C+Radius+and+StokeOS+for+IKEv2-EAP+Authentication&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/01/28/rsa-keypair-radius-and-stokeos-for-ikev2-eap-authentication.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>home therapy</title>
		<link>http://www.imacandi.net/windancer/2010/01/26/home-therapy.html</link>
		<comments>http://www.imacandi.net/windancer/2010/01/26/home-therapy.html#comments</comments>
		<pubDate>Tue, 26 Jan 2010 14:29:45 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[movie]]></category>
		<category><![CDATA[romantic]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1570</guid>
		<description><![CDATA[Because nothing is better than a good relaxing movie when you get home after 10 hours of IPsec and eGTP&#8230;monsieur spoils me everytime.
This time (yesterday) he overcame all my expectations:

http://www.imdb.com/title/tt0281358/
Who said guys are not romantic anymore?  
    ]]></description>
			<content:encoded><![CDATA[<p>Because nothing is better than a good relaxing movie when you get home after 10 hours of IPsec and eGTP&#8230;<a href="http://www.imacandi.net/sin/blog/"><strong>monsieur</strong></a><strong> </strong>spoils me everytime.</p>
<p>This time (yesterday) he overcame all my expectations:</p>
<p><a href="http://www.imacandi.net/windancer/wp-content/uploads/2010/01/walk-to-remember.jpg" class="lightview" rel="gallery[1570]" title="walk-to-remember"><img class="alignright size-full wp-image-1571" title="walk-to-remember" src="http://www.imacandi.net/windancer/wp-content/uploads/2010/01/walk-to-remember.jpg" alt="" width="500" height="363" /></a></p>
<p><a href="http://www.imdb.com/title/tt0281358/">http://www.imdb.com/title/tt0281358/</a></p>
<p>Who said guys are not romantic anymore? <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_confused.gif' alt=':-?' class='wp-smiley' /> </p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=home+therapy+http://qqgpi.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/01/26/home-therapy.html&amp;title=home+therapy" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/01/26/home-therapy.html&amp;title=home+therapy" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/01/26/home-therapy.html&amp;t=home+therapy" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/01/26/home-therapy.html&amp;t=home+therapy&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/01/26/home-therapy.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IPsec and ALMOST CheckPoint</title>
		<link>http://www.imacandi.net/windancer/2010/01/26/ipsec-and-almost-checkpoint.html</link>
		<comments>http://www.imacandi.net/windancer/2010/01/26/ipsec-and-almost-checkpoint.html#comments</comments>
		<pubDate>Tue, 26 Jan 2010 10:18:24 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[checkpoint]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[clavister]]></category>
		<category><![CDATA[DPD]]></category>
		<category><![CDATA[HybridInitRSA]]></category>
		<category><![CDATA[IETF draft]]></category>
		<category><![CDATA[IKEv1]]></category>
		<category><![CDATA[ipsec]]></category>
		<category><![CDATA[mode-config]]></category>
		<category><![CDATA[NAT-T]]></category>
		<category><![CDATA[netscreen]]></category>
		<category><![CDATA[NGX R65]]></category>
		<category><![CDATA[office mode]]></category>
		<category><![CDATA[PKI]]></category>
		<category><![CDATA[Remote-Access]]></category>
		<category><![CDATA[sonicwall]]></category>
		<category><![CDATA[stoke]]></category>
		<category><![CDATA[techie]]></category>
		<category><![CDATA[X.509]]></category>
		<category><![CDATA[xauth]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1557</guid>
		<description><![CDATA[Recently I&#8217;ve had the opportunity of playing a bit with a CheckPoint UTM NGX R65 &#8211; ze mighty solution from the CheckPoint guys. Ignoring the obvious impediments (Romanian posts) I had when configuring the device from GUI, it left me a nice impression.
These guys are not quite the interop gurus ever, but they&#8217;ve strived to implement the [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve had the opportunity of playing a bit with a <strong><a href="http://www.checkpoint.com/products/endpoint_security/index.html#5">CheckPoint UTM NGX R65</a></strong> &#8211; ze mighty solution from the <a href="http://www.checkpoint.com/"><strong>CheckPoint</strong></a><strong> </strong>guys. Ignoring the obvious <a href="http://www.imacandi.net/windancer/?s=checkpoint">impediments</a> (Romanian posts) I had when configuring the device from GUI, it left me a nice impression.</p>
<p>These guys are not quite the interop gurus ever, but they&#8217;ve strived to implement the crankiest drafts that ever appeared from IETF. Running this on the company I work for, interop even with this device worked well (so buy Ixia products if  you want IPsec testing <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ), but trying to make it work with <strong><a href="http://www.strongswan.org/">Strongswan</a></strong><a href="http://www.strongswan.org/"> </a>I&#8217;ve got into big trouble.</p>
<p>Why? Well, let&#8217;s take a look at the most common IPsec &#8211; IKEv1 implementations. They usually pick one/more of the following standards:</p>
<p><strong>- RFC 2407</strong></p>
<p><strong>- RFC 2408</strong></p>
<p><strong>- RFC 2409</strong></p>
<p><strong>- RFC 3706 &#8211; should you like DPD &#8211; Dead Peer Detection</strong></p>
<p><strong>- RFC 3947 and RFC 3948 for NAT-T</strong></p>
<p>- <a href="http://tools.ietf.org/html/draft-dukes-ike-mode-cfg-02"><strong>mode-cfg-02 draft</strong></a> &#8211; for the most common Mode-Configuration operations (perfectly inter-operable by Cisco, Juniper&#8217;s ScreenOS, Strongswan, Sonicwall, Stoke and Clavister) &#8211; as you may have guessed, NO, NOT with CheckPoint</p>
<p>- <a title="http://www.drizzle.com/~aboba/IEEE/draft-beaulieu-ike-xauth-02.txt" rel="nofollow" href="http://www.drizzle.com/~aboba/IEEE/draft-beaulieu-ike-xauth-02.txt"><strong>draft-beaulieu-ike-xauth-02</strong></a> &#8211; for xAuth authentication of clients &#8211; inter-operable on Cisco, NetScreen, Stoke and Sonicwall (not sure about Clavister &#8211; haven&#8217;t tried it yet) &#8211; and, yes, not on CheckPoint</p>
<p>As a nice old guy would say: <strong><em>&#8220;Security through obscurity&#8221; </em><span style="font-weight: normal;">, not quite my favorite idea of _security_. Still, a good to follow idea for CheckPoint. Why? Because, even though they implement the RFC 2407, 2408 and 2409, they have decided not to implement the most common xAuth draft (presented above), feeling that symmetrical authentication is just too lame, so they have implemented <strong><a href="http://tools.ietf.org/html/draft-zegman-ike-hybrid-auth-01">draft-zegman-ike-hybrid-auth-01</a><span style="font-weight: normal;">, which defines how to do uni-directional independent authentication on the remote-access scenarios &#8211; procedure enforced by the CheckPoint VPN Client (only, if you ask me, though I haven&#8217;t tried too many others). </span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">Once you bypass this authentication procedure, configuring the UTM to authenticate the clients using X.509 certificates, you end up in yet another dead-end: the so-called </span>Office-Mode<span style="font-weight: normal;">, which is the CheckPoint way of saying &#8220;Mode-Configuration&#8221;, with a significant difference: the actual packet exchange is not standard. We have tried, me and my programmer fellows (by the way: thanks for enduring this by my side), to &#8220;reverse-engineer&#8221; this mighty exchange, but even with the CheckPoint debug and hacking into our friend </span><em>pluto</em><span style="font-weight: normal;">, we didn&#8217;t manage to get it right.</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">I have talked to a tech-support guy from CKP, a very nice person, still incapable of saying anything about their solution without first asking for permission from his PM/Management/whatever. So, up until today, I haven&#8217;t been able to pull this through. This is why the things I&#8217;m going to describe below are only ALMOST CheckPoint IPsec&#8230;</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"><span id="more-1557"></span></span></strong></span></strong></p>
<p>So, once you have installed NGX R65 (of course, I only  had a trial version), define a main interface, generate a self-signed certificate for the UTM, and allow GUI clients to administer the device via SmartDashboard:</p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">1. Open SmartDashboard &gt; Network Objects &gt; CheckPoint &gt; double-click the name you gave to the current UTM (mine is CKP-R65) &gt; General Properties &gt; check the VPN box under &#8220;Check Point Products&#8221;</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">still on CKP-R65- &gt; under Topology tab, Edit the networks there as to identify as &#8220;This network&#8221; the main IP address, the one you bound to the RSA, and put the secondary one (of course, you&#8217;ve defined a secondary one) as &#8220;External&#8221;</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">still on CKP-R65- &gt; under VPN tab, Add &#8220;Remote Access&#8221; to the upper Area, stating that &#8220;This module participates in the following VPN Communities&#8221;</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">still on CKP-R65- &gt; under Remote Access &gt; under Office Mode I have checked the &#8220;Do not offer Office Mode&#8221; option</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">Hit OK, then go to Menu &gt; Policy &gt; Install Database&#8230; and install it on the UTM.</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">2. In the main Dashboard window &gt; Network Objects &gt; right-click on Networks &gt; Create new network, give it a name and then configure it. This shall be the Remote-Access pool for Office Mode (which we won&#8217;t do, cuz we don&#8217;t get till there with pluto)</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">3. In the main Dashboard window &gt; (fifth tab) Users &gt; right-click Users Group, create a new group, then right-click on Users and create a new user, assigning it to the previously created Remote-Access group</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">4. Now would be a good moment to save everything on the UTM &gt; Install Policies.</span></strong></span></strong></p>
<p><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;">5 &#8211; version 1. What I&#8217;ve done next is to create a new (external) CA (which is a 2003 Server CA I had at hand), enroll the CheckPoint to this CA and try to create a user certificate for my CheckPoint user. I thought of exporting this user certificate on my Strongswan and authenticate it to the gateway. Unfortunately, I&#8217;ve seen no way of indicating to which CA the user certificate gets enrolled &#8211; the user certificate I have created from the user page always got enrolled to the CheckPoint&#8217;s self-signed CA &#8211; not exactly what I had in mind</span></strong></span></strong></p>
<p>5 &#8211; version 2. I have done some more reading on the <a href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;solutionid=sk30423">Internet</a>, and found a procedure of actually exporting the CheckPoint&#8217;s self-signed cert from the UTM, to a p12 file. God-like! I have exported the CKP-R65&#8217;s certificate, then put it under the &#8230;/ipsec.d/cacerts directory on debian. This way, it seems that strongswan passes the authentication stage &#8211; still not hybrid, but still authentication <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><span style="font-family: 'Lucida Grande', Verdana, Arial, 'Bitstream Vera Sans', sans-serif; line-height: 12px; font-size: 12px; color: #333333;">
<div class="ngg-galleryoverview" id="ngg-gallery-25-1557">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.imacandi.net/windancer/2010/01/26/ipsec-and-almost-checkpoint.html?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-417" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/1.jpg" title=" " class="thickbox" rel="set_25" >
								<img title="1" alt="1" src="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/thumbs/thumbs_1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-418" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/2.jpg" title=" " class="thickbox" rel="set_25" >
								<img title="2" alt="2" src="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/thumbs/thumbs_2.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-419" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/3.jpg" title=" " class="thickbox" rel="set_25" >
								<img title="3" alt="3" src="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/thumbs/thumbs_3.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-420" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/4.jpg" title=" " class="thickbox" rel="set_25" >
								<img title="4" alt="4" src="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/thumbs/thumbs_4.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-421" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/5.jpg" title=" " class="thickbox" rel="set_25" >
								<img title="5" alt="5" src="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/thumbs/thumbs_5.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-422" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/6.jpg" title=" " class="thickbox" rel="set_25" >
								<img title="6" alt="6" src="http://www.imacandi.net/windancer/wp-content/gallery/ckp-r65/thumbs/thumbs_6.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</span></p>
<p>My Strongswan machine has an IP address (20.0.0.2) and tries to do Remote-Access to the CheckPoint. The Strongswan config looks like this:</p>
<div id="_mcePaste"><em>conn %default</em></div>
<div id="_mcePaste"><em>keyingtries=1</em></div>
<div id="_mcePaste"><em>keyexchange=ikev1</em></div>
<div id="_mcePaste"><em>mobike=no</em></div>
<div id="_mcePaste"><em>pfs=no</em></div>
<div id="_mcePaste"><em>type=tunnel</em></div>
<div id="_mcePaste"><em>auto=add</em></div>
<div id="_mcePaste"><em>ike=aes256-sha1-modp1024</em></div>
<div id="_mcePaste"><em>esp=aes256-sha1</em></div>
<div id="_mcePaste"><em>leftfirewall=yes</em></div>
<div id="_mcePaste"><em>authby=rsasig</em></div>
<div id="_mcePaste"><em>conn ra1</em></div>
<div id="_mcePaste"><em>left=20.0.0.2</em></div>
<div id="_mcePaste"><em>right=20.0.0.1</em></div>
<div id="_mcePaste"><em>rightsubnet=10.205.17.0/24</em></div>
<div id="_mcePaste"><em>leftcert=user1.pem</em></div>
<div id="_mcePaste"><em>rightcert=CKP-R65.pem</em></div>
<div id="_mcePaste"><em>leftrsasigkey=user1_key.pem</em></div>
<div id="_mcePaste"><em>leftid=user1</em></div>
<div id="_mcePaste"><em>rightid=10.205.17.251</em></div>
<p>having ipsec.secrets:</p>
<p><em>: RSA /usr/local/etc/ipsec.d/private/user1_key.pem &#8220;password&#8221;</em></p>
<div>And when I do</div>
<div><em>ipsec up ra1</em></div>
<div>I get this:</div>
<div>
<div><em>/usr/local/etc# ipsec up ra1</em></div>
<div><em>002 &#8220;ra1&#8243; #1: initiating Main Mode</em></div>
<div><em>104 &#8220;ra1&#8243; #1: STATE_MAIN_I1: initiate</em></div>
<div><em>106 &#8220;ra1&#8243; #1: STATE_MAIN_I2: sent MI2, expecting MR2</em></div>
<div><em>002 &#8220;ra1&#8243; #1: we have a cert and are sending it upon request</em></div>
<div><em>108 &#8220;ra1&#8243; #1: STATE_MAIN_I3: sent MI3, expecting MR3</em></div>
<div><em>002 &#8220;ra1&#8243; #1: Peer ID is ID_IPV4_ADDR: &#8216;10.205.17.251&#8242;</em></div>
<div><em>002 &#8220;ra1&#8243; #1: crl not found</em></div>
<div><em>002 &#8220;ra1&#8243; #1: certificate status unknown</em></div>
<div><em>003 &#8220;ra1&#8243; #1: no public key known for &#8216;10.205.17.251&#8242;</em></div>
<div><em>217 &#8220;ra1&#8243; #1: STATE_MAIN_I3: INVALID_KEY_INFORMATION</em></div>
<div><em>002 &#8220;ra1&#8243; #1: sending encrypted notification INVALID_KEY_INFORMATION to 20.0.0.1:500</em></div>
</div>
<p>Now, the solution may seem simple, BUUUT:</p>
<p>a. CheckPoint does not want to use its DNS name as Identification Payload for IKEv1 for the Remote-Access scenarios</p>
<p>b. Also, the certificate cannot be generated for external networks, so there has to be 10.205.17.251.</p>
<p>c. ALSO, although not recommended for security purposes, even if I configure Strongswan to identify the DUT per its 10.205.17.251 IP address, still I get the INVALID_KEY_INFORMATION error.</p>
<p>*** Now, should any one of you nice readers have solved this scenario and actually get a CheckPoint device to work with another solution (not necessarily open-source), please have mercy on my poor soul and let me know <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=IPsec+and+ALMOST+CheckPoint+http://ciizy.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/01/26/ipsec-and-almost-checkpoint.html&amp;title=IPsec+and+ALMOST+CheckPoint" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/01/26/ipsec-and-almost-checkpoint.html&amp;title=IPsec+and+ALMOST+CheckPoint" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/01/26/ipsec-and-almost-checkpoint.html&amp;t=IPsec+and+ALMOST+CheckPoint" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/01/26/ipsec-and-almost-checkpoint.html&amp;t=IPsec+and+ALMOST+CheckPoint&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/01/26/ipsec-and-almost-checkpoint.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bearers, default Bearers, dedicated Bearers &#8211; naughty Bearers</title>
		<link>http://www.imacandi.net/windancer/2010/01/25/bearers-default-bearers-dedicated-bearers-naughty-bearers.html</link>
		<comments>http://www.imacandi.net/windancer/2010/01/25/bearers-default-bearers-dedicated-bearers-naughty-bearers.html#comments</comments>
		<pubDate>Mon, 25 Jan 2010 19:02:49 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dedicated bearer]]></category>
		<category><![CDATA[default bearer]]></category>
		<category><![CDATA[eNodeB]]></category>
		<category><![CDATA[HSS]]></category>
		<category><![CDATA[LTE]]></category>
		<category><![CDATA[MME]]></category>
		<category><![CDATA[PCRF]]></category>
		<category><![CDATA[PGW]]></category>
		<category><![CDATA[SAE]]></category>
		<category><![CDATA[SGW]]></category>
		<category><![CDATA[techie]]></category>
		<category><![CDATA[TFT]]></category>
		<category><![CDATA[UE]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1549</guid>
		<description><![CDATA[What about those LTE bearers? What exactly is a bearer? 
Well, if we are to believe the 3GPP guys (3GPP TS 23.401 version 8.6.0 Release 8), an EPS bearer is a data structure (that appears on the UE, MME, SGW and PGW), a way of uniquely identifying a traffic flow between the UE and the [...]]]></description>
			<content:encoded><![CDATA[<p><em>What about those LTE bearers? What exactly is a bearer? </em></p>
<p>Well, if we are to believe the 3GPP guys (<strong>3GPP TS 23.401 version 8.6.0 Release 8</strong>), an EPS bearer is a data structure (that appears on the UE, MME, SGW and PGW), a way of uniquely identifying a traffic flow between the UE and the PGW. We need to _uniquely_ identify these flows because of the QoS we want to use for that UE traffic.</p>
<p><em>When are these bearers created?</em></p>
<p>First of all, there are at most <strong>11 bearers</strong> that can be created for a specific UE. <strong>11 bearers TOPS</strong> &#8211; per UE. <em>Why is this so important? </em></p>
<p>Because:</p>
<p>1. the first time an UE connects to an anchor point (PGW) &#8211; procedure called <strong>Initial Attach</strong>, simply by allowing that UE access on the PGW &#8211; a new (default) bearer is created &#8211; and, yes, those 11 bearers tops decrease once this happens!!!</p>
<p>2. an UE can be &#8220;attached&#8221; to more than 1 anchor point (PGW) &#8211; which means, an UE can have more than 1 &#8220;default&#8221;/&#8221;initial&#8221; bearers (of course, created via multiple Initial Attach procedures) &#8211; which means those 11 bearers tops decrease again</p>
<p>Leaving us with the rest of the bearers, those NOT created &#8220;by default&#8221; at the Initial Attach procedure, those which we call <strong>dedicated bearers</strong>.</p>
<p>***Note: there are not necessarily 11 bearers up and running all the time. The &#8220;11&#8243; is just the max number that can be active at a certain moment.</p>
<p><em>How do I use the bearers for QoS?</em></p>
<p>Each bearer, once created, has assigned a certain <strong>TFT set</strong>. &#8220;TFT&#8221; stands for <strong>Traffic Flow </strong><strong>Template</strong>, the set of all packet filters associated with that certain bearer (we&#8217;ll look later on soon at the wireshark capture to see exactly how these &#8220;bearer&#8221; and &#8220;tft&#8221; look like).</p>
<p><em>How do I use the TFT for QoS?</em></p>
<p>TFT, being a set of packet filters, resides as a database tuple in the <strong>PCRF &#8211; Policy Control and charging Rules Function</strong>, a separate cute device that tells the PGW how to route, where to route, and what QoS to use for traffic flowing to and from a certain UE.</p>
<p>! Moment of thinking 1:</p>
<p>HSS &#8211; Home Subscriber Server</p>
<p>PCRF &#8211; Policy Control and charging Rules Function</p>
<p>The HSS is a database that holds only information regarding the default bearer (which basically identifies the UE as belonging to this network), while the PCRF has the role of &#8220;traffic shaping&#8221;.</p>
<p>! Moment of thinking 2:</p>
<p>Although the default bearer is more or less automatically created when the UE attaches to this network, as a network confirmation that this UE belongs to it, the dedicated bearer is NEVER initiated by the MME/UE (even if it is, the PGW will gracefully ignore it <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ) &#8211; the dedicated bearer will ALWAYS be initiated by the PGW, in response to a certain traffic pattern matching a rule in PCRF, though triggering the creation a new and shiny TFT.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Bearers%2C+default+Bearers%2C+dedicated+Bearers+%E2%80%93+naughty+Bearers+http://gx6r9.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/01/25/bearers-default-bearers-dedicated-bearers-naughty-bearers.html&amp;title=Bearers%2C+default+Bearers%2C+dedicated+Bearers+%E2%80%93+naughty+Bearers" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/01/25/bearers-default-bearers-dedicated-bearers-naughty-bearers.html&amp;title=Bearers%2C+default+Bearers%2C+dedicated+Bearers+%E2%80%93+naughty+Bearers" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/01/25/bearers-default-bearers-dedicated-bearers-naughty-bearers.html&amp;t=Bearers%2C+default+Bearers%2C+dedicated+Bearers+%E2%80%93+naughty+Bearers" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/01/25/bearers-default-bearers-dedicated-bearers-naughty-bearers.html&amp;t=Bearers%2C+default+Bearers%2C+dedicated+Bearers+%E2%80%93+naughty+Bearers&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/01/25/bearers-default-bearers-dedicated-bearers-naughty-bearers.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>my first eGTP test &#8211; take 2 &#8211; CreateSessionResponse</title>
		<link>http://www.imacandi.net/windancer/2010/01/25/my-first-egtp-test-take-2-createsessionresponse.html</link>
		<comments>http://www.imacandi.net/windancer/2010/01/25/my-first-egtp-test-take-2-createsessionresponse.html#comments</comments>
		<pubDate>Mon, 25 Jan 2010 16:48:53 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bearer]]></category>
		<category><![CDATA[LTE]]></category>
		<category><![CDATA[MME]]></category>
		<category><![CDATA[PDN]]></category>
		<category><![CDATA[PGW]]></category>
		<category><![CDATA[SAE]]></category>
		<category><![CDATA[SGW]]></category>
		<category><![CDATA[techie]]></category>
		<category><![CDATA[UE]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1537</guid>
		<description><![CDATA[As I was telling you about in a previous post &#8211; my first eGTP test, the reply (first reply) to a CreateSessionRequest message is a CreateSessionResponse message, described below. This message contains:
- GTPversion 2, Message Type information, in this case, this is a Response, the length of the message, the sequence number (1) and the [...]]]></description>
			<content:encoded><![CDATA[<p>As I was telling you about in a previous post &#8211; <a href="http://www.imacandi.net/windancer/2010/01/04/my-first-egtp-test.html">my first eGTP test</a>, the reply (first reply) to a <strong>CreateSessionRequest </strong>message is a <strong>CreateSessionResponse </strong>message, described below. This message contains:</p>

<div class="ngg-galleryoverview" id="ngg-gallery-24-1537">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.imacandi.net/windancer/2010/01/25/my-first-egtp-test-take-2-createsessionresponse.html?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-412" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/1.jpg" title=" " class="thickbox" rel="set_24" >
								<img title="1" alt="1" src="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/thumbs/thumbs_1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-413" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/2.jpg" title=" " class="thickbox" rel="set_24" >
								<img title="2" alt="2" src="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/thumbs/thumbs_2.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-414" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/3.jpg" title=" " class="thickbox" rel="set_24" >
								<img title="3" alt="3" src="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/thumbs/thumbs_3.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-415" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/4.jpg" title=" " class="thickbox" rel="set_24" >
								<img title="4" alt="4" src="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/thumbs/thumbs_4.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-416" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/5.jpg" title=" " class="thickbox" rel="set_24" >
								<img title="5" alt="5" src="http://www.imacandi.net/windancer/wp-content/gallery/lte-2/thumbs/thumbs_5.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p>- GTPversion 2, Message Type information, in this case, this is a Response, the length of the message, the sequence number (1) and the TEID (tunnel Endpoint Identifier) &#8211; which is copied from the CreateSessionRequest message</p>
<p>- the Cause field indicates this is a Response for an Accepted Request &#8211; in case there would be any error, the Cause Source field would indicate the cause of the error</p>
<p>- PDN Address Allocation (PAA) &#8211; field which is completed at this moment  (in the CreateSessionResponse) by the SGW with the IP address of the PDN GW &#8211; should you remember, in the CreateSessionRequest message, this field indicated the type of address (IPv4) and value 0.0.0.0; as per <strong>3GPP TS 29.274</strong> &#8211; this value is a fixed IPv4/IPv6 address as indicated by the HSS registers, or it leaves the value to 0.0.0.0 indicating that the PDN GW address is assigned dynamically</p>
<p>- F-TEID (Fully Qualified Tunnel Endpoint Identifier) &#8211; as mentioned also in the previous post, there are 2 F-TEIDs: one for the S11 interface, and another one for the S5/S8 interface, both <strong>source IP addresses of GTP-C:</strong></p>
<p>&#8212; one for the S11 interface (the one between MME and SGW) &#8211; the SGW end &#8211; the IP of the SGW from the S11 interface</p>
<p>&#8212; one for the S5/S8 interface (the one between SGW and PGW) &#8211; the IP address of the APN server</p>
<p>- APN Restriction header &#8211; as per 3GPP TS 29.274, it &#8220;denotes the restriction on the combination of types of APN for the APN associated with this EPS bearer Context.&#8221; &#8211; haven&#8217;t  used it yet, so I cannot say too much about it</p>
<p>- Bearer Context &#8211; information I have neglected to describe in sufficient detail in the CreateSessionRequest description. Here, in the CreateSessionResponse message, the Bearer Context header has 6 sub-headers:</p>
<p>&#8212; EPS Bearer ID</p>
<p>&#8212; Charging ID</p>
<p>&#8212; F-TEIDs : here both of the identifiers contain the IP address of the SGW&#8217;s S11 interface &#8211; the <strong>source GTP-U interface</strong></p>
<p>&#8212; Cause : here is Request Accepted, no Cause Source</p>
<p>&#8212; Bearer QoS, which contains the QCI label and some other QoS identifiers that shall be described &#8211; hopefully I&#8217;ll be able to see them at work till then</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=my+first+eGTP+test+%E2%80%93+take+2+%E2%80%93+CreateSessionResponse+http://gso8y.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.imacandi.net/windancer/2010/01/25/my-first-egtp-test-take-2-createsessionresponse.html&amp;title=my+first+eGTP+test+%E2%80%93+take+2+%E2%80%93+CreateSessionResponse" title="Post to Delicious"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.imacandi.net/windancer/2010/01/25/my-first-egtp-test-take-2-createsessionresponse.html&amp;title=my+first+eGTP+test+%E2%80%93+take+2+%E2%80%93+CreateSessionResponse" title="Post to Digg"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-digg-micro4.png" alt="Post to Digg" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.imacandi.net/windancer/2010/01/25/my-first-egtp-test-take-2-createsessionresponse.html&amp;t=my+first+eGTP+test+%E2%80%93+take+2+%E2%80%93+CreateSessionResponse" title="Post to Facebook"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-facebook-micro4.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;u=http://www.imacandi.net/windancer/2010/01/25/my-first-egtp-test-take-2-createsessionresponse.html&amp;t=my+first+eGTP+test+%E2%80%93+take+2+%E2%80%93+CreateSessionResponse&amp;c=%3Cp%3EPowered+by+%3Ca+href%3D%22http%3A%2F%2Frichardxthripp.thripp.com%2Ftweet-this%22%3ETweet+This%3C%2Fa%3E%3C%2Fp%3E" title="Post to MySpace"><img class="nothumb" src="http://www.imacandi.net/windancer/wp-content/plugins/tweet-this/icons/tt-myspace-micro4.png" alt="Post to MySpace" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/01/25/my-first-egtp-test-take-2-createsessionresponse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
