SDM: Site-To-Site Ipsec VPN Between Asa/Pix and An Ios Router Configuration Example
SDM: Site-To-Site Ipsec VPN Between Asa/Pix and An Ios Router Configuration Example
SDM: Site-To-Site Ipsec VPN Between Asa/Pix and An Ios Router Configuration Example
Configuration Example
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. 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
Ensure 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 1812 router with Cisco IOS Software Release 12.3
Cisco Security Device Manager (SDM) Version 2.5
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 SDM in order to allow the router to be configured by SDM.
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.
Note: Refer to Configuration Professional: Site-to-Site IPsec VPN Between ASA/PIX and an IOS Router
Configuration Example for a similar configuration using Cisco Configuration Professional on the router.
Related Products
This configuration can also be used with the Cisco PIX 500 Series Security Appliance, which runs version 7.x
and later.
1
Conventions
Refer to the Cisco Technical Tips Conventions for more information on document conventions.
Configuration
Network Diagram
This document uses the network setup shown in this diagram.
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.
2. Click Download ASDM Launcher and Start ASDM in order to download the installer for the ASDM
application.
3. Once the ASDM Launcher downloads, complete 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, and a username and
password if you specified one.
This example uses cisco123 for the username and cisco123 as the password.
5. Run the IPsec VPN Wizard once the ASDM application connects to the ASA.
6. Choose the Site-to-Site IPsec VPN tunnel type and click Next as shown here.
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.
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.
10. Specify the hosts whose traffic should be allowed to pass through the VPN tunnel. In this step, you have
to provide the Local 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 list.
11. Choose the Local Network address, then click OK as shown here.
12. Click the button next to Remote Networks as shown here to choose the remote network address from
the drop down list.
10
13. Choose the Remote Network address, then click OK as shown here.
Note: If you do not have the Remote Network in the list then the network has to be added to the list by
clicking Add.
11
14. Check the Exempt ASA side host/network from address translation checkbox in order to prevent the
tunnel traffic from undergoing Network Address Translation. Then, click Next.
12
15. The attributes defined by the VPN Wizard are displayed in this summary. Double check the
configuration and click Finish when you are satisfied the settings are correct.
13
14
2. The SDM download starts now. Once the SDM Launcher downloads, complete the steps directed by the
prompts in order to install the software and run the Cisco SDM Launcher.
3. Enter the Username and Password if you specified one and click OK.
This example uses the cisco123 for the username and cisco123 as the password.
4. Choose Configuration->VPN->Site-to-Site VPN and click the radio button next to Create a Site-toSite VPN on the SDM home page. Then, click Launch The selected Task as shown here:
15
16
6. In the next window provide the VPN Connection Information in the respective spaces. Select the
Interface of the VPN Tunnel from the drop down list. 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 key (cisco123 in this example) in the Authentication section as shown . Then,
click Next.
17
7. Click Add to add IKE proposals which specifies the Encryption Algorithm, Authentication
Algorithm and the Key Exchange Method.
18
8. Provide Encryption Algorithm, Authentication Algorithm and the Key Exchange method as shown
here, then click OK. The Encryption Algorithm, Authentication Algorithm and the Key Exchange
method values should match with the data provided in the ASA.
19
10. In this new window the Transform Set details should be provided. The Transform Set specifies the
Encryption and Authentication algorithms used to protect Data in VPN Tunnel. Then, click Add to
provide these details. You can add any number of Transform Sets as needed by clicking Add and
providing the details.
20
11. Provide the Transform Set details (Encryption and Authentication Algorithm) and click OK as
shown.
12. Choose the required Transform Set to be used from the drop down list as shown.
21
22
14. 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. Then, click Next.
23
15. This window shows the summary of the Site-to-Site VPN configuration done. Check the Test VPN
Connectivity after configuring check box if you want to test the VPN connectivity. Here, the box is
checked as the connectivity needs to be checked. Then, click Finish.
24
25
17. 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.
26
27
interface Ethernet0/1
nameif outside
security-level 0
ip address 172.16.1.1 255.255.255.0
!--- Configure the inside interface.
!
interface Ethernet0/2
nameif inside
security-level 100
ip address 10.10.10.1 255.255.255.0
28
29
"outside_map".
crypto map outside_map interface outside
!--- 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 used.
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption des
hash sha
group 1
lifetime 86400
telnet timeout 5
ssh timeout 5
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
!
30
class-map inspection_default
match default-inspection-traffic
!
!
31
32
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.
access-list 100 remark SDM_ACL Category=4
access-list 100 remark IPSec Rule
access-list 100 permit ip 10.20.10.0 0.0.0.255
10.10.10.0 0.0.0.255
!
!
!
!--- This ACL 110 identifies the traffic flows using
route map
access-list 110 deny ip 10.20.10.0 0.0.0.255
10.10.10.0 0.0.0.255
access-list 110 permit ip 10.20.10.0 0.0.0.255 any
route-map nonat permit 10
match ip address 110
!
control-plane
!
!
line con 0
login local
line aux 0
line vty 0 4
privilege level 15
login local
transport input telnet ssh
33
!
end
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.
Role
State
: initiator
: MM_ACTIVE
34
src
172.16.1.1
state
QM_IDLE
35
show crypto engine connections activeShows current connections and information about encrypted
and decrypted packets (router only).
IP-Address
State
Algorithm
Encrypt
172.17.1.1
set
HMAC_SHA+DES_56_CB
172.17.1.1
set
DES+SHA
172.17.1.1
set
DES+SHA
59
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.
37