IPsec VPN Example Cisco ASA To Router
IPsec VPN Example Cisco ASA To Router
IPsec VPN Example Cisco ASA To Router
Page 1 of 16
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Router Configuration Example
Document ID: 112153 Updated: Sep 22, 2014
Contents
Introduction
Prerequisites
Requirements
Components Used
Related Products
Conventions
Configuration
Network Diagram
VPN Tunnel ASDM Configuration
Router Cisco CP Configuration
ASA CLI Configuration
Router CLI Configuration
Verify
ASA/PIX Security Appliance - show Commands
Remote IOS Router - show Commands
Troubleshoot
Related Information
Introduction
This document provides a sample configuration for the LAN-to-LAN (Site-to-Site) IPsec tunnel between Cisco Security Appliances (ASA/PIX) and a Cisco IOS Router using Cisco
Configuration Professional (Cisco CP). Static routes are used for simplicity.
Refer to PIX/ASA 7.x Security Appliance to an IOS Router LAN-to-LAN IPsec Tunnel Configuration Example in order to learn more about the same scenario where the PIX/ASA Security
Appliance runs software version 7.x.
Prerequisites
Requirements
Make sure that you meet these requirements before you attempt this configuration:
Components Used
The information in this document is based on these software and hardware versions:
Cisco Adaptive Security Appliance (ASA) with version 8.x and later
ASDM version 6.x.and later
Cisco 1841 Router with Cisco IOS Software Release 12.4(15T)
Cisco CP Version 2.1
Note: Refer to Allowing HTTPS Access for ASDM in order to allow the ASA to be configured by the ASDM.
Note: Refer to Basic Router Configuration Using Cisco Configuration Professional in order to allow the router to be configured by Cisco CP.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If
your network is live, make sure that you understand the potential impact of any command.
Related Products
This configuration can also be used with the Cisco PIX 500 Series Security Appliance, which runs version 7.x and later.
Conventions
Refer to the Cisco Technical Tips Conventions for more information on document conventions.
Configuration
Network Diagram
This document uses this network setup:
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Route... Page 2 of 16
Note: The IP addressing schemes used in this configuration are not legally routable on the Internet. They are RFC 1918 addresses, which have been used in a lab environment.
1. Open your browser and enter https://<IP_Address of the interface of ASA that has been configured for ASDM Access> to access the ASDM on the ASA.
Make sure to authorize any warnings your browser gives you related to SSL certificate authenticity. The default username and password are both blank.
The ASA presents this window to allow the download of the ASDM application. This example loads the application onto the local computer and does not run in a Java applet.
2. Click Download ASDM Launcher and Start ASDM in order to download the installer for the ASDM application.
3. Once the ASDM Launcher downloads, perform the steps directed by the prompts in order to install the software and run the Cisco ASDM Launcher.
4. Enter the IP address for the interface you configured with the http - command. Also, enter a username and password if you specified one.
This example uses cisco123 for both the username and the password.
5. Run the IPsec VPN Wizard once the ASDM application connects to the ASA.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Route... Page 3 of 16
6. Choose Site-to-Site for the IPsec VPN Tunnel Type, and click Next.
7. Specify the outside IP address of the remote peer. Enter the authentication information to use, which is the pre-shared key in this example. The pre-shared key used in this example
is cisco123. The Tunnel Group Name will be your outside IP address by default if you configure L2L VPN. Click Next.
8. Specify the attributes to use for IKE, also known as Phase 1. These attributes must be the same on both the ASA and the IOS Router. Click Next.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Route... Page 4 of 16
9. Specify the attributes to use for IPsec, also known as Phase 2. These attributes must match on both the ASA and the IOS Router. Click Next.
0. Specify the hosts whose traffic should be allowed to pass through the VPN tunnel. In this step, you have to provide the Local Networks and Remote Networks for the VPN Tunnel.
Click the button next to Local Networks as shown here to choose the local network address from the drop-down menu.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Route... Page 5 of 16
2. Click the button next to Remote Networks in order to choose the remote network address from the drop-down menu.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Route... Page 6 of 16
4. Check the Exempt ASA side host/network from address translation checkbox in order to prevent the tunnel traffic from undergoing Network Address Translation. Click Next.
5. The attributes defined by the VPN Wizard are displayed in this summary. Double check the configuration and click Finish when you are satisfied that the settings are correct.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Route... Page 7 of 16
1. Choose Configure > Security > VPN > Site-to-Site VPN, and click the radio button next to Create a Site-to-Site VPN. Click Launch the selected task.
2. Choose Step by step wizard in order to proceed with the configuration, and click Next.
3. In the next window, provide the VPN Connection Information in the respective spaces. Choose the interface of the VPN Tunnel from the drop-down menu. Here, FastEthernet0 is
chosen. In the Peer Identity section, choose Peer with static IP address and provide the remote peer IP address. Then, provide the Pre-shared Keys (cisco123 in this example) in
the Authentication section. Lastly, click Next.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Route... Page 8 of 16
4. Click Add in order to add IKE proposals which specify the Encryption Algorithm, Authentication Algorithm, and the Key Exchange Method.
5. Provide the Encryption Algorithm, Authentication Algorithm, and Key Exchange method, and then click OK. The Encryption Algorithm, Authentication Algorithm, and the Key
Exchange method values should match with the data provided in the ASA.
6. Click Next.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Route... Page 9 of 16
7. In this new window, the Transform Set details are provided. The Transform Set specifies the Encryption and Authentication algorithms used to protect Data in VPN Tunnel. Click Add
in order to provide these details. You can add any number of Transform Sets as needed by using this method.
8. Provide the Transform Set details (Integrity and Encryption Algorithms), and click OK.
9. Choose the required Transform Set to be used from the drop-down menu, and click Next.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Rou... Page 10 of 16
0. In the following window, provide the details about the Traffic to be protected through the VPN Tunnel. Provide the Source and Destination Networks of the traffic to be protected so
that the traffic between the specified source and destination networks are protected. In this example, the Source network is 10.20.10.0 and the Destination network is 10.10.10.0.
Click Next.
1. This window shows the summary of the Site-to-Site VPN configuration. Check the Test VPN Connectivity after configuring checkbox if you want to test the VPN connectivity. Here,
the box is checked as the connectivity needs to be checked. Click Finish.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Rou... Page 11 of 16
3. In the next window, the result of the VPN connectivity Test is provided. Here, you can see if the tunnel is Up or Down. In this example configuration, the Tunnel is "Up", as shown in
green.
interface Ethernet0/1
nameif outside
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Rou... Page 12 of 16
security-level 0
ip address 172.16.1.1 255.255.255.0
interface Ethernet0/2
nameif inside
security-level 100
ip address 10.10.10.1 255.255.255.0
!--- This access list (inside_nat0_outbound) is used !--- with the nat zero command. This prevents traffic which !--- matches the access list from undergoing network ad
configuration.
!--- This access list (outside_cryptomap) is used !--- with the crypto map outside_map !--- to determine which traffic should be encrypted and sent !--- across the tunne
pager lines 24
mtu inside 1500
mtu outside 1500
no failover
asdm image disk0:/asdm-613.bin
asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 10.10.10.0 255.255.255.0
!--- NAT 0 prevents NAT for networks specified in !--- the ACL inside_nat0_outbound.
!--- PHASE 2 CONFIGURATION ---! !--- The encryption types for Phase 2 are defined here.
!--- Sets the IPsec transform set "ESP-AES-256-SHA" !--- to be used with the crypto map entry "outside_map".
!--- Specifies the interface to be used with !--- the settings defined in this configuration.
!--- PHASE 1 CONFIGURATION ---! !--- This configuration uses isakmp policy 10. !--- The configuration commands here define the Phase !--- 1 policy parameters that are us
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Rou... Page 13 of 16
!--- In order to create and manage the database of connection-specific !--- records for ipsec-l2lIPsec (LAN-to-LAN) tunnels, use the command !--- tunnel-group in global
!--- Enter the pre-shared-key in order to configure the !--- authentication method.
telnet timeout 5
ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
!
class-map inspection_default
match default-inspection-traffic
!
!
Building configuration...
!--- Configuration for IKE policies. !--- Enables the IKE policy configuration (config-isakmp) !--- command mode, where you can specify the parameters that !--- are used
e chosen.
!--- Specifies the pre-shared key "cisco123" which should !--- be identical at both peers. This is a global !--- configuration mode command.
!--- Configuration for IPsec policies. !--- Enables the crypto transform configuration mode, !--- where you can specify the transform sets that are used !--- during an I
!--- Indicates that IKE is used to establish !--- the IPsec Security Association for protecting the !--- traffic specified by this crypto map entry.
!--- Configures IPsec to use the transform-set !--- "ASA-IPSEC" defined earlier in this configuration.
!--- Configures the interface to use the !--- crypto map "SDM_CMAP_1" for IPsec.
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Rou... Page 14 of 16
interface FastEthernet0
ip address 172.17.1.1 255.255.255.0
duplex auto
speed auto
crypto map SDM_CMAP_1
!
interface FastEthernet1
ip address 10.20.10.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet2
no ip address
!
interface Vlan1
ip address 10.77.241.109 255.255.255.192
!
ip classless
ip route 10.10.10.0 255.255.255.0 172.17.1.2
ip route 10.77.233.0 255.255.255.0 10.77.241.65
ip route 172.16.1.0 255.255.255.0 172.17.1.2
!
!
ip nat inside source route-map nonat interface FastEthernet0 overload
!
ip http server
ip http authentication local
ip http secure-server
!
!--- Configure the access-lists and map them to the Crypto map configured.
!--- This ACL 110 identifies the traffic flows using route map
This video posted to the Cisco Support Community demonstrates how to configure Site-to-Site IPsec VPN between Cisco ASA and a Cisco Router:
Verify
Use this section to confirm that your configuration works properly.
The Output Interpreter Tool (registered customers only) (OIT) supports certain show commands. Use the OIT to view an analysis of show command output.
Active SA: 1
Rekey SA: 0 (A tunnel will report 1 Active and 1 Rekey SA during rekey)
Total IKE SA: 1
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Rou... Page 15 of 16
inbound ah sas:
outbound ah sas:
show crypto engine connections activeShows current connections and information about encrypted and decrypted packets (router only).
Router#show crypto engine connections active
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015
Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Rou... Page 16 of 16
Troubleshoot
This section provides information you can use to troubleshoot your configuration.
The Output Interpreter Tool (registered customers only) (OIT) supports certain show commands. Use the OIT to view an analysis of show command output.
Note: Refer to Important Information on Debug Commands and IP Security Troubleshooting - Understanding and Using debug Commands before you use debug commands.
Refer to Most Common L2L and Remote Access IPSec VPN Troubleshooting Solutions for more information on troubleshooting Site-to-Site VPN.
Related Information
Cisco Configuration Professional Quick Start Guide
Cisco Adaptive Security Device Manager
Cisco PIX Firewall Software
Cisco ASA 5500 Series Adaptive Security Appliances
Cisco PIX Firewall Software
Cisco Secure PIX Firewall Command References
Requests for Comments (RFCs)
Technical Support & Documentation - Cisco Systems
http://www.cisco.com/c/en/us/support/docs/cloud-systems-management/configuration-prof... 11/4/2015