<?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>The Cruft Of My Brain &#187; iphone ipad vpn cisco ios</title>
	<atom:link href="http://www.thecruftofmybrain.com/tag/iphone-ipad-vpn-cisco-ios/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecruftofmybrain.com</link>
	<description>Purging my mental dust bunnies</description>
	<lastBuildDate>Sat, 17 Dec 2011 16:54:18 +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>iPhone VPN and Cisco IOS, Part2</title>
		<link>http://www.thecruftofmybrain.com/2010/05/05/iphone-vpn-and-cisco-ios-part2/</link>
		<comments>http://www.thecruftofmybrain.com/2010/05/05/iphone-vpn-and-cisco-ios-part2/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:58:52 +0000</pubDate>
		<dc:creator>scott</dc:creator>
				<category><![CDATA[Cisco Routing and Switching]]></category>
		<category><![CDATA[Cruft]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[iphone ipad vpn cisco ios]]></category>

		<guid isPermaLink="false">http://www.thecruftofmybrain.com/?p=495</guid>
		<description><![CDATA[I previously posted about some luck I had getting IPSEC VPN to work from my iPhone to my IOS router/firewall. That post is now kind of useless because the source blog disappeared about a year ago. So, in order to make this useful again I&#8217;m posting my full IOS code (obfuscated for obvious reasons). Change [...]]]></description>
			<content:encoded><![CDATA[<p>I previously <a href="http://www.thecruftofmybrain.com/2009/02/01/iphone-vpn-and-cisco-ios/">posted about some luck</a> I had getting IPSEC VPN to work from my iPhone to my IOS router/firewall.  That post is now kind of useless because the source blog disappeared about a year ago.  So, in order to make this useful again I&#8217;m posting my full IOS code (obfuscated for obvious reasons).  Change the IP addresses and the group name and password and you should be good to go.  This uses the new(ish) method in IOS of zone based firewall.  It&#8217;s overly complex and really hard to parse for anything remotely complicated but it&#8217;s what I&#8217;m working with.  You&#8217;ll notice I used the SDM for most of the config.  Yep, I&#8217;m lame and I&#8217;m not afraid to admit it.  All of that zone config typing would have been a pain in the butt!  Also, be sure to use a pool that is different from your &#8220;inside&#8221; subnet.  Won&#8217;t work otherwise.  Also, it should be obvious but this config uses local users so you need to add at least one of those.</p>
<p>Keep in mind this will all change when iPhone OS4 comes out as it&#8217;s supposed to support SSL VPN&#8217;s.  Finally.  The IPSEC works perfectly fine for now though.  I&#8217;ve not tested this on my iPad yet since I haven&#8217;t had it out of the house&#8230;and it&#8217;s not a 3G model.  Don&#8217;t see why it wouldn&#8217;t work though.</p>
<p>And now the code:</p>
<p><code>aaa authentication login sdm_vpn_xauth_ml_2 local<br />
aaa authorization network sdm_vpn_group_ml_2 local</p>
<p>crypto isakmp policy 2<br />
 encr aes 256<br />
 authentication pre-share<br />
 group 2</p>
<p>crypto isakmp client configuration group mygroupname<br />
 key something_goes_here<br />
 dns 192.168.x.x<br />
 pool SDM_POOL_2<br />
 include-local-lan<br />
 netmask 255.255.255.0<br />
crypto isakmp profile sdm-ike-profile-1<br />
   match identity group mygroupname<br />
   client authentication list sdm_vpn_xauth_ml_2<br />
   isakmp authorization list sdm_vpn_group_ml_2<br />
   client configuration address respond<br />
   virtual-template 2</p>
<p>crypto ipsec transform-set aes-transform esp-aes 256 esp-sha-hmac<br />
!<br />
crypto ipsec profile SDM_Profile1<br />
 set transform-set aes-transform<br />
 set isakmp-profile sdm-ike-profile-1</p>
<p>class-map type inspect match-any SDM_AH<br />
 match access-group name SDM_AH<br />
class-map type inspect match-any SDM_ESP<br />
 match access-group name SDM_ESP<br />
class-map type inspect match-any SDM_EASY_VPN_SERVER_TRAFFIC<br />
 match protocol isakmp<br />
 match protocol ipsec-msft<br />
 match class-map SDM_AH<br />
 match class-map SDM_ESP<br />
class-map type inspect match-all SDM_EASY_VPN_SERVER_PT<br />
 match class-map SDM_EASY_VPN_SERVER_TRAFFIC</p>
<p>policy-map type inspect sdm-permit<br />
 class type inspect SDM_EASY_VPN_SERVER_PT<br />
  pass<br />
 class class-default</p>
<p>zone security ezvpn-zone</p>
<p>zone-pair security sdm-zp-ezvpn-out1 source ezvpn-zone destination out-zone<br />
 service-policy type inspect sdm-permit-ip<br />
zone-pair security sdm-zp-out-ezpn1 source out-zone destination ezvpn-zone<br />
 service-policy type inspect sdm-permit-ip<br />
zone-pair security sdm-zp-ezvpn-in2 source ezvpn-zone destination in-zone<br />
 service-policy type inspect sdm-permit-ip<br />
zone-pair security sdm-zp-ezvpn-in1 source ezvpn-zone destination dmz-zone<br />
 service-policy type inspect sdm-permit-ip<br />
zone-pair security sdm-zp-in-ezvpn2 source in-zone destination ezvpn-zone<br />
 service-policy type inspect sdm-permit-ip<br />
zone-pair security sdm-zp-in-ezvpn1 source dmz-zone destination ezvpn-zone<br />
 service-policy type inspect sdm-permit-ip</p>
<p>interface Virtual-Template2 type tunnel<br />
 ip unnumbered FastEthernet0<br />
 zone-member security ezvpn-zone<br />
 tunnel mode ipsec ipv4<br />
 tunnel protection ipsec profile SDM_Profile1</p>
<p>ip local pool SDM_POOL_2 192.168.y.y 192.168.y.z</p>
<p>ip access-list extended SDM_AH<br />
 remark SDM_ACL Category=1<br />
 permit ahp any any<br />
ip access-list extended SDM_ESP<br />
 remark SDM_ACL Category=1<br />
 permit esp any any</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thecruftofmybrain.com/2010/05/05/iphone-vpn-and-cisco-ios-part2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

