{"id":3834,"date":"2017-08-08T07:39:04","date_gmt":"2017-08-08T07:39:04","guid":{"rendered":"http:\/\/www.tsls.co.uk\/?p=3834"},"modified":"2024-04-22T08:57:28","modified_gmt":"2024-04-22T08:57:28","slug":"cisco-asa-routebase-ike-v2-configuration","status":"publish","type":"post","link":"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/","title":{"rendered":"CISCO ASA RouteBase IKE V2 configuration"},"content":{"rendered":"<p>As of June 2017 update to the CISCO IOS you can now establish RouteBased VPN&#8217;s into Azure using VTI and IKEv2<\/p>\n<p>RouteBased Connection was previously known as Dynamic Routing.<\/p>\n<p>Minimum IOS Version: 9.8(1) Released 15th May 2017 (https:\/\/software.cisco.com\/download\/release.html?mdfid=286285782&#038;softwareid=280775065&#038;release=9.8.1)<br \/>\nRecommended IOS Version in a HA configuration: 9.8(1.5) (known bug in previous versions)  or 9.8(2) released August 2017<\/p>\n<p>Example below will create an Azure VpnGw1 VPN using an IPSec Custom Policy with BGP enabled (on the Azure End)<\/p>\n<p>Below is the config sample for the CISCO ASA:<\/p>\n<p><code><br \/>\n crypto ikev2 policy 3<br \/>\n crypto ikev2 policy 3<br \/>\n encryption aes-256<br \/>\n integrity sha<br \/>\n group 2<br \/>\n prf sha<br \/>\n lifetime seconds 28000 <\/p>\n<p>crypto ipsec ikev2 ipsec-proposal PROP-AZURE-PRD<br \/>\n  protocol esp encryption aes-256<br \/>\n  protocol esp integrity sha-1 <\/p>\n<p>crypto ipsec profile PROF-AZURE-PRD<br \/>\n  set ikev2 ipsec-proposal PROP-AZURE-PRD<br \/>\n  set pfs group24<br \/>\n  set security-association lifetime kilobytes 102400000<br \/>\n  set security-association lifetime seconds 27000 <\/p>\n<p>interface Tunnel 1<br \/>\n  nameif VPN-AZURE-PRD <\/p>\n<p>  ip address 10.255.255.1 255.255.255.0<br \/>\n  tunnel source interface outside<br \/>\n  tunnel destination \"Azure VPN Public IP\"<br \/>\n  tunnel mode ipsec ipv4<br \/>\n  tunnel protection ipsec profile PROF-AZURE-PRD <\/p>\n<p>tunnel-group \"Azure VPN Public IP\" type ipsec-l2l<br \/>\ntunnel-group \"Azure VPN Public IP\" ipsec-attributes<br \/>\n ikev2 remote-authentication pre-shared-key xxxxxx<br \/>\n ikev2 local-authentication pre-shared-key xxxxxx <\/p>\n<p>route VPN-AZURE-PRD \"Azure Address Space IP\" \"Azure Address Space Subnet\" \"Azure VPN Public IP\"<br \/>\nroute VPN-AZURE-PRD 10.10.0.0 255.255.0.0 \"Azure VPN Public IP\"<br \/>\n<\/code><\/p>\n<p>Below is the powershell for an ARM based Azure VPN:<br \/>\n<code><br \/>\n#based on https:\/\/docs.microsoft.com\/en-us\/azure\/vpn-gateway\/vpn-gateway-connect-multiple-policybased-rm-ps<\/p>\n<p>Login-AzureRmAccount<br \/>\nSelect-AzureRmSubscription -SubscriptionName \"Your Subscription Name\" #Update Accordingly<br \/>\n$VirtualNetworkName = \"Your VNET Name\" #Update Accordingly<br \/>\n$ResourceGroup = \"Your Resource Group Name\" #Update Accordingly<br \/>\n$Location = \"UK South\" #Update Accordingly<br \/>\n$LocalGatewayName = \"HeadOfficeVPN\" #Update Accordingly<br \/>\n$HeadOfficeVPNIP = \"Local VPN Public IP\" #Update Accordingly<br \/>\n$LocalAddressPrefix = @(\"172.16.0.0\/24\",\"172.17.0.0\/23\",\"10.255.255.0\/24\") #your local network ranges<br \/>\n$GatewayIpName = \"Vnetgwpublicip1\" #Update Accordingly<br \/>\n$GatewaySubnetName = \"GatewaySubnet\"<br \/>\n$GatewayIpConfigName = \"Vnetgwconfig1\" #Update Accordingly<br \/>\n$GatewayVPNType = \"RouteBased\" #Update Accordingly<br \/>\n$GatewaySKU = \"VpnGw1\" #Update Accordingly<br \/>\n$GatewayName = \"VNetgw1\" #Update Accordingly<br \/>\n$GatewayConnectionName = \"VNetgw1toHeadOfficeVPN\" #Update Accordingly<br \/>\n$PreSharedKey = \"**************\" #Your PreShared Key <\/p>\n<p>#Create Local Network Gateway<br \/>\nNew-AzureRmLocalNetworkGateway -Name $LocalGatewayname `<br \/>\n  -Location \"$location\" -AddressPrefix $LocalAddressPrefix `<br \/>\n  -GatewayIpAddress $HeadOfficeVPNIP -ResourceGroupName $ResourceGroup<br \/>\n#Create Public IP Address<br \/>\n   $ipaddress = New-AzureRmPublicIpAddress -Name $GatewayIpName `<br \/>\n -ResourceGroupName $ResourceGroup -Location $location `<br \/>\n -AllocationMethod Dynamic<\/p>\n<p>#Create Gateway IP addressing configuration<br \/>\n$subnet = Get-AzureRmVirtualNetworkSubnetConfig -Name $GatewaySubnetName -VirtualNetwork (Get-AzureRmVirtualNetwork -Name $VirtualNetworkName -ResourceGroupName $ResourceGroup)<br \/>\n$gwipconfig = New-AzureRmVirtualNetworkGatewayIpConfig -Name $GatewayIpConfigName -SubnetId $subnet.id -PublicIpAddressId $ipaddress.id<\/p>\n<p>#Create the VPN gateway<\/p>\n<p>New-AzureRmVirtualNetworkGateway -Name $GatewayName -ResourceGroupName $ResourceGroup -Location $location -GatewaySKU $GatewaySKU -GatewayType Vpn -IpConfigurations $gwipconfig -EnableBgp $true -VpnType $GatewayVPNType<\/p>\n<p>#IPSec Custom Policy<\/p>\n<p>$ipsecpolicy = New-AzureRmIpsecPolicy -IkeEncryption AES256 -IkeIntegrity SHA1 -DhGroup DHGroup2 -IpsecEncryption AES256 -IpsecIntegrity SHA1 -PfsGroup PFS24 -SALifeTimeSeconds 27000 -SADataSizeKilobytes 102400000<\/p>\n<p>#Gateway Name<\/p>\n<p>$vnet1gw = Get-AzureRmVirtualNetworkGateway -Name $GatewayName  -ResourceGroupName $ResourceGroup<br \/>\n$LocalGatewayName1 = Get-AzureRmLocalNetworkGateway  -Name $LocalGatewayName -ResourceGroupName $ResourceGroup<\/p>\n<p>New-AzureRmVirtualNetworkGatewayConnection -Name $GatewayConnectionName -ResourceGroupName $ResourceGroup -VirtualNetworkGateway1 $vnet1gw -LocalNetworkGateway2 $LocalGatewayName1 -Location $Location -ConnectionType IPsec -UsePolicyBasedTrafficSelectors $True -IpsecPolicies $ipsecpolicy -SharedKey $PreSharedKey<\/p>\n<p>#Get GatewayPublicIP<\/p>\n<p>Get-azurermpublicipaddress -name $gatewayipname -resourcegroup $resourcegroup<\/p>\n<p>#Get BGP Information<br \/>\n$vnet1gw = Get-AzureRmVirtualNetworkGateway -Name $gatewayname -ResourceGroupName $resourcegroup<br \/>\n$vnet1gw.BgpSettingsText<br \/>\n<\/code><\/p>\n<p>Good Luck<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As of June 2017 update to the CISCO IOS you can now establish RouteBased VPN&#8217;s into Azure using VTI and IKEv2 RouteBased Connection was previously known as Dynamic Routing. Minimum IOS Version: 9.8(1) Released 15th<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[21],"tags":[2614,351,491,2624,2311],"class_list":["post-3834","post","type-post","status-publish","format-standard","hentry","category-microsoft","tag-asa","tag-azure","tag-cisco","tag-ikev2","tag-vpn"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.9.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>CISCO ASA RouteBase IKE V2 configuration - TSLS - Luke Smith<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_GB\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"CISCO ASA RouteBase IKE V2 configuration - TSLS - Luke Smith\" \/>\r\n<meta property=\"og:description\" content=\"As of June 2017 update to the CISCO IOS you can now establish RouteBased VPN&#8217;s into Azure using VTI and IKEv2 RouteBased Connection was previously known as Dynamic Routing. Minimum IOS Version: 9.8(1) Released 15th\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/\" \/>\r\n<meta property=\"og:site_name\" content=\"TSLS - Luke Smith\" \/>\r\n<meta property=\"article:published_time\" content=\"2017-08-08T07:39:04+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2024-04-22T08:57:28+00:00\" \/>\r\n<meta name=\"author\" content=\"Luke Smith\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Luke Smith\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/\",\"url\":\"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/\",\"name\":\"CISCO ASA RouteBase IKE V2 configuration - TSLS - Luke Smith\",\"isPartOf\":{\"@id\":\"https:\/\/www.tsls.co.uk\/#website\"},\"datePublished\":\"2017-08-08T07:39:04+00:00\",\"dateModified\":\"2024-04-22T08:57:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.tsls.co.uk\/#\/schema\/person\/e4d7dac4fe1b3f8df31f3857bb3ebda7\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.tsls.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CISCO ASA RouteBase IKE V2 configuration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tsls.co.uk\/#website\",\"url\":\"https:\/\/www.tsls.co.uk\/\",\"name\":\"TSLS - Luke Smith\",\"description\":\"- Knowledge - Thoughts - Microsoft -\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tsls.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.tsls.co.uk\/#\/schema\/person\/e4d7dac4fe1b3f8df31f3857bb3ebda7\",\"name\":\"Luke Smith\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.tsls.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/29abc50f07a4ebe68cb4f31981884f89b2157d7e4ed63b09631d40c0717faa94?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/29abc50f07a4ebe68cb4f31981884f89b2157d7e4ed63b09631d40c0717faa94?s=96&d=mm&r=g\",\"caption\":\"Luke Smith\"},\"description\":\"I\u2019ve been working with Microsoft Technologies for over 20 years, my main focus now being Microsoft Online Services. I manage the Cloud Services at ElysianIT Limited and as a P-SELLER at Microsoft. I have worked with many organisations from SMC to Enterprise. I\u2019ve been working with Microsoft Technologies since DOS 5.0, to date I have been working on Microsoft\u2019s latest cloud technology Windows Azure, Windows 10 Office 365 and Microsoft SharePoint\",\"sameAs\":[\"http:\/\/www.tsls.co.uk\"],\"url\":\"https:\/\/www.tsls.co.uk\/index.php\/author\/luke\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CISCO ASA RouteBase IKE V2 configuration - TSLS - Luke Smith","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/","og_locale":"en_GB","og_type":"article","og_title":"CISCO ASA RouteBase IKE V2 configuration - TSLS - Luke Smith","og_description":"As of June 2017 update to the CISCO IOS you can now establish RouteBased VPN&#8217;s into Azure using VTI and IKEv2 RouteBased Connection was previously known as Dynamic Routing. Minimum IOS Version: 9.8(1) Released 15th","og_url":"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/","og_site_name":"TSLS - Luke Smith","article_published_time":"2017-08-08T07:39:04+00:00","article_modified_time":"2024-04-22T08:57:28+00:00","author":"Luke Smith","twitter_misc":{"Written by":"Luke Smith","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/","url":"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/","name":"CISCO ASA RouteBase IKE V2 configuration - TSLS - Luke Smith","isPartOf":{"@id":"https:\/\/www.tsls.co.uk\/#website"},"datePublished":"2017-08-08T07:39:04+00:00","dateModified":"2024-04-22T08:57:28+00:00","author":{"@id":"https:\/\/www.tsls.co.uk\/#\/schema\/person\/e4d7dac4fe1b3f8df31f3857bb3ebda7"},"breadcrumb":{"@id":"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.tsls.co.uk\/index.php\/2017\/08\/08\/cisco-asa-routebase-ike-v2-configuration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tsls.co.uk\/"},{"@type":"ListItem","position":2,"name":"CISCO ASA RouteBase IKE V2 configuration"}]},{"@type":"WebSite","@id":"https:\/\/www.tsls.co.uk\/#website","url":"https:\/\/www.tsls.co.uk\/","name":"TSLS - Luke Smith","description":"- Knowledge - Thoughts - Microsoft -","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tsls.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.tsls.co.uk\/#\/schema\/person\/e4d7dac4fe1b3f8df31f3857bb3ebda7","name":"Luke Smith","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.tsls.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/29abc50f07a4ebe68cb4f31981884f89b2157d7e4ed63b09631d40c0717faa94?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/29abc50f07a4ebe68cb4f31981884f89b2157d7e4ed63b09631d40c0717faa94?s=96&d=mm&r=g","caption":"Luke Smith"},"description":"I\u2019ve been working with Microsoft Technologies for over 20 years, my main focus now being Microsoft Online Services. I manage the Cloud Services at ElysianIT Limited and as a P-SELLER at Microsoft. I have worked with many organisations from SMC to Enterprise. I\u2019ve been working with Microsoft Technologies since DOS 5.0, to date I have been working on Microsoft\u2019s latest cloud technology Windows Azure, Windows 10 Office 365 and Microsoft SharePoint","sameAs":["http:\/\/www.tsls.co.uk"],"url":"https:\/\/www.tsls.co.uk\/index.php\/author\/luke\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2gf1k-ZQ","_links":{"self":[{"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/3834","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=3834"}],"version-history":[{"count":7,"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/3834\/revisions"}],"predecessor-version":[{"id":3944,"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/3834\/revisions\/3944"}],"wp:attachment":[{"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=3834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=3834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tsls.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=3834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}