<?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>nat0 &#187; Security</title>
	<atom:link href="http://nat0.net/category/english/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://nat0.net</link>
	<description>a blog about networking, Cisco-solutions and security</description>
	<lastBuildDate>Mon, 30 Jan 2012 11:48:03 +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>ISE host name and AD joining</title>
		<link>http://nat0.net/ise-host-name-and-ad-joining/</link>
		<comments>http://nat0.net/ise-host-name-and-ad-joining/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 15:55:20 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[ISE]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/?p=1404</guid>
		<description><![CDATA[Recently we tried to join an Cisco ISE instance to Active Directory without success. The problem seemed to be because of the length of the ISE host name. Even though the system supports host names up to 19 characters long, we couldn&#8217;t add the ISE to AD until we shortened the name to be maximum [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Recently we tried to join an Cisco ISE instance to Active Directory without success. The problem seemed to be because of the length of the ISE host name. Even though the system supports host names up to 19 characters long, we couldn&#8217;t add the ISE to AD until we shortened the name to be maximum 14 characters. </p>
<p>Another one of those undocumented &#8220;features&#8221; that I wish I have read about before getting stuck. I wish this short post is indexed so that other people find out and gets a push in the right direction because of it.</p>
<div class="shr-publisher-1404"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/ise-host-name-and-ad-joining/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stuck with an auth-proxy task</title>
		<link>http://nat0.net/stuck-with-an-auth-proxy-task/</link>
		<comments>http://nat0.net/stuck-with-an-auth-proxy-task/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 09:34:12 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[Cisco IOS]]></category>
		<category><![CDATA[English posts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[auth-proxy]]></category>
		<category><![CDATA[CCIE]]></category>
		<category><![CDATA[INE]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/?p=1391</guid>
		<description><![CDATA[Hello I am currently working on a task (INE CCIE Security WB 1 Task 2.9) where I am supposed to configured an radius-based IOS auth-proxy. The task is this: &#160; Configure Authentication PRoxy settings on R3 per the following requirements. US the radius server at 10.0.0.100 with the authentication key CISCO. The authentication proxy should [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hello</p>
<p>I am currently working on a task (INE CCIE Security WB 1 Task 2.9) where I am supposed to configured an radius-based IOS auth-proxy. The task is this:</p>
<p>&nbsp;</p>
<p><em>Configure Authentication PRoxy settings on R3 per the following requirements.</em></p>
<ul>
<li><em>US the radius server at 10.0.0.100 with the authentication key CISCO.</em></li>
<li><em>The authentication proxy should apply to the users sessions initiated from VLAN23 towards VLAN13.</em></li>
<li><em>Authentication users should be allowed to send ICMP packets and initate TCP sessions.</em></li>
<li><em>Configure the ACS server with the user named PROXY and the password of CISCO1234.</em></li>
</ul>
<p>&nbsp;</p>
<p>In ACS I have added the R3 as AAA client (Cisco IOS Radius). I have also added the user PROXY with the following cisco av pair´s:</p>
<p><code><br />
auth-proxy:priv-lvl=15<br />
auth-proxy:proxyacl#1=permit icmp any any<br />
auth-proxy:proxyacl#1=permit tcp any any<br />
</code><br />
&nbsp;<br />
In R3 I have added the following config:</p>
<p><code><br />
aaa new-model<br />
aaa authen login CON none<br />
line con 0<br />
  login authen CON<br />
aaa authen login default group radius<br />
aaa author auth-proxy default group radius<br />
!<br />
ip http server<br />
ip http authen aaa<br />
ip auth-proxy name AUTHPROXY http<br />
!<br />
ip access-l ext INBOUND<br />
  permit udp any any eq rip<br />
  permit tcp any host 136.1.23.3 eq www<br />
  deny ip any any log<br />
!<br />
int fa0/1.23<br />
  ip access-group INBOUND in<br />
  ip auth-proxy AUTHPROXY<br />
</code><br />
&nbsp;<br />
This is what happens when I fire up a browser and http´s to the R3 interface:<br />
&nbsp;<br />
(debug aaa authen, aaa author, auth-proxy and radius is on)<br />
&nbsp;<br />
<code><br />
Rack1R3#<br />
*Jan  3 01:15:40.229: AUTH-PROXY:proto_flag=4, dstport_index=4<br />
*Jan  3 01:15:40.229:  SYN SEQ 984706124 LEN 0<br />
*Jan  3 01:15:40.229: dst_addr 136.1.23.3 src_addr 136.1.23.123 dst_port 80 src_port 1103<br />
*Jan  3 01:15:40.237: AUTH-PROXY:proto_flag=4, dstport_index=4<br />
*Jan  3 01:15:40.237:  ACK 4057202766 SEQ 984706125 LEN 0<br />
*Jan  3 01:15:40.237: dst_addr 136.1.23.3 src_addr 136.1.23.123 dst_port 80 src_port 1103<br />
*Jan  3 01:15:40.241: AUTH-PROXY:proto_flag=4, dstport_index=4<br />
*Jan  3 01:15:40.241:  PSH ACK 4057202766 SEQ 984706125 LEN 282<br />
*Jan  3 01:15:40.241: dst_addr 136.1.23.3 src_addr 136.1.23.123 dst_port 80 src_port 1103<br />
Rack1R3#<br />
*Jan  3 01:15:40.245: Router interested packet returning src 136.1.23.123, dst 136.1.23.3<br />
*Jan  3 01:15:40.257: AUTH-PROXY:proto_flag=4, dstport_index=4<br />
*Jan  3 01:15:40.261:  ACK 4057202967 SEQ 984706407 LEN 0<br />
*Jan  3 01:15:40.261: dst_addr 136.1.23.3 src_addr 136.1.23.123 dst_port 80 src_port 1103<br />
Rack1R3#<br />
Rack1R3#<strong>! I fired up IE, entered the url and it is now showing a login prmpt "level_15 or view_access"</strong><br />
Rack1R3#<br />
Rack1R3#<strong>! I enter the credentials PROXY/CISCO1234 and hit enter...</strong><br />
Rack1R3#<br />
Rack1R3#<br />
*Jan  3 01:16:52.743: AUTH-PROXY:proto_flag=4, dstport_index=4<br />
*Jan  3 01:16:52.743:  FIN ACK 4057202967 SEQ 984706407 LEN 0<br />
*Jan  3 01:16:52.743: dst_addr 136.1.23.3 src_addr 136.1.23.123 dst_port 80 src_port 1103<br />
*Jan  3 01:16:52.748: AUTH-PROXY:proto_flag=4, dstport_index=4<br />
*Jan  3 01:16:52.748:  SYN SEQ 1525595421 LEN 0<br />
*Jan  3 01:16:52.748: dst_addr 136.1.23.3 src_addr 136.1.23.123 dst_port 80 src_port 1104<br />
*Jan  3 01:16:52.756: AUTH-PROXY:proto_flag=4, dstport_index=4<br />
*Jan  3 01:16:52.756:  ACK 2275096303 SEQ 1525595422 LEN 0<br />
*Jan  3 01:16:52.756: dst_addr 136.1.23.3 src_addr 136.1.23.123 dst_port 80 src_port 1104<br />
*Jan  3 01:16:52.756: AUTH-PROXY:proto_flag=4, dstport_index=4<br />
*Jan  3 01:16:52.760:  PSH ACK 2275096303 SEQ 1525595422 LEN 325<br />
*Jan  3 01:16:52.760: dst_addr 136.1.23.3 src_addr 136.1.23.123 dst_port 80 src_port 1104<br />
*Jan  3 01:16:52.764: Router interested packet returning src 136.1.23.123, dst 136.1.23.3<br />
*Jan  3 01:16:52.772: AAA/BIND(00000006): Bind i/f<br />
*Jan  3 01:16:52.772: AAA/AUTHEN/LOGIN (00000006): Pick method list 'default'<br />
*Jan  3 01:16:52.776: RADIUS/ENCODE(00000006):Orig. component type = HTTP<br />
<strong>*Jan  3 01:16:52.776: RADIUS/ENCODE(00000006): dropping service type, "radius-server attribute 6 on-for-login-auth" is off</strong><br />
*Jan  3 01:16:52.776: RADIUS(00000006): Config NAS IP: 0.0.0.0<br />
*Jan  3 01:16:52.776: RADIUS/ENCODE(00000006): acct_session_id: 4<br />
*Jan  3 01:16:52.776: RADIUS(00000006): sending<br />
*Jan  3 01:16:52.776: RADIUS/ENCODE: Best Local IP-Address 10.0.0.3 for Radius-Server 10.0.0.100<br />
*Jan  3 01:16:52.780: RADIUS(00000006): Send Access-Request to 10.0.0.100:1645 id 1645/4, len 71<br />
*Jan  3 01:16:52.780: RADIUS:  authenticator 63 22 AD D4 03 CA 91 6C - 71 F8 27 E9 70 12 2A 18<br />
*Jan  3 01:16:52.780: RADIUS:  User-Name           [1]   7   "PROXY"<br />
*Jan  3 01:16:52.784: RADIUS:  User-Password       [2]   18  *<br />
*Jan  3 01:16:52.784: RADIUS:  NAS-Port-Type       [61]  6   Virtual                   [5]<br />
*Jan  3 01:16:52.784: RADIUS:  Calling-Station-Id  [31]  14  "136.1.23.123"<br />
*Jan  3 01:16:52.784: RADIUS:  NAS-IP-Address      [4]   6   10.0.0.3<br />
*Jan  3 01:16:52.796: RADIUS: Received from id 1645/4 10.0.0.100:1645, Access-Accept, len 181<br />
*Jan  3 01:16:52.796: RADIUS:  authenticator 4E 80 7B 47 1A 03 96 83 - BA 01 FE 83 9E A6 BB A6<br />
*Jan  3 01:16:52.800: RADIUS:  Framed-IP-Address   [8]   6   255.255.255.255<br />
*Jan  3 01:16:52.800: RADIUS:  Vendor, Cisco       [26]  30<br />
*Jan  3 01:16:52.800: RADIUS:   Cisco AVpair       [1]   24  "auth-proxy:priv-lvl=15"<br />
*Jan  3 01:16:52.800: RADIUS:  Vendor, Cisco       [26]  49<br />
*Jan  3 01:16:52.800: RADIUS:   Cisco AVpair       [1]   43  "auth-proxy:proxyacl#1=permit icmp any any"<br />
*Jan  3 01:16:52.800: RADIUS:  Vendor, Cisco       [26]  48<br />
*Jan  3 01:16:52.804: RADIUS:   Cisco AVpair       [1]   42  "auth-proxy:proxyacl#2=permit tcp any any"<br />
*Jan  3 01:16:52.804: RADIUS:  Class               [25]  28<br />
*Jan  3 01:16:52.804: RADIUS:   43 41 43 53 3A 30 2F 31 37 34 39 66 2F 61 30 30  [CACS:0/1749f/a00]<br />
*Jan  3 01:16:52.804: RADIUS:   30 30 30 33 2F 50 52 4F 58 59                    [0003/PROXY]<br />
*Jan  3 01:16:52.808: RADIUS(00000006): Received from id 1645/4<br />
<strong>*Jan  3 01:16:52.812: AAA/AUTHOR (00000006): Method list id=0 not configured. Skip author</strong><br />
*Jan  3 01:16:54.815: AUTH-PROXY:proto_flag=4, dstport_index=4<br />
*Jan  3 01:16:54.815:  ACK 2275096504 SEQ 1525595747 LEN 0<br />
*Jan  3 01:16:54.815: dst_addr 136.1.23.3 src_addr 136.1.23.123 dst_port 80 src_port 1104<br />
Rack1R3#<br />
<strong>Rack1R3#! ... and the browser give me another login prompt...</strong><br />
Rack1R3#<br />
Rack1R3#<br />
</code><br />
&nbsp;</p>
<p>See those lines in bold? What is happening here? They are not in the output from the solution guide. The &#8220;radius-server attribute 6 on for login-auth&#8221;-message can be tweaked away with a specific command but why should that be neccesary? And what about &#8220;AAA/AUTHOR Metod list id=0 not configured. Skip author&#8221;, that feels like a fatal error. But I do have &#8220;aaa authorization auth-proxy default group radius&#8221;-command.<br />
&nbsp;<br />
Anyone?</p>
<p>&nbsp;</p>
<p>&nbsp;  </p>
<div class="shr-publisher-1391"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/stuck-with-an-auth-proxy-task/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WLC2100 and ASA 5505 uses same hardware. Can they be converted?</title>
		<link>http://nat0.net/wlc2100-and-asa-5505-uses-same-hardware-can-they-be-converted/</link>
		<comments>http://nat0.net/wlc2100-and-asa-5505-uses-same-hardware-can-they-be-converted/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 16:14:06 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[Cisco ASA]]></category>
		<category><![CDATA[English posts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ASA]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[WLC]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/?p=1378</guid>
		<description><![CDATA[I wonder if one can convert a Cisco Wireless Controller 2106 into an ASA 5505 or vice versa. It seems to be the same hardware. Anyone that knows if there is any burned-in differences, or is it just a matter of replacing the software? &#160; I will try to swap the CF-card in an ASA5505 [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I wonder if one can convert a Cisco Wireless Controller 2106 into an ASA 5505 or vice versa. It seems to be the same hardware. Anyone that knows if there is any burned-in differences, or is it just a matter of replacing the software?</p>
<p>&nbsp;</p>
<p>I will try to swap the CF-card in an ASA5505 with one from an WLC and see what happens. Stay tuned.</p>
<p>&nbsp;</p>
<p>ASA5505:</p>
<p><a href="http://nat0.net/wp-content/uploads/2011/10/asa5505.jpg"><img class="alignnone size-full wp-image-1379" title="asa5505" src="http://nat0.net/wp-content/uploads/2011/10/asa5505.jpg" alt="" width="412" height="331" /></a></p>
<p>WLC2106:</p>
<p><a href="http://nat0.net/wp-content/uploads/2011/10/wlc2106_front.jpg"><img class="alignnone size-full wp-image-1380" title="wlc2106_front" src="http://nat0.net/wp-content/uploads/2011/10/wlc2106_front.jpg" alt="" width="418" height="334" /></a></p>
<p><a href="http://nat0.net/wp-content/uploads/2011/10/wlc2106_rear.jpg"><img class="alignnone size-full wp-image-1381" title="wlc2106_rear" src="http://nat0.net/wp-content/uploads/2011/10/wlc2106_rear.jpg" alt="" width="418" height="334" /></a></p>
<div class="shr-publisher-1378"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/wlc2100-and-asa-5505-uses-same-hardware-can-they-be-converted/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Strange Win7-behavior with AnyConnect and Ipv6</title>
		<link>http://nat0.net/strange-win7-behavior-with-anyconnect-and-ipv6/</link>
		<comments>http://nat0.net/strange-win7-behavior-with-anyconnect-and-ipv6/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 18:08:39 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[Cisco ASA]]></category>
		<category><![CDATA[English posts]]></category>
		<category><![CDATA[Anyconnect]]></category>
		<category><![CDATA[ASA]]></category>
		<category><![CDATA[Ipv6]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/?p=1370</guid>
		<description><![CDATA[I think Windows 7 behaves strange with AnyConnect and IPv6 &#160; I have recently been doing a lot of ipv6-configurations and as part of that I tried out the ipv6-support in the Cisco Anyconnect-client. While doing that I found out a lack of functionality when it comes to ipv6 in combination with Windows 7 and [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span style="color: black; font-family: Tahoma; font-size: 13pt;">I think Windows 7 behaves strange with AnyConnect and IPv6<br />
</span></p>
<p>&nbsp;</p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">I have recently been doing a lot of ipv6-configurations and as part of that I tried out the ipv6-support in the Cisco Anyconnect-client. While doing that I found out a lack of functionality when it comes to ipv6 in combination with Windows 7 and the Aynconnect-client.</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">Since I have no native v6-support from my ISP I have an ipv6-tunnel from sixxs.net, providing my with my own /48-prefix network. An internal linux-host on my home networks serves as an ipv6 default-gateway and my home ASA firewall has an ipv6 default-route pointing towards that machine.</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">I have been abroad for a few days and fooled around with the Anyconnect while wasting time at the hotel room, and what I found out is a bit strange. Windows simply doesnt care about the Aynconnect v6-address when it comes to DNS lookups.</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">The ASA firewall at home has been configured with an v6-address on the inside interface and a default-route as stated above. I have added an ipv6-pool in addition to the normal ipv4 vpn-pool configured in my DfltGrpPolicy and my VPN-clients gets an v6-address as well as an v4-address:</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091311_1808_StrangeWin711.jpg" alt="" /><span style="color: black; font-family: Tahoma; font-size: 13pt;"><br />
</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">So I have a Windows7-client with ipv4-only configured on the nic, and dual-stack configured on the tunnel-interface. Look what happens when I try to resolve an hostname that only has an A-record (that is, v4):</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091311_1808_StrangeWin721.jpg" alt="" /><span style="color: black; font-family: Tahoma; font-size: 13pt;"><br />
</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">The wireshark-capture prooves that only an A-record is resolved:</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091311_1808_StrangeWin731.jpg" alt="" /><span style="color: black; font-family: Tahoma; font-size: 13pt;"><br />
</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">On the other hand, when I manually resolves an AAAA-record (v6) I get an instant lookup:</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091311_1808_StrangeWin741.jpg" alt="" /><span style="color: black; font-family: Tahoma; font-size: 13pt;"><br />
</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">And the corresponding wireshark-capture:</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091311_1808_StrangeWin751.jpg" alt="" /><span style="color: black; font-family: Tahoma; font-size: 13pt;"><br />
</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">Also, when I enter http://[2a00:1450:8001:63] in an browser I get the Google web-page.</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">So: My client has full connectivity with both v4-internet and v6-internet. Still, I cannot reach v6-internet in a decent way since windows doesnt resolve AAAA-records.</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">Shouldnt it do lookups of both AAAA and A-record as it would if I had dual stacks configured on the ordinary nick? Is this something wrong in Windows? Or in the Anyconnect-client? Or have I done something wrong? </span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p>&nbsp;</p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;">Enlighten me!</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<p><span style="color: black; font-family: Tahoma; font-size: 13pt;"><br />
</span><span style="font-family: Times New Roman; font-size: 12pt;"><br />
</span></p>
<div class="shr-publisher-1370"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/strange-win7-behavior-with-anyconnect-and-ipv6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco ASA memory Upgrade</title>
		<link>http://nat0.net/cisco-asa-memory-upgrade/</link>
		<comments>http://nat0.net/cisco-asa-memory-upgrade/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 17:16:23 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[Cisco ASA]]></category>
		<category><![CDATA[English posts]]></category>
		<category><![CDATA[ASA]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[memory]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/tjoho/</guid>
		<description><![CDATA[Newer versions of Cisco ASA requires more memory. Running anyconnect with multiple platform support requires more flash-memory than built in. There are memory upgrades available for purchase from cisco.com which I highly recommend. However, for lab-purposes any DDR memory and CompactFlash-card will do. Have a look in my lab gear. &#160; First, an ASA5505. On [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Newer versions of Cisco ASA requires more memory. Running anyconnect with multiple platform support requires more flash-memory than built in. There are memory <a href="http://www.cisco.com/en/US/prod/collateral/vpndevc/ps6032/ps6094/ps6120/product_bulletin_c25-586414.html">upgrades available for purchase from cisco.com</a> which I highly recommend. However, for lab-purposes any DDR memory and CompactFlash-card will do. Have a look in my lab gear.</p>
<p>&nbsp;</p>
<p>First, an <strong>ASA5505</strong>. On the overview photo below you can see that it has one single DDR memory-slot (to the far lower right corner on the picture). I have tried both 512Mb-modules and 1Gb-modules and both worked fine. Even if it is not visible from outside there is also an CF-slot. Remove the cover and replace the current CF-module with a bigger. I have tried both 2Gb and 4Gb-modules with success.</p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091111_1716_CiscoASAmem1.jpg" alt="" /></p>
<p>Picure of ASA5505 internals. Note the CF-slot in the bottom part and the memory to the right.</p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091111_1716_CiscoASAmem2.jpg" alt="" /></p>
<p>Picture of upgraded memory module from an ASA5505</p>
<p>&nbsp;</p>
<p><strong>ASA5510</strong> comes in different flavours depending on hardware revision. Older versions have 4 memory slots that needs to be filled with pairs of identical modules. In newer revisions there are only one single memory slot, and I guess (but I am not sure) that it support larger memory modules!</p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091111_1716_CiscoASAmem3.jpg" alt="" /></p>
<p>Picture of label on top of an Revision 01 ASA5510.</p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091111_1716_CiscoASAmem4.jpg" alt="" /></p>
<p>Picture of an ASA5510 Revision 01 filled with 2x512Mb. Note the disk1: CF-card accessible from outside and the internal disk0: CF-module just adjacent to in in the bottom of the picture.</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091111_1716_CiscoASAmem5.jpg" alt="" /></p>
<p>Picture of the memory-modules I use in an ASA5510 Revision 01.</p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091111_1716_CiscoASAmem6.jpg" alt="" /></p>
<p>Picture of an ASA5510 Revision 03-label.</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091111_1716_CiscoASAmem7.jpg" alt="" /></p>
<p>Picture of an Revision 03 ASA5510 with one single memory slot.</p>
<p>&nbsp;</p>
<p><img src="http://nat0.net/wp-content/uploads/2011/09/091111_1716_CiscoASAmem8.jpg" alt="" /></p>
<p>Picture of the memory module I use in an ASA5510 revision 03.</p>
<p>Again, remember that third party memory modules are <strong>not supported</strong> from Cisco. I strongly discourage using non-supported hardware in any production environment!</p>
<p>&nbsp;</p>
<p>And one final note: When you replace the CF-module you will notice that your current <strong>startup-config as well as the activation-key are gone.</strong> To avoid this, take your old original CF-card and put it in your computer. Make sure that your computer shows &#8220;<strong>hidden files</strong>&#8220;. Copy all content from the old module (maybe via a folder on your computer if you can only insert one CF at a time) and paste it back to your brand new large CF. And voila, all licensing and config are visible to the ASA! Also. On 5510+ there are double CF-slots: one internal and one external. Replace the external and address it as disk1:, put all large files there and your startup-config as well as hidden files containing your licenses will be untouched on the internal CF-card, addressed as disk0:</p>
<p>To Håkan: <a href="http://www.kjell.com/?item=31146">This is the memory module I bought</a>. <span style="font-family: Wingdings;">J</span></p>
<div class="shr-publisher-1350"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/cisco-asa-memory-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Private ipv4 addresses as a security reason not to convert to ipv6?</title>
		<link>http://nat0.net/private-ipv4-addresses-as-a-security-reason-not-to-convert-to-ipv6/</link>
		<comments>http://nat0.net/private-ipv4-addresses-as-a-security-reason-not-to-convert-to-ipv6/#comments</comments>
		<pubDate>Mon, 13 Jun 2011 13:13:56 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ipv6]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/?p=1312</guid>
		<description><![CDATA[&#160;I while ago I got into a discussion with one of my customers regarding ipv6. He told me that one reason not to migrate to ipv6 was for security.&#160; - I dont want to tell the entire world what IP addresses I have on my servers. And when using ipv4 and NAT my internal ip [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>&#160;I while ago I got into a discussion with one of my customers regarding ipv6. He told me that one reason not to migrate to ipv6 was for security.&#160;</p>
<p><em>- I dont want to tell the entire world what IP addresses I have on my servers. And when using ipv4 and NAT my internal ip addresses are hidden.</em></p>
<p>The discussion was interrupted and I didnt get any chance to finish it.&#160;</p>
<p>When using private ipv4-addresses on your LAN i can assume that you have any of these addresses:</p>
<ul>
<li>10.0.0.0/8</li>
<li>172.16.0.0/12</li>
<li>192.168.0.0/16</li>
</ul>
<p>So, how many addresses do you have to choose from? Lets count (roughly!):</p>
<ul>
<li>10.0.0.0/8, that is 256 * 256 * 256 addresses, 16 777 216 available addresses</li>
<li>172.16.0.0/12, that is 16 * 256 * 256 addresses, 1 048 576</li>
<li>192.168.0.0/16, that is 256 * 256 addresses, 65 536.</li>
</ul>
<p>That gives us a total sum of 17 891 328 available addresses. That´s a lot, isnt it?</p>
<p>But what if you get yourself a nice little pool of ipv6-addresses? For various reasons we can be pretty sure that you will get a /48 network from your ISP. Then you will probably divide this into one or many /64-networks on your internal LAN. So, how many addresses are there available?</p>
<p>First of all, dividing that /48-range into /64-subnets will give you 65536 different available networks. Next, an ipv6-address is 128 bits long. With 64 bits for specifying the network part you will have 64 bits left for addressing each individual host on your internal network. And 64 bits gives us&#160;18446744073709551616 unique combinations. So that is how many addresses you have available in each subnet when using ipv6.</p>
<p>So, if you see it as a security benefit to hide your sensitive servers addresses, which do you prefer? ipv4 or ipv6?</p>
<p>If a hacker would portscan your ipv6-range, how long will it take? Lets assume that he scans 100 addresses per second, then it will take him<strong> 5 849 424 173 years(*).</strong> And that should be compared to the <strong>50 hours </strong>it will take to port scan all private ipv4-addresses mentioned above.</p>
<p>And besides. That attack would probably be performed from internet. How many public ipv4-addresses do you have? It will be enough to portscan them. 100 addresses per seconds, you do the math. <img src='http://nat0.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>/Jimmy</p>
<p>
&#160;</p>
<div class="shr-publisher-1312"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/private-ipv4-addresses-as-a-security-reason-not-to-convert-to-ipv6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another missing ASA-feature: telnet and ssh client</title>
		<link>http://nat0.net/another-missing-asa-feature-telnet-and-ssh-client/</link>
		<comments>http://nat0.net/another-missing-asa-feature-telnet-and-ssh-client/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 10:17:36 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[Cisco ASA]]></category>
		<category><![CDATA[English posts]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASA]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Telnet]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/?p=1290</guid>
		<description><![CDATA[Every single decent Cisco-device on earth has the ability to make an CLI-user jump to another device with telnet or ssh. Except the ASA. I really wish that this feature could be added. Right now I am troubleshooting a firewall and from where I am right now the only way in is to SSH to [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Every single decent Cisco-device on earth has the ability to make an CLI-user jump to another device with telnet or ssh. Except the ASA. I really wish that this feature could be added. Right now I am troubleshooting a firewall and from where I am right now the only way in is to SSH to the ASA. I can do whatever I want inside the firewall from my SSH-window, but I need to access a router inside of that firewall, and if this feature wasn´t missing i could simply run &#8220;ssh ip-address&#8221; to jump to the switch´s CLI.</p>
<p>Am I the last CLI-.guy on this planet? Please, Cisco?</p>
<p><em>Update: </em><a href="http://etherealmind.com/firewall-dont-ssh-telnet-server/"><em>Greg Ferro wrote an reply on this</em></a><em> and here are my comments:</em></p>
<p><em></p>
<p></em></p>
<p><em>This could be divided into several different questions.</em></p>
<p><em></p>
<p></em></p>
<p><em>1) Should we use SSH to manage the firewall? In my opinion CLI is superior to GUI for most tasks. There are exceptions, but for daily maintenance I prefer CLI for several reasons.  The alternative ASDM-GUI is equally safe/secure because both SSH and ASDM uses encrypted transports and the authentication-part can be configured equally for both entrance-types.</em></p>
<p><em></p>
<p></em></p>
<p><em>2) From where should we allow maintance of the firewall? Of course the most obvious answer to this is &#8220;from somewhere inside, but not from internet&#8221;. Sure, I agree. And you SHOULD lock down from which networks/hosts/directions management of the firewall should be enabled, and you SHOULD lock it down as tight as possible. </em></p>
<p><em></p>
<p></em></p>
<p><em>But what if you NEED to manage your firewall &#8220;from internet&#8221;? In most implementations there is some kind of fallback needed so that the administrator can reach the network from abroad and do changes. This can be done in a ton of ways: VPN-client, SSL-portal, Citrix, you name it. The common thing with all these access ways is that they must be enabled &#8220;from anywhere&#8221;. What´s the point of allowing vpn-client in if you must be at a specific location (from a specific IP) to connect your vpn-client? Or Citrix-session? So this must be enabled from anywhere.</p>
<p></em></p>
<p><em></p>
<p></em></p>
<p><em>So there are 2 ways to make this &#8220;from anywere&#8221;-connection secure:</em></p>
<p><em>1) It is encrypted. VPN-client-traffic is encrypted. The Citrix access-gateway traffic is encrypted, the VPN-portal is encrypted. And you know what? SSH is encrypted. </em></p>
<p><em></p>
<p></em></p>
<p><em>2) Authentication is safe enough. Validation of user rights can be done in a number of ways. Most common is of course username/password, but you can any other method available, from soft tokens and hard tokens to biometry or certificates. And you know what? All these authentication methods can be done for both VPN-clients, all other access method mentioned above, as well as for SSH-traffic.</em></p>
<p><em></p>
<p></em></p>
<p><em>So, what is it that makes people (not only you Greg <img src='http://nat0.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) so stubornly convinced that SSH-access to the firewall should be avoided? I can see no differences in security between SSH and other access methods.</em></p>
<p><em></p>
<p></em></p>
<p><em>And a final note: the original post was about SSH:ing FROM the device, not to. Following my dialogue with myself above I come to the conclusion that you CAN allow ssh into the device. <strong>Given that, what is so unsafe about giving someone that you trust, using a secure connection, the ability to reach the network behind the device? </strong>After all, this user has already God access to the firewall and could alter any configuration in the firewall.</em></p>
<div class="shr-publisher-1290"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/another-missing-asa-feature-telnet-and-ssh-client/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Missing feature: Cisco ASA dhcp static leases</title>
		<link>http://nat0.net/missing-feature-cisco-asa-dhcp-static-leases/</link>
		<comments>http://nat0.net/missing-feature-cisco-asa-dhcp-static-leases/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 15:38:32 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[Cisco ASA]]></category>
		<category><![CDATA[English posts]]></category>
		<category><![CDATA[ASA]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/?p=1285</guid>
		<description><![CDATA[Cisco ASA has an built-in dhcp-server that can become handy in some situations. Corporate deployments almost certainly contains one or more servers and especially when it comes to Windows networks I wouldn&#8217;t recommend anything else than a proper server-based dhcp-server. In smaller implementations however, the youngest sibling in the ASA family, 5505 is often the [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Cisco ASA has an built-in dhcp-server that can become handy in some situations. Corporate deployments almost certainly contains one or more servers and especially when it comes to Windows networks I wouldn&#8217;t recommend anything else than a proper server-based dhcp-server.</p>
<p>In smaller implementations however, the youngest sibling in the ASA family, 5505 is often the only network equipment on-site and for those purposes the dhcp-server functionality is quite neat.</p>
<p>One feature I miss a lot in ASA dhcp-server is the ability to do static leases. I often get questions like</p>
<p>&#8220;We use dhcp for simple mobility of our laptops and uses the ASA dhcp-server at remote locations. But I wanna permit or deny certain traffic for one specific computer, and want to make sure that he/she always gets the same IP. How do I solve this? And by the way, don&#8217;t tell me to configure that computer with static IP because then it doesn&#8217;t work when the user moves the pc to another network.&#8221;</p>
<p>And the simple answer to this is: Sorry, you can&#8217;t. Because ASA dhcp-server doesnt do static leases.</p>
<p>Cisco, can we have this feature pretty please with sugar on top?</p>
<div class="shr-publisher-1285"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/missing-feature-cisco-asa-dhcp-static-leases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASA-generated traffic &#8211; part2</title>
		<link>http://nat0.net/asa-generated-traffic-part2/</link>
		<comments>http://nat0.net/asa-generated-traffic-part2/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 08:56:59 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[Cisco ASA]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASA]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/?p=1256</guid>
		<description><![CDATA[&#160; In my previous post I successfully made ASA-generated traffic go into an VPN-tunnel. The catch with that was that the traffic (in my case: radius) was sources from the interface closest to the destination (outside) and I had to add that traffic to my crypto access-list to make it into the tunnel. This case [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>&nbsp;</p>
<p>In my <a href="http://blogg.kvistofta.nu/asa-generated-traffic-thru-lan2lan-tunnel/">previous post</a> I successfully made ASA-generated traffic go into an VPN-tunnel. The catch with that was that the traffic (in my case: radius) was sources from the interface closest to the destination (outside) and I had to add that traffic to my crypto access-list to make it into the tunnel.</p>
<p>This case inducted an discussion on my favorite ASA mailing-list <a href="http://onlinestudylist.com/archives/ccie_security/2011-April/thread.html#26125">OSL</a> and with good help from Tyson and the rest of the guys there I understood what I describes  below.</p>
<p>Basic setup:</p>
<p><a href="http://nat0.net/wp-content/uploads/2011/04/asaradius2.png"><img class="alignnone size-full wp-image-1271" title="asaradius2" src="http://nat0.net/wp-content/uploads/2011/04/asaradius2.png" alt="" width="518" height="185" /></a><br />
<code><br />
interface Vlan1<br />
nameif inside<br />
security-level 100<br />
ip address 10.10.10.1 255.255.255.0<br />
!<br />
interface Vlan2<br />
nameif outside<br />
security-level 0<br />
ip address 1.2.3.4 255.255.255.0<br />
!<br />
interface Ethernet0/0<br />
switchport access vlan 2<br />
!<br />
interface Ethernet0/1<br />
!<br />
route outside 0.0.0.0 0.0.0.0 1.2.3.1 1<br />
!<br />
aaa-server RAD protocol radius<br />
aaa-server RAD (inside) host 5.6.7.8<br />
key cisco<br />
!<br />
</code></p>
<p>If I wanna talk to the outside radius-server using my outside ip-address I would simply change the &#8220;aaa-server RAD (inside) host 5.6.7.8&#8243; above to &#8220;aaa-server RAD (outside) host 5.6.7.8&#8243;. That is what I did in the previous post and it works. In that post I also prooved that the above config doesn´t work. If the radius-server is on one interface (in my case outside) and the radius-definition points to another interface (inside) there will be no outbound radius traffic generated. Let´s see it again:<br />
<code>ciscoasa(config)#capture inside type raw-data interface inside<br />
ciscoasa(config)#capture outside type raw-data interface outside<br />
ciscoasa(config)#<br />
ciscoasa(config)#test aaa-server authen RAD host 5.6.7.8 user user pass pass<br />
INFO: Attempting Authentication test to IP address &lt;5.6.7.8&gt; (timeout: 12 seconds)<br />
ERROR: Authentication Server not responding: No error<br />
ciscoasa(config)#<br />
ciscoasa(config)# sh capture inside</p>
<p>0 packet captured</p>
<p>0 packet shown<br />
ciscoasa(config)# sh capture outside</p>
<p>2 packets captured</code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><code> 1: 23:02:38.662838 802.1Q vlan#2 P0 192.168.2.10.138 &gt; 192.168.2.255.138:  udp 201<br />
2: 23:11:22.075618 802.1Q vlan#2 P0 192.168.2.10.138 &gt; 192.168.2.255.138:  udp 216<br />
2 packets shown<br />
ciscoasa(config)# </code></p>
<p>But there is a solution! (Thanks OSL!) And the solution is within the &#8220;management-access&#8221; command. This is what is written in the configuration guide about the command:</p>
<blockquote><p><strong>Managing the Security Appliance on a Different Interface from the VPN Tunnel Termination Interface</strong></p>
<p>If your IPSec VPN tunnel terminates on one interface, but you want to manage the adaptive security appliance by accessing a different interface, then enter the following command:</p>
<p><code>hostname(config)# management access management_interface</code></p>
<p>where management_interface specifies the name of the management interface you want to access when entering the security appliance from another interface. For example, if you enter the adaptive security appliance from the outside interface, this command lets you connect to the inside interface using Telnet; or you can ping the inside interface when entering from the outside interface.</p>
<p>You can define only one management-access interface.</p></blockquote>
<p>So, what has this to do with radius-packets? The undocumented secret here is that this command is also used to define a source-interface for outbound packets, for example radius-dito. Look. We add this command:</p>
<p><code>ciscoasa(config)# management-access inside<br />
ciscoasa(config)# </code></p>
<p>Next we reset our capture buffers:</p>
<p><code>ciscoasa(config)# clear capture inside<br />
ciscoasa(config)# clear capture outside<br />
ciscoasa(config)#<br />
</code></p>
<p>&#8230;and generates radius-packets&#8230;</p>
<p><code><br />
ciscoasa(config)# test aaa-server authen RAD host 5.6.7.8 user user pass pass<br />
INFO: Attempting Authentication test to IP address &lt;5.6.7.8&gt; (timeout: 12 seconds)<br />
ERROR: Authentication Server not responding: No error<br />
ciscoasa(config)# </code></p>
<p>Please ignore the fact that there is no answer. There is simply no radius-server in this lab&#8230;But, what happened in our captures.</p>
<p><code>ciscoasa(config)# sh capture inside</p>
<p>0 packet captured</p>
<p>0 packet shown<br />
ciscoasa(config)# sh capture outside</p>
<p>2 packets captured</p>
<p></code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><code> 1: 23:49:06.205433 802.1Q vlan#2 P0 10.10.10.1.1025 &gt; 5.6.7.8.1645:  udp 62<br />
2: 23:50:39.478994 802.1Q vlan#2 P0 192.168.2.10.138 &gt; 192.168.2.255.138:  udp 201<br />
2 packets shown<br />
ciscoasa(config)#<br />
</code></p>
<p>Hey! Look at that packet, #1 on outside! It is sources from out inside ip, destined to our radius-server on outside, and sent out on our outside interface. And it is a radius-packet (udp 1645). Cool!</p>
<p><strong>Conclusion: With the management-access interface you can select the source ip for packets generated from the ASA, for example radius.</strong></p>
<p>So we have 3 different parameters for this traffic that controls the source address and/or destination interface:</p>
<ol>
<li>Routing-entry. In our example 5.6.7.8 is beyond another router and we have an outbound default route. Without that the device would never know in which direction to send the traffic.</li>
<li>The interface-relation in the aaa-server-command. See below.</li>
<li>The &#8220;management-interface&#8221;-command that can be used to configure the source ip.</li>
</ol>
<p>But how about #2. That interface-definition bothered me already in my last post. Why does it exist?</p>
<p>&nbsp;</p>
<p>It surely isn´t used to define the source interface/address because above I proove that it is the addition of the &#8220;management-access&#8221;-command that makes all the differ. Before adding that there was no packets sent out on outside when the radius-server was defined as &#8220;(inside)&#8221;.</p>
<p>And at the same time, it is not being used to define the outbound interface. This is being done with the routing-table. And as we see above stating (&#8220;inside&#8221;) doesn´t make the packet go out on interface inside.</p>
<p><strong>So, my officially question to Cisco is: Why is there an mandatory parameter to the aaa-server command that makes me define &#8220;<em>the name of the network interface where the designated AAA server is accessed</em>&#8220;? </strong></p>
<p><strong><br />
</strong></p>
<div class="shr-publisher-1256"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/asa-generated-traffic-part2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ASA-generated traffic thru Lan2Lan-tunnel?</title>
		<link>http://nat0.net/asa-generated-traffic-thru-lan2lan-tunnel/</link>
		<comments>http://nat0.net/asa-generated-traffic-thru-lan2lan-tunnel/#comments</comments>
		<pubDate>Fri, 15 Apr 2011 12:58:19 +0000</pubDate>
		<dc:creator>Jimmy Larsson</dc:creator>
				<category><![CDATA[Cisco ASA]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ASA]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://blogg.kvistofta.nu/?p=1229</guid>
		<description><![CDATA[Recently I got an request from a Cisco ASA customer who wanted to authenticate VPN-users with a remote Radius-server. Using Radius is piece of cake, but those of us that have been working with Cisco Pix/ASA for a while know that traffic to/from the box is no nearly treated the same way as traffic going [...]]]></description>
			<content:encoded><![CDATA[<p></p><!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Recently I got an request from a Cisco ASA customer who wanted to authenticate VPN-users with a remote Radius-server. Using Radius is piece of cake, but those of us that have been working with Cisco Pix/ASA for a while know that traffic to/from the box is no nearly treated the same way as traffic going thru the box. And this customer wanted to use a Radius-server via an Lan2Lan-tunnel that terminates in the same ASA-box.</p>
<p>So. Does it work? First of all I built a small little lab with 2 ASA:s connected back to back and an Lan2Lan-tunnel connecting the both inside networks. Plain vanilla.</p>
<p>Topology:<br />
<img class="alignnone" title="L2L-tunnel" src="http://www.gliffy.com/pubdoc/2619295/L.png" alt="" width="484" height="181" /></p>
<p>Relevant parts of ASA1 config:<br />
<code><br />
ASA Version 8.2(1)<br />
!<br />
hostname ASA1<br />
!<br />
interface Vlan1<br />
nameif inside<br />
security-level 100<br />
ip address 192.168.1.234 255.255.255.0<br />
!<br />
interface Vlan2<br />
nameif outside<br />
security-level 0<br />
ip address 192.168.169.1 255.255.255.0<br />
!<br />
interface Ethernet0/0<br />
switchport access vlan 2<br />
!<br />
interface Ethernet0/1<br />
!<br />
access-list crypto-acl extended permit ip 192.168.1.0 255.255.255.0 192.168.2.0 255.255.255.0<br />
access-list OUTSIDE extended permit ip any any<br />
no nat-traversal<br />
route outside 0.0.0.0 0.0.0.0 192.168.169.2 1<br />
!<br />
crypto ipsec transform-set tset esp-aes esp-sha-hmac<br />
!<br />
crypto map cmap-outside 10 match address crypto-acl<br />
crypto map cmap-outside 10 set peer 192.168.169.2<br />
crypto map cmap-outside 10 set transform-set tset<br />
crypto map cmap-outside interface outside<br />
crypto isakmp enable outside<br />
crypto isakmp policy 10<br />
authentication pre-share<br />
encryption aes<br />
hash sha<br />
group 5<br />
lifetime 86400<br />
tunnel-group 192.168.169.2 type ipsec-l2l<br />
tunnel-group 192.168.169.2 ipsec-attributes<br />
pre-shared-key cisco<br />
!<br />
</code></p>
<p>And ASA2:<br />
<code>ASA Version 8.2(1)<br />
!<br />
hostname ASA2<br />
!<br />
interface Vlan1<br />
nameif inside<br />
security-level 100<br />
ip address 192.168.2.1 255.255.255.0<br />
!<br />
interface Vlan2<br />
nameif outside<br />
security-level 0<br />
ip address 192.168.169.2 255.255.255.0<br />
!<br />
interface Ethernet0/0<br />
switchport access vlan 2<br />
!<br />
interface Ethernet0/1<br />
!<br />
access-list crypto-acl extended permit ip 192.168.2.0 255.255.255.0 192.168.1.0 255.255.255.0<br />
!<br />
crypto ipsec transform-set tset esp-aes esp-sha-hmac<br />
!<br />
crypto map cmap-outside 10 match address crypto-acl<br />
crypto map cmap-outside 10 set peer 192.168.169.1<br />
crypto map cmap-outside 10 set transform-set tset<br />
crypto map cmap-outside interface outside<br />
crypto isakmp enable outside<br />
!<br />
crypto isakmp policy 10<br />
authentication pre-share<br />
encryption aes<br />
hash sha<br />
group 5<br />
lifetime 86400<br />
!<br />
tunnel-group 192.168.169.1 type ipsec-l2l<br />
tunnel-group 192.168.169.1 ipsec-attributes<br />
pre-shared-key cisco<br />
</code></p>
<p>So, this configuration connects the inside networks over the unsecure network 192.168.169.0/24. But what if ASA1 wanna talk radius to the ACS-server 192.168.2.10 beyond ASA2?</p>
<p>&nbsp;</p>
<p>First of all, the way of configuring an aaa-server in ASA is in my opinion a bit confusing. It´s all about pointing out the server ip-address together with a radius key. But if we look at the syntax for defining a radius-server we see that we also need to define an interface. Whatfor?</p>
<p><code><br />
ASA1(config)# aaa-server GROUPTAG protocol radius<br />
ASA1(config-aaa-server-group)# aaa-server GROUPTAG ?<br />
configure mode commands/options:<br />
(                    Open parenthesis for the name of the network interface<br />
where the designated AAA server is accessed<br />
deadtime             Specify the amount of time that will elapse between the<br />
disabling of the last server in the group and the<br />
subsequent re-enabling of all servers<br />
host                 Enter this keyword to specify the IP address for the<br />
server<br />
max-failed-attempts  Specify the maximum number of failures that will be<br />
allowed for any server in the group before that server<br />
is deactivated<br />
protocol             Enter the protocol for a AAA server group<br />
ASA1(config-aaa-server-group)# aaa-server GROUPTAG<br />
</code></p>
<p>So, we need to specify an interface. The reason that I think this is a bit weird is that there should already be a route in the routing-table for our radius-server 192.168.2.10. If nothing else, there is probably an default route, and in our case there is definately one. So why stating that &#8220;in order to reach 192.168.2.10 go via interface outside&#8221; in the radius-definition? I have no idea. A few moment I thought of this not as a way to specify outbound interface but source interface. What if I wanna send the radius packets to outside (according to routing table, with or without an vpn-tunnel) but use the inside interface ip as source? That would be cool, because then I didn´t have to add anything in the crypto acl (see below). This is still untested, but when we look at the syntax help above it certanly states <em>&#8220;for the name of the network interface where the designated AAA server is accessed&#8221;</em>, which of course is outside in my example.</p>
<p>So, lets add the radius definition. And what else? We need to add traffic to the crypto acl for making it go into the vpn tunnel. And since it is traffic from the ASA1 <strong>outside</strong> interface to the host 192.18.2.10 behind ASA2, that is what we add:</p>
<p>ASA1 &#8211; addition:<br />
<code><br />
access-list crypto-acl extended permit ip host 192.168.169.1 host 192.168.2.10<br />
aaa-server RAD protocol radius<br />
aaa-server RAD (outside) host 192.168.2.10<br />
key cisco<br />
</code></p>
<p>and ASA2 &#8211; addition:<br />
<code><br />
access-list crypto-acl extended permit ip host 192.168.2.10 host 192.168.169.1<br />
</code></p>
<p>And, as a proof that this works we use the &#8220;test aaa&#8221;-command to generate an radius authentication request from ASA1 to the Radius-server.</p>
<p><code><br />
ASA1(config)# test aaa authentication RAD host 192.168.2.10 username user pass$<br />
INFO: Attempting Authentication test to IP address &lt;192.168.2.10&gt; (timeout: 12 seconds)<br />
INFO: Authentication Successful<br />
ASA1(config)#<br />
ASA1(config)#<br />
ASA1(config)# sh crypto ipsec sa<br />
interface: outside<br />
Crypto map tag: cmap-outside, seq num: 10, local addr: 192.168.169.1</code></p>
<p><code> </code></p>
<p><code>access-list crypto-acl permit ip host 192.168.169.1 host 192.168.2.10<br />
local ident (addr/mask/prot/port): (192.168.169.1/255.255.255.255/0/0)<br />
remote ident (addr/mask/prot/port): (192.168.2.10/255.255.255.255/0/0)<br />
current_peer: 192.168.169.2</code></p>
<p><code> </code></p>
<p><code>#pkts encaps: 1, #pkts encrypt: 1, #pkts digest: 1<br />
#pkts decaps: 1, #pkts decrypt: 1, #pkts verify: 1<br />
#pkts compressed: 0, #pkts decompressed: 0<br />
#pkts not compressed: 1, #pkts comp failed: 0, #pkts decomp failed: 0<br />
#pre-frag successes: 0, #pre-frag failures: 0, #fragments created: 0<br />
#PMTUs sent: 0, #PMTUs rcvd: 0, #decapsulated frgs needing reassembly: 0<br />
#send errors: 0, #recv errors: 0</code></p>
<p><code>local crypto endpt.: 192.168.169.1, remote crypto endpt.: 192.168.169.2</p>
<p>path mtu 1500, ipsec overhead 74, media mtu 1500<br />
current outbound spi: 28DAEB5B</p>
<p></code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><code> inbound esp sas:<br />
spi: 0x53870178 (1401356664)<br />
transform: esp-aes esp-sha-hmac no compression<br />
in use settings ={L2L, Tunnel, }<br />
slot: 0, conn_id: 24576, crypto-map: cmap-outside<br />
sa timing: remaining key lifetime (kB/sec): (3914999/28682)<br />
IV size: 16 bytes<br />
replay detection support: Y<br />
Anti replay bitmap:<br />
0x00000000 0x00000003<br />
outbound esp sas:<br />
spi: 0x28DAEB5B (685435739)<br />
transform: esp-aes esp-sha-hmac no compression<br />
in use settings ={L2L, Tunnel, }<br />
slot: 0, conn_id: 24576, crypto-map: cmap-outside<br />
sa timing: remaining key lifetime (kB/sec): (3914999/28682)<br />
IV size: 16 bytes<br />
replay detection support: Y<br />
Anti replay bitmap:<br />
0x00000000 0x00000001<br />
</code></p>
<p>So, what happens if we follow my idea that the interface-relation within the radius-configuration was <strong>not</strong> a way to define outbound interface but instead a way to define source address for our radius packets. Well, let´s try. We have already a working tunnel between our LAN:s, so if we reconfigure ASA1 to use inside instead, that traffic (from 192.168.1.234 to 192.168.2.10) should already be included in our proxy acl so nothing else should be needed. Lets try:</p>
<p><code><br />
ASA1(config)# sh run aaa-server<br />
aaa-server RAD protocol radius<br />
aaa-server RAD (<strong>outside</strong>) host 192.168.2.10<br />
key cisco<br />
aaa-server GROUPTAG protocol radius<br />
ASA1(config)#<br />
ASA1(config)# clear configure aaa-server RAD<br />
ASA1(config)#<br />
ASA1(config)# aaa-server RAD proto radius<br />
ASA1(config-aaa-server-group)# aaa-server RAD (<strong>inside</strong>) host 192.168.2.10<br />
ASA1(config-aaa-server-host)# key cisco<br />
ASA1(config-aaa-server-host)#<br />
ASA1(config-aaa-server-host)# end<br />
ASA1#<br />
</code></p>
<p>ok, let´s give it a shot!<br />
<code>ASA1# test aaa authentication RAD host 192.168.2.10 username user password cis$<br />
INFO: Attempting Authentication test to IP address &lt;192.168.2.10&gt; (timeout: 12 seconds)<br />
ERROR: Authentication Server not responding: No error<br />
ASA1#<br />
ASA1#<br />
ASA1# test aaa authentication RAD host 192.168.2.10 username user password cis$<br />
INFO: Attempting Authentication test to IP address &lt;192.168.2.10&gt; (timeout: 12 seconds)<br />
ERROR: Authentication Server not responding: No error<br />
ASA1#<br />
ASA1# test aaa authentication RAD host 192.168.2.10 username user password cis$<br />
INFO: Attempting Authentication test to IP address &lt;192.168.2.10&gt; (timeout: 12 seconds)<br />
ERROR: Authentication Server not responding: No error<br />
ASA1#<br />
</code></p>
<p>It obviously doesnt work. But what happened?<br />
<code>ASA1# sh crypto ipsec sa<br />
There are no ipsec sas<br />
ASA1# </code></p>
<p>Ok, so no tunnels triggered. But this really mean that the radius packets were sent to inside instead of outside? Lets capture packets!<br />
<code>ASA1# capture OUTSIDE interface outside<br />
ASA1# capture INSIDE interface inside<br />
ASA1#<br />
ASA1# test aaa authentication RAD host 192.168.2.10 username user password cis$<br />
INFO: Attempting Authentication test to IP address &lt;192.168.2.10&gt; (timeout: 12 seconds)<br />
ERROR: Authentication Server not responding: No error<br />
ASA1#<br />
ASA1#<br />
ASA1# sh capture OUTSIDE</code></p>
<p><code> </code></p>
<p><code>0 packet captured</code></p>
<p><code> </code></p>
<p><code>0 packet shown<br />
ASA1# sh capture INSIDE</code></p>
<p><code>17 packets captured</p>
<p></code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><code> 1: 03:45:53.705194 802.1Q vlan#1 P0 arp who-has 192.168.1.213 tell 192.168.1.1<br />
2: 03:45:58.704019 802.1Q vlan#1 P0 arp who-has 192.168.1.213 tell 192.168.1.1<br />
3: 03:46:03.702844 802.1Q vlan#1 P0 arp who-has 192.168.1.213 tell 192.168.1.1<br />
4: 03:46:03.968089 802.1Q vlan#1 P0 arp who-has 192.168.1.213 tell 192.168.1.1<br />
5: 03:46:05.702340 802.1Q vlan#1 P0 arp who-has 192.168.1.213 tell 192.168.1.1<br />
6: 03:46:06.702112 802.1Q vlan#1 P0 arp who-has 192.168.1.213 tell 192.168.1.1<br />
7: 03:46:08.335904 802.1Q vlan#1 P0 192.168.1.203.57621 &gt; 255.255.255.255.57621:  udp 44<br />
8: 03:46:10.277665 802.1Q vlan#1 P0 192.168.1.72.17500 &gt; 255.255.255.255.17500:  udp 176<br />
9: 03:46:10.278244 802.1Q vlan#1 P0 192.168.1.72.17500 &gt; 192.168.1.255.17500:  udp 176<br />
10: 03:46:10.701150 802.1Q vlan#1 P0 arp who-has 192.168.1.213 tell 192.168.1.1<br />
11: 03:46:14.292892 802.1Q vlan#1 P0 192.168.1.107.138 &gt; 192.168.1.255.138:  udp 201<br />
12: 03:46:15.699976 802.1Q vlan#1 P0 arp who-has 192.168.1.213 tell 192.168.1.1<br />
13: 03:46:15.806858 802.1Q vlan#1 P0 192.168.1.73.138 &gt; 192.168.1.255.138:  udp 201<br />
14: 03:46:17.743522 802.1Q vlan#1 P0 192.168.1.203.17500 &gt; 255.255.255.255.17500:  udp 172<br />
15: 03:46:17.745795 802.1Q vlan#1 P0 192.168.1.203.17500 &gt; 255.255.255.255.17500:  udp 172<br />
16: 03:46:17.746146 802.1Q vlan#1 P0 192.168.1.203.17500 &gt; 192.168.1.255.17500:  udp 172<br />
17: 03:46:17.746512 802.1Q vlan#1 P0 192.168.1.203.17500 &gt; 255.255.255.255.17500:  udp 172<br />
17 packets shown<br />
ASA1#<br />
ASA1#<br />
</code></p>
<p>What we see above is that there is absolutely no packets at all seen on ASA1 outside interface. On inside interface we see various packets (because that is my home network), but no radius packets.</p>
<p>So, what are our conclusions?</p>
<ul>
<li>Traffic generated from the ASA can very well be included in our Lan2Lan-tunnel so that for example the ASA can have a secure connection to an remote authentication server.</li>
<li>The interface-definition in the aaa-server command has nothing to do with source addresses. As a matter of fact, you cannot configure a source interface/address for radius-traffic the way you can do in an IOS-router.</li>
<li>The interface-definition shouldnt really be needed. The way to the remote server is pointed out by the routing table. The interface-definition must point the same direction as the routing-table, otherwise the ASA won´t know where to send the packets.</li>
<li>I was wrong</li>
<li>I can tell the customer that we can do radius over vpn.</li>
</ul>
<p>am I missing something here? Please don´t hesitate to comment!</p>
<p>&nbsp;</p>
<p><em>Update: I <strong>was </strong>missing something. Look at my <a href="http://blogg.kvistofta.nu/asa-generated-traffic-part2/">update post</a>&#8230;</em></p>
<p>&nbsp;</p>
<p>/Jimmy</p>
<div class="shr-publisher-1229"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://nat0.net/asa-generated-traffic-thru-lan2lan-tunnel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

