<?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? &#187; ipsec</title>
	<atom:link href="http://www.imacandi.net/windancer/tag/ipsec/feed" rel="self" type="application/rss+xml" />
	<link>http://www.imacandi.net/windancer</link>
	<description>&#34;You know my methods, Watson...&#34;</description>
	<lastBuildDate>Sat, 04 Feb 2012 19:15:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>step 1 &#8211; done &#8211; InTech, here I come!</title>
		<link>http://www.imacandi.net/windancer/2011/06/23/step-1-done-intech-here-i-come.html</link>
		<comments>http://www.imacandi.net/windancer/2011/06/23/step-1-done-intech-here-i-come.html#comments</comments>
		<pubDate>Thu, 23 Jun 2011 08:39:04 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[4G]]></category>
		<category><![CDATA[IMS]]></category>
		<category><![CDATA[intech]]></category>
		<category><![CDATA[ipsec]]></category>
		<category><![CDATA[passion]]></category>
		<category><![CDATA[techie]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=3420</guid>
		<description><![CDATA[Dear Ms. &#60;ME is Here&#62;, On behalf of the Editorial Board it is my pleasure to inform you that your chapter has been provisionally accepted for publication in the book under the working title  &#8221;Cryptography / Book 1&#8243;, ISBN 979-953-307-478-7. Your next step is to write the full chapter. After the full chapter review, you [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><em>Dear Ms. &lt;ME is Here&gt;,</em></p>
<p><em>On behalf of the Editorial Board it is my pleasure to inform you that your chapter has been provisionally accepted for publication in the book under the working title  &#8221;Cryptography / Book 1&#8243;, ISBN 979-953-307-478-7.</em></p>
<p><em>Your next step is to write the full chapter. After the full chapter review, you will receive notification regarding the definitive acceptance of your work in the book.</em></p>
<p><em>In the attachment you can find the complete review outcome. From now on, you will be able to see the tentative list of contributing authors and read the accepted chapter proposals.</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2011/06/23/step-1-done-intech-here-i-come.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>published</title>
		<link>http://www.imacandi.net/windancer/2010/07/05/published.html</link>
		<comments>http://www.imacandi.net/windancer/2010/07/05/published.html#comments</comments>
		<pubDate>Mon, 05 Jul 2010 07:27:41 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[gdoi]]></category>
		<category><![CDATA[IMS]]></category>
		<category><![CDATA[ipsec]]></category>
		<category><![CDATA[LTE]]></category>
		<category><![CDATA[SAE]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sip]]></category>
		<category><![CDATA[techie]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=2007</guid>
		<description><![CDATA[WSEAS journals http://www.wseas.us/e-library/transactions/communications/2010/89-825.pdf A Solution for Secure SIP Conferencing over IMS and SAE CRISTINA Bucharest, ROMANIA &#60;email&#62; Abstract: Over the latest few years, most of the major telephony and services providers have got their attention on the LTE/SAE solution, in the attempt of getting the most bandwidth and features at the least implementation and operating [...]]]></description>
			<content:encoded><![CDATA[<p><strong>WSEAS journals</strong></p>
<p><strong><a href="http://www.wseas.us/e-library/transactions/communications/2010/89-825.pdf"> http://www.wseas.us/e-library/transactions/communications/2010/89-825.pdf</a></strong></p>
<p><strong>A Solution for Secure SIP Conferencing over IMS and SAE</strong></p>
<p>CRISTINA Bucharest, ROMANIA &lt;email&gt;</p>
<p><em>Abstract</em>: Over the latest few years, most of the major telephony and services providers have got their attention on the LTE/SAE solution, in the attempt of getting the most bandwidth and features at the least implementation and operating price. One of the major challenges that 3GPP, the creator of LTE/SAE architecture, has faced is the IMS integration with SAE. The latest standard version available at this moment on IMS integration and its security challenges is TS 33.203, which is focused on 3G security aspects. When talking about IMS- SIP security, there are several studies that propose end-to-end security for a SIP conversation over EPS infrastructure.</p>
<p>This paper reviews the security issues that resides in the SAE-IMS interaction and, looking at the specificities of the SIP conferencing, proposes a security model that uses GDOI management to secure the SIP conference data over IMS and SAE. One important aspect of conferencing in the mobile world is to realize the user is never stationary. One chapter of this paper describes the most complicated type of mobility scenario and also introduces the role of the Diameter server into this architecture.</p>
<p><em>Keywords: </em>SAE, LTE, EPS, EPC, IMS, security, SIP, conference, GDOI, GCKS, IPsec, key management</p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/07/05/published.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LAN-to-LAN or Stoke going wild</title>
		<link>http://www.imacandi.net/windancer/2010/02/27/lan-to-lan-or-stoke-going-wild.html</link>
		<comments>http://www.imacandi.net/windancer/2010/02/27/lan-to-lan-or-stoke-going-wild.html#comments</comments>
		<pubDate>Sat, 27 Feb 2010 14:19:21 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[ipsec]]></category>
		<category><![CDATA[lan-to-lan]]></category>
		<category><![CDATA[passion]]></category>
		<category><![CDATA[site-to-site]]></category>
		<category><![CDATA[SSX-3000]]></category>
		<category><![CDATA[stoke]]></category>
		<category><![CDATA[techie]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1676</guid>
		<description><![CDATA[One of the best IPsec devices I have worked with so far is Stoke. And when I am saying best I mean it in a sense of compliance, flexibility, stability and performance. Although it has its minuses, like any device on earth, the pretty SSX-3000 solution I&#8217;ve got my hands on knew most of the [...]]]></description>
			<content:encoded><![CDATA[<p>One of the best IPsec devices I have worked with so far is <strong><a href="http://www.stoke.com/">Stoke</a></strong>. And when I am saying best I mean it in a sense of compliance, flexibility, stability and performance.</p>
<p>Although it has its minuses, like any device on earth, the pretty <strong>SSX-3000</strong> solution I&#8217;ve got my hands on knew most of the Remote-Access scenarios I could think of and EAP authentication on top. Besides that, I could do my work undisturbed, while my colleagues were experimenting on their own. Why? Because of the <em>context</em>s<em>: </em>each one of these &#8220;virtual&#8221; routers minds its own business, permitting me to play around with my stuff, while the others could work very well, without having to worry about Cristina&#8217;s ideas. Now, 240k IPsec tunnels in remote-access with EAP authentication versus Radius and support for digital certificates sounds pretty good if you were to ask me. Mwell&#8230;not good enough for the Stoke guys&#8230;it seems. So they came up with an even more interesting idea: LAN-to-LAN. Now..hmm..this powerful machine, able of doing so much on RA&#8230;could it also be doing site-to-site? So, I&#8217;ve contacted my favorite Japanese techie and asked for instructions.</p>
<p>This is the way it works:</p>
<p>Let&#8217;s assume there are 2 security gateways, Tokyo (10.1.1.2) and Bucharest (10.1.1.1). Tokyo gateway protects a network (5.1.1.0/24), while in Bucharest we have another network (6.1.1.0/24). Stoke has the concept of &#8220;tunnel-enabled interface&#8221;, which is a only /32 IP address of an interface type &#8220;tunnel&#8221;. The following services are not allowed on a tunnel-enabled interface: static IP hosts, ARP, and routing protocols.</p>
<p>So, in our case, let&#8217;s assume the tunnel interface for Tokyo is 9.9.9.1/32 and for Bucharest it is 9.9.9.2/32.</p>
<p>As everything on an SSX is done via a context, let&#8217;s assume that Tokyo has a context called TB1 and Bucharest has a context called BT1, on which they have this LAN-to-LAN configuration. The configuration on <strong>Tokyo </strong>would look something like this:<br />
<strong><br />
context TB1 </strong></p>
<p><strong><span style="white-space: pre;"> </span>interface Tokyo-LAN</strong></p>
<p><strong><span style="white-space: pre;"> </span>arp arpa</strong></p>
<p><strong><span style="white-space: pre;"> </span>ip address 5.1.1.0/24</strong></p>
<p><strong> </strong></p>
<p><span style="white-space: pre;"> </span><strong>exit</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>interface Tokyo-Bucharest</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>arp arpa</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>ip address 10.1.1.2/24</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>exit</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>interface Tokyo-Tunnel tunnel</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>ip address 9.9.9.1/32</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>exit</strong></p>
<p><strong>ipsec policy ikev2 phase1 name si_p1</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>suite3</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>gw-authentication psk open_sesame</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>peer-authentication psk</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>exit</strong></p>
<p><strong>exit</strong></p>
<p><strong>ipsec policy ikev2 phase2 name si_p2</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>suite4</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>exit</strong></p>
<p><strong>exit</strong></p>
<p><strong>exit</strong></p>
<p><strong>tunnel Tokyo-Bucharest-TUN type ipsec protcol ip44 context TB1</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>enable</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>ip local 10.1.1.2 remote 10.1.1.1</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>bind interface Tokyo-Tunnel TB1</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>ip route 6.1.1.0/24</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>ip route 9.9.9.2/32</strong></p>
<p><span style="white-space: pre;"><strong> </strong></span><strong>exit</strong></p>
<p><strong>ipsec policy ikev2 phase1 name si_p1</strong></p>
<p><strong>exit</strong></p>
<p><strong>ipsec policy ikev2 phase2 name si_p2</strong></p>
<p><strong>exit</strong></p>
<p><strong>port ethernet 1/1</strong></p>
<p><strong>bind interface Tokyo-LAN TB1</strong></p>
<p><strong>exit</strong></p>
<p><strong>enable</strong></p>
<p><strong>exit</strong></p>
<p><strong>port ethernet 1/0</strong></p>
<p><strong>bind interface Tokyo-Bucharest TB1</strong></p>
<p><strong>exit</strong></p>
<p><strong>service ipsec</strong></p>
<p><strong>enable</strong></p>
<p><strong>exit</strong></p>
<p>While the <strong>Bucharest </strong>config should be like this:</p>
<p><strong>context BT1 </strong></p>
<p><strong><span style="white-space: pre;"> </span><strong>interface Bucharest-LAN </strong></strong></p>
<p><strong> </strong></p>
<p><strong><span style="white-space: pre;"> </span><strong>arp arpa </strong></strong></p>
<p><strong> </strong></p>
<p><strong><strong>ip address 6.1.1.0/24 </strong></strong></p>
<p><strong><strong><strong>exit </strong></strong></strong></p>
<p><strong><strong><strong><strong>interface Bucharest-Tokyo </strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong>arp arpa </strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong>ip address 10.1.1.1/24 </strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong>interface Bucharest-Tunnel tunnel </strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong>ip address 9.9.9.2/32 </strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>ipsec policy ikev2 phase1 name si_p1 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>suite3 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>gw-authentication psk open_sesame </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>peer-authentication psk </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>ipsec policy ikev2 phase2 name si_p2 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>suite4 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong> </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>tunnel Bucharest-Tokyo-TUN type ipsec protcol ip44 context BT1 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>enable </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>ip local 10.1.1.1 remote 10.1.1.2 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>bind interface Tokyo-Tunnel TB1 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>ip route 5.1.1.0/24 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>ip route 9.9.9.1/32 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>ipsec policy ikev2 phase1 name si_p1 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>ipsec policy ikev2 phase2 name si_p2 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>port ethernet 2/1 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>bind interface Bucharest-LAN BT1 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>enable </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>port ethernet 2/0 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>bind interface Bucharest-Tokyo BT1 </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>service ipsec </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>enable </strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>exit</strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><strong><span style="font-weight: normal;">To verify the config, run:</span></strong></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><strong><em>Stoke [TB1]# sh ike-session list</em></strong></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><strong><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</em></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><em> </em></strong></strong></strong></strong></strong></strong></p>
<p><strong><strong><strong><strong><strong><strong><em></p>
<div id="_mcePaste">SLOT : 1</div>
<div id="_mcePaste">Session Handle : f4100214</div>
<div id="_mcePaste">IKE Version : 2 &lt;LAN&lt;-&gt;LAN&gt;</div>
<div id="_mcePaste">Remote IP : 10.1.1.1</div>
<div id="_mcePaste">IKE-SA ID : 10.1.1.1</div>
<div id="_mcePaste">Session State : IPSEC-ESTABLISHED, IKE-SA DONE, CHILD-SA MATURE</div>
<div id="_mcePaste">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</div>
<div><span style="font-style: normal;"><span style="font-weight: normal;">While</span></span></div>
<div>Stoke[TB1]#sh ike-session detail handle f4100214</div>
<div><span style="font-weight: normal; font-style: normal;">displays a lot of details about this session, like ports, type of authentication, lifetime values and algorithms.</span></div>
<div><span style="font-weight: normal; font-style: normal;"></p>
<div><strong><em>Stoke[local]#sh tun</em></strong></div>
<div><strong><em>Name CctHdl Type Admin State</em></strong></div>
<div><strong><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;- &#8212;&#8212;&#8212;&#8211;</em></strong></div>
<div><strong><em>Tokyo-Bucharest-TUN ce000013 ipsec:ip44 enable up</em></strong></div>
<div><strong><em>Bucharest-Tokyo-TUN ce000014 ipsec:ip44 enable up</em></strong></div>
<div><strong><em>2 objects displayed.</em></strong></div>
<div><strong><em>Stoke[local]#sh tun name Tokyo-Bucharest-TUN</em></strong></div>
<div>will display the details of this particular tunnel.</div>
<div>For the moment, afaik, this is only IPv4-over-IPv4, but I can&#8217;t hardly wait to have another e-mail from these guys saying that I can also play with mixed transport on one of their new StokeOSes. <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </div>
<p></span></div>
<p></em></p>
<p></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/02/27/lan-to-lan-or-stoke-going-wild.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Invite to Technical…stuff</title>
		<link>http://www.imacandi.net/windancer/2010/02/22/invite-to-technical-stuff.html</link>
		<comments>http://www.imacandi.net/windancer/2010/02/22/invite-to-technical-stuff.html#comments</comments>
		<pubDate>Mon, 22 Feb 2010 20:57:55 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[IMS]]></category>
		<category><![CDATA[ipsec]]></category>
		<category><![CDATA[passion]]></category>
		<category><![CDATA[sip]]></category>
		<category><![CDATA[tech-invite]]></category>
		<category><![CDATA[techie]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1665</guid>
		<description><![CDATA[I am inviting you to visit one of my favorite sites: http://tech-invite.com/ The reason this is one of my favorite sites is that it is, firstly, VERY TECHNICAL of course. There are several sections where the articles are placed: Organizations, Standardization work, IETF topics, 3GPP topics, ETSI topics and&#8230;Other topics. I have to thank my [...]]]></description>
			<content:encoded><![CDATA[<p>I am inviting you to visit one of my favorite sites:</p>
<p><strong><a href="http://tech-invite.com/">http://tech-invite.com/</a></strong></p>
<p>The reason this is one of my favorite sites is that it is, firstly, VERY TECHNICAL <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  of course. There are several sections where the articles are placed: <strong>Organizations, Standardization work, IETF topics, 3GPP topics, ETSI topics </strong>and&#8230;<strong>Other topics.</strong> I have to thank my VoIP guru colleague Alin for telling me about this site.</p>
<p>To be honest, I&#8217;ve never used any other categories, other than 3GPP and IETF topics. But these ones I have used extensively. Ranging from packet by packet IPsec negotiation, to SIP headers description, example, and a lot of scenarios, database infrastructure to UMTS and SAE architecture and scenarios, with a very welcome RFC and TS classification, I believe this site is one of the best locations where one could go to clarify technical things, to view scenarios and to take a look at packets and headers along with their analysis.</p>
<p>The latest link I&#8217;ve used is a secure SIP basic call from roaming, using the IMS architecture over UMTS. There are diagrams with each step of the flow, the packet dump and explanations for each packet. Gold, I say <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So take a look.</p>
<p><a href="http://www.imacandi.net/windancer/wp-content/uploads/2010/02/Screen-shot-2010-02-22-at-10.56.00-PM1.png" class="lightview" data-lightview-group="group-1665" data-lightview-options="background: { color: '#ffffff', opacity: 1.00 }, skin: 'mac', border: { color: '#ffffff', opacity: 1.00, size: 8 }, controls: 'relative', overlay: { background: '#000000', opacity: 0.70, close: true }, radius: { size: 8, position: 'border' }, shadow: false" data-lightview-title="Screen shot 2010-02-22 at 10.56.00 PM"><img class="alignright size-full wp-image-1667" title="Screen shot 2010-02-22 at 10.56.00 PM" src="http://www.imacandi.net/windancer/wp-content/uploads/2010/02/Screen-shot-2010-02-22-at-10.56.00-PM1.png" alt="" width="1062" height="597" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/02/22/invite-to-technical-stuff.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>to IPComp or not to IPComp and…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[technical]]></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, [...]]]></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 (0x6c)</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" data-lightview-group="group-1603" data-lightview-options="background: { color: '#ffffff', opacity: 1.00 }, skin: 'mac', border: { color: '#ffffff', opacity: 1.00, size: 8 }, controls: 'relative', overlay: { background: '#000000', opacity: 0.70, close: true }, radius: { size: 8, position: 'border' }, shadow: false" data-lightview-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>
]]></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>10</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[technical]]></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 strive to [...]]]></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 strive to implement the crankiest drafts that ever appeared from IETF. Running this on my own, the interop even with this device worked well, but trying to make it work with <strong><a href="http://www.strongswan.org/">Strongswan</a></strong>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" href="http://www.drizzle.com/~aboba/IEEE/draft-beaulieu-ike-xauth-02.txt" rel="nofollow"><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&#8242;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: &#8217;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 &#8217;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>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/01/26/ipsec-and-almost-checkpoint.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>manual …keying</title>
		<link>http://www.imacandi.net/windancer/2010/01/06/manual-keying.html</link>
		<comments>http://www.imacandi.net/windancer/2010/01/06/manual-keying.html#comments</comments>
		<pubDate>Wed, 06 Jan 2010 11:53:14 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[ipsec]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[manual key]]></category>
		<category><![CDATA[netscreen]]></category>
		<category><![CDATA[sad]]></category>
		<category><![CDATA[spd]]></category>
		<category><![CDATA[techie]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1492</guid>
		<description><![CDATA[Everybody loves IPsec. It does a lot of cool stuff protecting our traffic from one side to another, it is fairly easy to understand the general concept, but quite difficult to actually implement in real-life, mostly because a lot of vendors have their own idea of usability and each one has its own idea of [...]]]></description>
			<content:encoded><![CDATA[<p>Everybody loves IPsec. It does a lot of cool stuff protecting our traffic from one side to another, it is fairly easy to understand the general concept, but quite difficult to actually implement in real-life, mostly because a lot of vendors have their own idea of usability and each one has its own idea of actually implementing those numerous standards. Some of them decide to implement drafts (see Cisco, see CheckPoint) and some of them implement their own &#8220;drafts&#8221; &#8211; which makes things even more interesting.</p>
<p>Some other vendors decide to overcome the entire negotiation fuss and use predefined keys for the IPsec traffic, bypassing all the IKE negotiation and using manual keying. Here we have Cisco, Juniper, Sonicwall or our lovely Linux solutions.</p>
<p>In order to manually configure IPsec, the admin alters the <strong>SAD </strong>(Security Association Database)<strong> </strong>and <strong>SPD</strong>(Security Policy Database)<strong> </strong>databases of the device/kernel. The SAD contains specific traffic transformations, like the encryption/authentication algorithms, while the SPD indicates the traffic selectors/proxy-ids for the traffic that is to be transformed by the stuff described in SAD and indexed by an <strong>SPI</strong>.</p>
<p>An SAD entry would include:</p>
<ul>
<li>Dest IP address</li>
<li>Ipsec proto (SA or ESP)</li>
<li>SPI (cookie)</li>
<li>Sequnce counter</li>
<li>Seq O/F flag</li>
<li>anti-replay window info</li>
<li>AH type and info</li>
<li>ESP type and info</li>
<li>Lifetime info</li>
<li>tunnel/transport mode flags</li>
<li>PATH MTU info</li>
</ul>
<p>An SPD entry would contain:</p>
<ul>
<li>pointer to active SAs</li>
<li>Selector fields</li>
</ul>
<p>***Let&#8217;s take a simple site-to-site tunnel mode case, where the security gateways are 2001::1 (local gateway) and 2001::2 (remote gateway) and the subnet behind the local gateway is 2002::/112 and the one behind the remote gateway is 2003::/112. As you can imagine, I want to encrypt traffic between 2002::/112 and 2003::/112 with aes-cbc, let&#8217;s say and authenticate it with hmac-md5.</p>
<p>In order to configure manual keying on linux, we need to have:</p>
<p>- xfrm modules in ze kernel:</p>
<p><strong>xfrm4_mode_transport     1792  0</strong></p>
<div id="_mcePaste"><strong>xfrm6_mode_transport     1792  0</strong></div>
<div id="_mcePaste"><strong>xfrm6_mode_tunnel       2208  0</strong></div>
<div id="_mcePaste"><strong>xfrm4_mode_tunnel       2304  0</strong></div>
<div id="_mcePaste"><strong>xfrm_user              17856  0</strong></div>
<div id="_mcePaste"><strong>xfrm4_tunnel            2304  0</strong></div>
<div id="_mcePaste"><strong>tunnel4                 3016  1 xfrm4_tunnel</strong></div>
<div id="_mcePaste"><strong>ipv6                  235396  33 ah6,esp6,xfrm6_mode_tunnel</strong></div>
<p>- and a small script that instructs the kernel on how to populate those two databases:</p>
<p><strong>ip xfrm state add src 2001:0::2 dst 2001:0::1 proto esp spi 0&#215;1000 enc &#8220;cbc(aes)&#8221;  0x12345678abcdef12f4f71dbccd2c1b07bce4e63b4c315414  auth &#8220;hmac(md5)&#8221; 0x012345abd9abcdeff1e0d3c2b5a4909a</strong></p>
<p><strong>ip xfrm state add src 2001:0::1 dst 2001:0::2 proto esp spi 0&#215;2000 enc &#8220;cbc(aes)&#8221; 0xf4f71123452c1b07bce4e63b4c31541d12345678abcdef12  auth &#8220;hmac(md5)&#8221; 0x912345abd9abcdeff1e0d3c2b5a49080</strong></p>
<p><strong>ip xfrm policy add dir in src 2003::/112 dst 2002::/112 tmpl src 2001:0::2 dst 2001:0::1 proto esp mode tunnel</strong></p>
<p><strong>ip xfrm policy add dir out src 2002::/112 dst 2003::/112 tmpl src 2001:0::1 dst 2001:0::2 proto esp mode tunnel</strong></p>
<p><strong>ip xfrm policy add dir fwd src 2003::/112 dst 2002::/112 tmpl src 2001:0::2 dst 2001:0::1 proto esp mode tunnel</strong></p>
<div>&#8212;&#8211; Now we should be able to see that:</div>
<div>
<div><strong># ip xfrm state</strong></div>
<div><strong>src 2001::2 dst 2001::1</strong></div>
<div><strong>proto esp spi 0&#215;00001000 reqid 0 mode transport</strong></div>
<div><strong>replay-window 0</strong></div>
<div><strong>auth hmac(md5) 0x012345abd9abcdeff1e0d3c2b5a4909a</strong></div>
<div><strong>enc cbc(aes) 0x12345678abcdef12f4f71dbccd2c1b07bce4e63b4c315414</strong></div>
<div><strong>sel src ::/0 dst ::/0</strong></div>
<div><strong>src 2001::1 dst 2001::2</strong></div>
<div><strong>proto esp spi 0&#215;00002000 reqid 0 mode transport</strong></div>
<div><strong>replay-window 0</strong></div>
<div><strong>auth hmac(md5) 0x912345abd9abcdeff1e0d3c2b5a49080</strong></div>
<div><strong>enc cbc(aes) 0xf4f71123452c1b07bce4e63b4c31541d12345678abcdef12</strong></div>
<div><strong>sel src ::/0 dst ::/0</strong></div>
<div>&#8212;&#8211;and</div>
<div>
<div><strong># ip xfrm policy</strong></div>
<div><strong>src 2003::/112 dst 2002::/112</strong></div>
<div><strong>dir in priority 0</strong></div>
<div><strong>tmpl src 2001::2 dst 2001::1</strong></div>
<div><strong>proto esp reqid 0 mode tunnel</strong></div>
<div><strong>src 2002::/112 dst 2003::/112</strong></div>
<div><strong>dir out priority 0</strong></div>
<div><strong>tmpl src 2001::1 dst 2001::2</strong></div>
<div><strong>proto esp reqid 0 mode tunnel</strong></div>
<div><strong>src 2003::/112 dst 2002::/112</strong></div>
<div><strong>dir fwd priority 0</strong></div>
<div><strong>tmpl src 2001::2 dst 2001::1</strong></div>
<div><strong>proto esp reqid 0 mode tunnel</strong></div>
<div><strong>&#8212;&#8211;to delete the rules simply run:</strong></div>
<div>
<div><strong>ip xfrm state flush</strong></div>
<div>
<div><strong>ip xfrm policy flush</strong></div>
<div><strong><br />
</strong></div>
<div>When trying to do interop with&#8230;NetScreen, let&#8217;s say, bare in mind that this device only permits one key per connection, not as linux xfrm, which lets you select a key per direction. A NetScreen config would look something like this&#8230;</div>
<div>I have defined a tunnel.1 interface in the Untrust zone of the device and configured the &#8216;vpn&#8217; objects like it follows (as you can see, no need for any &#8216;ike&#8217; objects, as there is no IKE going on in there):</div>
<div>
<div><strong>set vpn &#8220;IPv6_manual&#8221; id 0x1c1e manual 2000 2000 gateway 2001::10 outgoing-interface &#8220;ethernet2/2&#8243;  local-address &#8220;2001::1&#8243;  ah md5 key 0101010101010101,0101010101010101</strong></div>
<div>&#8212;this populates the SAD of the NetScreen device, while this:</div>
<div><strong><br />
</strong></div>
<div>
<div><strong>set policy id 7155 name &#8220;IPv6_TU_man&#8221; from &#8220;Trust&#8221; to &#8220;Untrust&#8221;  &#8221;IPv6_Man2&#8243; &#8220;IPv6_Man1&#8243; &#8220;ANY&#8221; tunnel vpn &#8220;IPv6_manual&#8221;</strong></div>
<div><strong>set policy id 7155</strong></div>
<div><strong>exit</strong></div>
<div><strong>set policy id 15155 name &#8220;IPv6_UT_man&#8221; from &#8220;Untrust&#8221; to &#8220;Trust&#8221;  &#8221;IPv6_Man1&#8243; &#8220;IPv6_Man2&#8243; &#8220;ANY&#8221; tunnel vpn &#8220;IPv6_manual&#8221;</strong></div>
<div><strong>set policy id 15155</strong></div>
<div><strong>exit</strong></div>
<div>&#8212;populates the SPD of the device; of course, the IPv6_Man1 and IPv6_Man2 are names of the IPv6 interfaces (public and private, respectively)</div>
</div>
<div>And, as the keys are already into the device&#8217;s kernel, I can simply list them with a fairly nice command:</div>
<div><strong>-&gt; get sa active</strong></div>
<div>
<div><strong>00001c1e&lt;        2001::10  500  ah:null/md5  00002000   n/a   n/a M/- 15155 0</strong></div>
<div><strong>00001c1e&gt;        2001::10  500  ah:null/md5  00002000   n/a   n/a M/-  7155 0</strong></div>
</div>
<div>Voila!</div>
</div>
</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/01/06/manual-keying.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

