<?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; cisco</title>
	<atom:link href="http://www.imacandi.net/windancer/tag/cisco/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>Cisco != consistency</title>
		<link>http://www.imacandi.net/windancer/2011/10/28/cisco-consistency.html</link>
		<comments>http://www.imacandi.net/windancer/2011/10/28/cisco-consistency.html#comments</comments>
		<pubDate>Fri, 28 Oct 2011 13:24:25 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[draci]]></category>
		<category><![CDATA[passion]]></category>
		<category><![CDATA[techie]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=3601</guid>
		<description><![CDATA[You do remember my love for this magnificent vendor. Now I am looking at an IKEv2 configuration when using RSA X.509 digital certificates. The trust-point is defined as for any Cisco switch. If for IKEv1, I would configure RSA-SIG auth like this: crypto ikev1 enable untrusted crypto ikev1 policy 1 authentication rsa-sig encryption aes-256 hash [...]]]></description>
			<content:encoded><![CDATA[<p>You do remember my love for this magnificent vendor. Now I am looking at an IKEv2 configuration when using RSA X.509 digital certificates.</p>
<p>The trust-point is defined as for any Cisco switch.</p>
<p>If for <strong>IKEv1</strong>, I would configure RSA-SIG auth like this:</p>
<blockquote>
<pre>crypto ikev1 enable untrusted
crypto ikev1 policy 1
 <strong>authentication rsa-sig</strong>
 encryption aes-256
 hash sha
 group 5
 lifetime 3600</pre>
</blockquote>
<p>- Usually this is enough for the Phase 1 &#8211; authentication to take place. We have RSA, we need to use RSA for authentication.</p>
<p>But for <strong>IKEv2</strong>, trying to be CONSISTENT, a basic requirement for any equipment on the market, is done like this:</p>
<blockquote>
<pre>crypto ikev2 enable untrusted</pre>
<pre>crypto ikev2 policy 1
 encryption aes-256
 integrity sha
 group 5
 prf sha
 lifetime seconds 3600</pre>
<pre>tunnel-group myIPsecGroup ipsec-attributes
 peer-id-validate cert
 chain
 ikev2 remote-authentication certificate
 ikev2 local-authentication certificate myTrustPointCA</pre>
</blockquote>
<p>I would sadly add: don&#8217;t you find it naturally that in IKEv2, the authentication has no place in the Phase 1 definition, but rather somewhere below, where I define the transform-sets (which, by the way, in IKEv2 are called differently) for the Phase 2 ??!!!</p>
<p>Not mentioning the fact that Cisco is the latest guy to arrive at the finish line with IKEv2 (heey, we are in 2011!!), they proved us again what a professional company it is. I would expect a no-name company from China not to be able to accomplish one of the most important requirements of professional software design: Consistency, but&#8230;Cisco? <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>ref: <a href="http://secret-epedemiology-statistic.org.ua/1587052091/ch17lev1sec5.html">http://secret-epedemiology-statistic.org.ua/1587052091/ch17lev1sec5.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2011/10/28/cisco-consistency.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>802.1x, NAC L2, NAC L3…and some more</title>
		<link>http://www.imacandi.net/windancer/2010/02/09/802-1x-nac-l2-nac-l3-and-some-more.html</link>
		<comments>http://www.imacandi.net/windancer/2010/02/09/802-1x-nac-l2-nac-l3-and-some-more.html#comments</comments>
		<pubDate>Tue, 09 Feb 2010 13:17:28 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[auth-proxy]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[eap]]></category>
		<category><![CDATA[EAPoverUDP]]></category>
		<category><![CDATA[EoU]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[passion]]></category>
		<category><![CDATA[radius]]></category>
		<category><![CDATA[Summit]]></category>
		<category><![CDATA[techie]]></category>
		<category><![CDATA[web-auth]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=1611</guid>
		<description><![CDATA[I&#8217;ve always said that, when it comes to Cisco, my brains go boom, temperature increases and I end up having 30 Firefox tab trying to search on cisco.com what on earth some kinky cisco-ish feature does and _how_ precisely. After the latest IPsec adventure with Cisco&#8217;s Customer Support (CCIE Security) which advised me to run [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always said that, when it comes to <strong>Cisco</strong>, my brains go boom, temperature increases and I end up having 30 Firefox tab trying to search on <strong><a href="http://www.cisco.com">cisco.com</a> </strong>what on earth some kinky cisco-ish feature does and _how_ precisely.</p>
<p>After the latest IPsec adventure with Cisco&#8217;s Customer Support (CCIE Security) which advised me to run commands that were not even available on my IOS (yes, I had previously given them my config and IOS version), I said that whenever I have Cisco-related issues I go straight to my team lead, the guy being able to fix no matter issue I encountered on Cisco &#8211; at least on the IPsec side&#8230;</p>
<p>Now, I&#8217;ve had the honor of having to move an EoU/WebAuth config from a 3750 to a 6500. While I was feeling pretty good about myself being able to configure and understand the way to configure EoU and WebAuth on Cisco (<strong>EoU </strong>is NAC L2, I am using L2 interfaces in a L2 vlan in mode access and use the &#8220;ip admission&#8221; command on the L2 interface, while <strong>WebAuth </strong>gets configured as a fallback to 802.1x using the &#8220;dot1x fallback dot1x-www&#8221; on the L2 interface), I have now realized that I am FAR FAR AWAY from the truth. I&#8217;ve woken up on this twisted 6500, where I have the possibily of configuring:</p>
<p>1. 802.1x &#8211; fair enough, I am not using 802.1x here anyways</p>
<p>2. NAC Layer 2 IP / LAN Port IP &#8211; which can be configured this way (as per Cisco&#8217;s KB)</p>
<div id="_mcePaste"><strong><em>Router# configure terminal</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# ip admission name nac eapoudp</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# access-list 5 permit any any</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# interface gigabitethernet 2/0/1</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config-if)# ip access-group 5 in</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config-if)# ip admission nac</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config-if)# exit</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# aaa new-model</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# aaa authentication eou default group radius</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# radius-server host admin key rad123</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# radius-server vsa send authentication</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# ip device tracking probe count 2</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# eou logging</em></strong></div>
<div id="_mcePaste"><strong><em>Router(config)# end</em></strong></div>
<p>3. LAN Port IP &#8211; which, ignoring their own definition from some KBs, now appears as a &#8220;Web-Based Authentication&#8221; and gets configured&#8230;nowhere says _how_</p>
<p>4. NAC Layer 3 IP / NAC Gateway IP &#8211; which should be enabled on L3 interfaces</p>
<p><strong><em>Router(config)# ip admission name webauth1 proxy http</em></strong></p>
<p><strong><em>Router(config)# interface fastethernet 5/1</em></strong></p>
<p><strong><em>Router(config-if)# ip admission webauth1</em></strong></p>
<p><strong><em>Router(config-if)# authentication order webauth</em></strong></p>
<p><strong><em>Router(config-if)# exit</em></strong></p>
<p><strong><em>Router(config)# ip device tracking</em></strong></p>
<p><strong><em>Router(config)# ip admission proxy http login page file disk1:login.htm</em></strong></p>
<p><strong><em>Router(config)# ip admission proxy http success page file disk1:success.htm</em></strong></p>
<p><strong><em>Router(config)# ip admission proxy http fail page file disk1:fail.htm</em></strong></p>
<p><strong><em>Router(config)# ip admission proxy http login expired page file disk1:expired.htm</em></strong></p>
<p>5. NAC Gateway IP &#8211; which is configured as <strong>auth-proxy</strong>, this way:</p>
<p><strong><em>Router(config)# ip auth-proxy name webauth http inactivity-time 60</em></strong></p>
<p><strong><em>Router(config)#interface GigabitEthernet3/15</em></strong></p>
<p><strong><em>Router(config-if)#</em></strong><strong><em> description WEBAUTH</em></strong></p>
<p><strong><em>Router(config-if)#</em></strong><strong><em> switchport</em></strong></p>
<p><strong><em>Router(config-if)#</em></strong><strong><em> switchport access vlan 502</em></strong></p>
<p><strong><em>Router(config-if)#</em></strong><strong><em> switchport mode access</em></strong></p>
<p><strong><em>Router(config-if)#</em></strong><strong><em> ip access-group www in</em></strong></p>
<p><strong><em>Router(config-if</em></strong><span style="font-style: normal; font-weight: normal;"><strong><em>)#</em></strong><strong><em> spanning-tree portfast edge</em></strong></span></p>
<p><strong><em>Router(config-if)#</em></strong><strong><em> ip auth-proxy webauth</em></strong></p>
<p><strong><em>Router(config)# </em></strong><strong><em>ip access-list extended www</em></strong></p>
<p><strong><em>Router(config)# </em></strong><strong><em> permit tcp any any eq www</em></strong></p>
<p><strong><em>Router(config)# </em></strong><strong><em> deny   ip any any</em></strong></p>
<p>The &#8220;aaa authentication login default radius&#8221; is on. The &#8220;ip http server&#8221; is on. The &#8220;aaa authorization auth-proxy default group radius &#8221; is on also.</p>
<p>Now, I am no EoU, WebAuth, and by far no Cisco guru, but, what gives? Why so many auth methods? And, specially, why the method I use to configure one way on a 3750 (WebAuth using the &#8220;auth-proxy&#8221; set of commands) is configured some other way on 6500 (WebAuth using the &#8220;ip admission &lt;name&gt; proxy http&#8221; set of commands) &#8211; while keeping the &#8220;auth-proxy&#8221; set of commands &#8211; which here do something else. Why is it so hard to be consistent all over your own set of devices?</p>
<p>I have done 802.1x on Summit (netlogin called in there), WebAuth on Summit and WebAuth on HP switches. None of them seemed so damn confusing <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  I am lost.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2010/02/09/802-1x-nac-l2-nac-l3-and-some-more.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>cool stuff in corporatie</title>
		<link>http://www.imacandi.net/windancer/2009/04/06/cool-stuff-in-ixia.html</link>
		<comments>http://www.imacandi.net/windancer/2009/04/06/cool-stuff-in-ixia.html#comments</comments>
		<pubDate>Mon, 06 Apr 2009 07:09:45 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[passion]]></category>
		<category><![CDATA[techie]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=682</guid>
		<description><![CDATA[Razvan Rughinis rules]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linkedin.com/in/razvanrughinis">Razvan Rughinis</a> rules</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2009/04/06/cool-stuff-in-ixia.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco Expo 2008</title>
		<link>http://www.imacandi.net/windancer/2008/11/05/cisco-expo-2008.html</link>
		<comments>http://www.imacandi.net/windancer/2008/11/05/cisco-expo-2008.html#comments</comments>
		<pubDate>Wed, 05 Nov 2008 18:37:07 +0000</pubDate>
		<dc:creator>cristina_crow</dc:creator>
				<category><![CDATA[promote]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[techie]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://www.imacandi.net/windancer/?p=66</guid>
		<description><![CDATA[Este pe 5 si 6 noiembrie, in Radisson Sas. Cum corporatia la care lucrez este unul dintre partenerii tehnologici ai evenimentului, m-am prezentat si eu la stand, sa-i lamuresc pe curiosii care intreaba de VoIP, Security, networking protocols si solutii de monitorizare si mentenanta pentru retele. Agenda evenimentului e pe site-ul Cisco Expo 2008. Mi-a [...]]]></description>
			<content:encoded><![CDATA[<p>Este pe 5 si 6 noiembrie, in <a href="http://www.radissonsas.com/servlet/ContentServer?pagename=RadissonSAS/integration/hotelInfo&amp;hotelCode=buhzh&amp;language=en&amp;backURI=/reservation/rateSearch.do&amp;origin=Rates%20And%20Availability">Radisson Sas</a>. Cum corporatia la care lucrez este unul dintre partenerii tehnologici ai evenimentului, m-am prezentat si eu la stand, sa-i lamuresc pe curiosii care intreaba de VoIP, Security, networking protocols si solutii de monitorizare si mentenanta pentru retele.</p>
<p>Agenda evenimentului e pe site-ul <a href="http://www.cisco.com/web/RO/ciscoexpo/2008/agenda.html">Cisco Expo 2008</a>. Mi-a placut prezentarea, companiile &#8211; numeroase si nu prea si multa lume cunoscuta din domeniu. Din pacate, nu am ajuns la niciunul dintre workshop-uri, insa am avut ocazia sa vorbesc cu oameni interesanti. Cei mai multi au venit sa intrebe ce facem noi, ce e cu solutiile de mentenanta care impanzesc harta <a href="http://www.ixiacom.com/solutions/ip_service_verification/">Norvegiei IxRAVE</a>, colegii de la layer 2-3 le-au prezentat solutiile noastre de testare de Routing, Acces si VPN &#8211; <a href="http://www.ixiacom.com/products/aptixia_ixnetwork/">IxNetwork</a>, iar pe partea de layer 4-7 am prezentat solutia de SIP si RTP din <a href="http://www.ixiacom.com/products/aptixia_ixload/">IxLoad</a>. Am observat ca suntem prea putin cunoscuti sau populari in Romania, probabil si din cauza inaccesibilitatii preturilor pe piata aceasta.</p>
<p>Un amanunt care mi-a colorat putin cele 6 ore petrecute la stand a fost vizita a doi reporteri atrasi de graficele colorate displayate pentru traficul de SIP si RTP QoS. Au venit sa ma intrebe despre ce este vorba in acest produs. Am inceput imediat sa explic, sa arat, sa demonstrez, sa prezint cum integram noi VoIP cu security, cum facem noi 15000 de endpointi de SIP peste tot atatea tunele IPsec&#8230;si tot asa. Dupa 5 minute in care oamenii aia se uitau dragut la mine, unul din ei imi spune politicos: &#8220;Domnisoara, noi nu cunoastem detalii tehnice, lucram pentru o televiziune, si ne-au placut graficele dumneavoastra colorate. Am putea, va rugam, sa filmam putin demo-ul acesta?&#8221;&#8230;Cred ca trebuie sa mai lucrez putin la people skills. Eh, cel putin nu au plecat, si au fost draguti sa asculte tot mambo&#8211;jumbo-ul meu imbibat cu acronime care de care mai haioase <img src='http://www.imacandi.net/windancer/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Overall, un eveniment dragut, poate putin cam prea slab tehnic pentru gustul meu, dar o ocazie frumoasa de schimbat carti de vizita si de prezentat compania persoanelor din bransa. Pentru a doua zi, cautati feedback in alta parte, ca eu am prestat numai in prima.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imacandi.net/windancer/2008/11/05/cisco-expo-2008.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

