This document describes the most common solutions for IPsec VPN problems.
The solutions described within this document come directly from service requests the Cisco Technical Support Team have resolved. Many of these solutions are implemented prior to in-depth troubleshooting of an IPsec VPN connection. This document provides a summary of common procedures to try before you begin to troubleshoot a connection.
The configuration examples in this document are for use on routers and security appliances, nearly all concepts are applicable to the VPN 3000. Refer toIP Security Troubleshooting - Understanding and Using debug Commandsfor an explanation of common debug commands used to troubleshoot IPsec issues on both the Cisco IOS® software.
Note: SA does not pass multicast traffic over IPsec VPN tunnels.
Warning: Many of the solutions presented in this document can lead to a temporary loss of all IPsec VPN connectivity on a device. It is recommended these solutions be implemented with caution and in accordance with your change control policy.
Cisco recommends knowledge of IPsec VPN configuration on these Cisco devices:
Cisco ASA 5500 Series Security Appliance
The information in this document is based on these software and hardware versions:
Cisco ASA 5500 Series Security Appliance
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, ensure that you understand the potential impact of any command.
Refer toCisco Technical Tips Conventionsfor more information on document conventions.
This section contains solutions to the most common IPsec VPN problems. Although they are not listed in any particular order, these solutions can be used as a checklist to verify before you engage with in-depth remediation. All of these solutions come directly from TAC service requests and have resolved numerous issues.
Note: Some commands in these sections are moved down to a second line due to spatial considerations.
NAT-Traversal (or NAT-T) allows VPN traffic to pass through NAT or PAT devices, such as the Linksys SOHO router. If NAT-T is not enabled, VPN Client users often appear to connect to the ASA without issue, however, they cannot access an internal network behind the security appliance. If NAT-T in the NAT/PAT device is not enabled, you can receive the regular translation creation failed for protocol 50 src inside:10.0.1.26 dst outside:10.9.694 error message in the ASA.
If you cannot complete simultaneous logins from the same IP address, the Secure VPN Connection terminated locally by client. Reason 412: The remote peer is no longer responding error message appears. Enable NAT-T in the headend VPN device to resolve this error.
Note: With Cisco IOS® Software Release 12.2(13)T and later, NAT-T is enabled by default in Cisco IOS®.
The next command enables NAT-T on the Cisco Security Appliance. The 20 in this example is the keepalive time (default).
ASA
securityappliance(config)#crypto isakmp nat-traversal 20
Clients must be modified for this to work properly. In Cisco VPN Client, navigate toConnection Entriesand clickModify. This opens a new window and you must choose theTransporttab. Under this tab, clickEnable Transparent Tunnelingand theIPSec over UDP ( NAT/PAT )radio button. Then clickSaveand test the connection.
It is important to allow the UDP 4500 for NAT-T, UDP 500 and ESP ports by the configuration of an ACL because the ASA acts as a NAT device. Refer toConfiguring an IPsec Tunnel through a Firewall with NATfor more information on ACL configuration in ASA.
VPN connectivity is tested from devices behind the encryption endpoint. Many users test VPN connectivity by running the ping command from the encryption endpoint. While theping command generally works for this purpose, it is important to source your ping from the correct interface. If thepingis sourced incorrectly, it can appear the VPN connection has failed when it is working properly. This is one example:
Router A crypto ACL
access-list 110 permit ip 192.168.100.0 0.0.0.255 192.168.200.0 0.0.0.255
Router B crypto ACL
access-list 110 permit ip 192.168.200.0 0.0.0.255 192.168.100.0 0.0.0.255
In this example, apingmust be sourced from inside the network behind either router. The crypto ACLs are only configured to encrypt traffic with these source addresses. Apingsourced from the outside interfaces of either router are not encrypted. Use the extended options of thepingcommand in privileged EXEC mode to source a ping from the inside interface of a router:
routerA#ping Protocol [ip]: Target IP address: 192.168.200.10 Repeat count [5]: Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address or interface: 192.168.100.1 Type of service [0]: Set DF bit in IP header? [no]: Validate reply data? [no]: Data pattern [0xABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: Sweep range of sizes [n]: Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.200.1, timeout is 2 seconds: Packet sent with a source address of 192.168.100.1 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = ½/4 ms
Imagine the routers in this diagram are replaced with ASA security appliances. Thepingused to test connectivity can also be sourced from the inside interface with theinsidekeyword:
securityappliance#ping inside 192.168.200.10 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.200.10, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
It is not recommended to target the inside interface of a security appliance with yourping. If you must target the inside interface with theping command, you must enablemanagement-accesson that interface, or the appliance does not reply"
securityappliance(config)#management-access inside
When a problem exists with the connectivity, even Phase 1 of the VPN does not function. On the ASA, if connectivity fails, the SA output is similar to this example, which indicates a possible incorrect crypto peer configuration or incorrect ISAKMP proposal configuration:
Router#show crypto isakmp sa
1 IKE Peer: XX.XX.XX.XX
Type : L2L Role : initiator
Rekey : no State : MM_WAIT_MSG2
The state can be from MM_WAIT_MSG2 to MM_WAIT_MSG5, which denotes failure of concerned state exchange in Main Mode (MM). Crypto SA output when Phase 1 is up; like this example:
Router#show crypto isakmp sa
1 IKE Peer: XX.XX.XX.XX
Type : L2L Role : initiator
Rekey : no State : MM_ACTIVE
If there is no indication an IPsec VPN tunnel is working as expected, it is possible the ISAKMP is not enabled. Ensure you have enabled ISAKMP on your devices. Use one of these commands to enable ISAKMP:
Cisco IOS®
router(config)#crypto isakmp enable
Cisco ASA (replaceoutsidewith your desired interface):
securityappliance(config)#crypto isakmp enable outside
You can also receive this error when you enable ISAKMP on the outside interface:
UDP: ERROR - socket <unknown> 62465 in used ERROR: IkeReceiverInit, unable to bind to port
The cause of the error can relate to the client behind ASA receives PAT to UDP port 500 before ISAKMP can be enabled on the interface. Once the PAT translation is removed (clear xlate), the ISAKMP can be enabled. Verify UDP 500 and the 4500 port numbers are reserved for the negotiation of ISAKMP connections with the peer. When ISAKMP is not enabled on the interface, the VPN client shows an error message similar to this message:
Secure VPN connection terminated locally by client. Reason 412: The remote peer is no longer responding
To resolve this error, enable the ISAKMP on the crypto interface of the VPN gateway.
In the IPsec negotiations, Perfect Forward Secrecy (PFS) ensures each new cryptographic key is unrelated to any previous key. Either enable or disable PFS on both tunnel peers; otherwise, the LAN-to-LAN (L2L) IPsec tunnel is not established in the ASA / Cisco IOS® router. Perfect Forward Secrecy (PFS) is Cisco proprietary and is not supported on third party devices.
ASA:
PFS is disabled by default and to enable PFS, run thepfscommand with the enable keyword in the group-policy configuration mode. To disable PFS, enter the disable keyword.
hostname(config-group-policy)#pfs {enable | disable}
To remove the PFS attribute from the configuration, run the no form of this command. A group policy can inherit a value for PFS from another group policy. Run the no form of this command to prevent transfer of a value.
hostname(config-group-policy)#no pfs
Cisco IOS® Router
set pfs [group1 | group2] no set pfs
For the set pfs command:
group1 — Specifies that IPsec must use the 768-bit Diffie-Hellman prime modulus group when the new Diffie-Hellman exchange is performed.
group2 — Specifies that IPsec must use the 1024-bit Diffie-Hellman prime modulus group when the new Diffie-Hellman exchange is performed.
Example:
Router(config)#crypto map map 10 ipsec-isakmp Router(config-crypto-map)#set pfs group2
If this error message occurs in the Cisco IOS®® router, the SA has either expired or has been cleared. The remote tunnel end device does not know it uses the expired SA to send a packet (not an SA establishment packet). When a new SA is established, the communication resumes, so initiate the traffic across the tunnel to create a new SA and re-establish the tunnel.
%CRYPTO-4-IKMP_NO_SA: IKE message from x.x.x.x has no SA
If you clear ISAKMP (Phase 1) and IPsec (Phase 2) security associations (SAs), it is often the best solution to resolve IPsec VPN problems. If you clear SAs, you can resolve a wide variety of error messages and behaviors without in-depth troubleshooting. While this technique can easily be used in any situation, it is recommended to first clear SAs after you change or add a current IPsec VPN configuration. Moreover, while it is possible to clear only specific security associations, you can benefit when you clear SAs globally on the device. Once the Security Associations are cleared, it can be necessary to send traffic across the tunnel to re-establish them.
Warning: Unless you specify which security associations to clear, the commands listed here can clear all security associations on the device. Proceed with caution if other IPsec VPN tunnels are in use.
View Security Associations before you clear them
Cisco Cisco IOS®
router#show crypto isakmp sa router#show crypto ipsec sa
Cisco ASA Security Appliances
securityappliance#show crypto isakmp sa securityappliance#show crypto ipsec sa
Clear Security Associations as each command can be entered as shown in bold or entered with the options shown with them.
Cisco IOS®
ISAKMP (Phase I)
router#clear crypto isakmp ? <0 - 32766> connection id of SA <cr>
IPsec (Phase II)
router#clear crypto sa ? counters Reset the SA counters map Clear all SAs for a given crypto map peer Clear all SAs for a given crypto peer spi Clear SA by SPI <cr>
Cisco ASA Security Appliances
ISAKMP (Phase I)
securityappliance#clear crypto isakmp sa
IPsec (Phase II)
security appliance#clear crypto ipsec sa ? counters Clear IPsec SA counters entry Clear IPsec SAs by entry map Clear IPsec SAs by map peer Clear IPsec SA by peer <cr>
If users are frequently disconnected across the L2L tunnel, this issue can be lifetime configured in ISAKMP SA. If any discrepancy occurs in the ISAKMP lifetime, you can receive the%ASA-5-713092: Group = x.x.x.x, IP = x.x.x.x, Failure during phase 1 rekey attempt due to collisionerror message in the /ASA. The default is 86,400 seconds or 24 hours. As a general rule, a shorter lifetime provides more secure ISAKMP negotiations (up to a point), however, with shorter lifetimes, the security appliance sets up future IPsec SAs more quickly.
A match is made when both policies from two peers contain the same encryption, hash, authentication, and Diffie-Hellman parameter values, and when the policy of the remote peer specifies a lifetime less than or equal to the lifetime in the compared policy. If the lifetimes are not identical, the shorter lifetime—from the policy of the remote peer—is used, and no acceptable match is found, the IKE refuses negotiation, and the IKE SA is not established.
ASA:
hostname(config)#isakmp policy 2 lifetime 14400
Cisco IOS® Router:
R2(config)#crypto isakmp policy 10 R2(config-isakmp)#lifetime 86400
If the maximum configured lifetime is exceeded, you receive this error message when the VPN connection is terminated:
Secure VPN Connection terminated locally by the Client. Reason 426: Maximum Configured Lifetime Exceeded.
To resolve this error, set thelifetimevalue to zero (0). To set the lifetime of an IKE security association to infinity, the VPN must always be connected and does not terminate:
hostname(config)#isakmp policy 2 lifetime 0
You can also disable re-xauth in the group-policy to resolve the issue.
If you configure ISAKMP keepalives, it helps prevent sporadically dropped LAN-to-LAN or Remote Access VPN. This includes VPN clients, tunnels, and the tunnels dropped after a period of inactivity. This feature allows tunnel endpoints to monitor the continued presence of a remote peer and report its own presence to that peer. If the peer becomes unresponsive, the endpoint removes the connection. For ISAKMP keepalives to work, both VPN endpoints must support them.
Configure ISAKMP keepalives in Cisco IOS® by running this command:
router(config)#crypto isakmp keepalive 15
Run these commands to configure ISAKMP keepalives on ASA Security Appliances:
Cisco ASA for the tunnel group named10.165.205.222:
securityappliance(config)#tunnel-group 10.165.205.222 ipsec-attributes securityappliance(config-tunnel-ipsec)#isakmp keepalive threshold 15 retry 10
In some situations, it is necessary to disable this feature to resolve the problem. For example, if the VPN Client is behind a firewall that prevents DPD packets. With Cisco ASA, for the tunnel group named 10.165.205.222 - Disable IKE keepalive processing, which is enabled by default:
securityappliance(config)#tunnel-group 10.165.205.222 ipsec-attributes securityappliance(config-tunnel-ipsec)#isakmp keepalive disable
Disable Keepalive for Cisco VPN Client 4.x
In many cases, a simple typographical error can be to blame when an IPsec VPN tunnel does not work. For example, on the security appliance, pre-shared keys become hidden once they are entered. This obfuscation makes it impossible to see if a key is incorrect. Ensure you have entered any pre-shared-keys correctly on each VPN endpoint.
In Remote Access VPN, check the valid group name and pre-shared key(s) are entered in the CiscoVPN Client. You can encounter this error if the group name or pre-shared key(s) do not match between the VPN Client and the headend device.
1 12:41:51.900 02/18/06 Sev=Warning/3 IKE/0xE3000056 The received HASH payload cannot be verified 2 12:41:51.900 02/18/06 Sev=Warning/2 IKE/0xE300007D Hash verification failed 3 14:37:50.562 10/05/06 Sev=Warning/2 IKE/0xE3000099 Failed to authenticate peer (Navigator:904) 4 14:37:50.593 10/05/06 Sev=Warning/2 IKE/0xE30000A5 Unexpected SW error occurred while processing Aggressive Mode negotiator:(Navigator:2202) 5 14:44:15.937 10/05/06 Sev=Warning/2 IKE/0xA3000067 Received Unexpected InitialContact Notify (PLMgrNotify:888) 6 14:44:36.578 10/05/06 Sev=Warning/3 IKE/0xE3000056 The received HASH payload cannot be verified 7 14:44:36.593 10/05/06 Sev=Warning/2 IKE/0xE300007D Hash verification failed... possibly be configured with invalid group password. 8 14:44:36.609 10/05/06 Sev=Warning/2 IKE/0xE3000099 Failed to authenticate peer (Navigator:904) 9 14:44:36.640 10/05/06 Sev=Warning/2 IKE/0xE30000A5 Unexpected SW error occurred while processing Aggressive Mode negotiator:(Navigator:2202)
Warning: If you remove crypto-related commands, you can bring down one or all of your VPN tunnels. Use these commands with caution and refer to the change control policy of your organization before you remove crypto-related commands..
Run these commands to remove and re-enter the pre-shared keysecretkeyfor the peer10.0.0.1or the groupvpngroupin Cisco IOS®:
Cisco LAN-to-LAN VPN:
router(config)#no crypto isakmp key secretkey address 10.0.0.1 router(config)#crypto isakmp key secretkey address 10.0.0.1
Cisco Remote Access VPN:
router(config)#crypto isakmp client configuration group vpngroup router(config-isakmp-group)#no key secretkey router(config-isakmp-group)#key secretkey
Run these commands to remove and re-enter the pre-shared-keysecretkeyfor the peer10.0.0.1on /ASA Security Appliances:
Cisco 6.x:
(config)#no isakmp key secretkey address 10.0.0.1 (config)#isakmp key secretkey address 10.0.0.1
Cisco /ASA 7.x and later:
securityappliance(config)#tunnel-group 10.0.0.1 ipsec-attributes securityappliance(config-tunnel-ipsec)#no ikev1 pre-shared-key securityappliance(config-tunnel-ipsec)# ikev1 pre-shared-key secretkey
The initiation of the VPN Tunnel is disconnected. This issue occurs because of a mismatched pre-shared key during Phase I negotiations. TheMM_WAIT_MSG_6message in theshow crypto isakmp sacommand indicates a mismatched pre-shared-key as shown in this example:
ASA#show crypto isakmp sa
Active SA: 1
Rekey SA: 0 (A tunnel reports 1 Active and 1 Rekey SA during rekey)
Total IKE SA: 1
1 IKE Peer: 10.7.13.20
Type : L2L Role : initiator
Rekey : no State : MM_WAIT_MSG_6
To resolve this issue, re-enter the pre-shared key in both appliances; the pre-shared-key must be unique and match. SeeRe-Enter or Recover Pre-Shared-Keysfor more information.
When youclear security associations, and it does not resolve the IPsec VPN issue, remove and re-apply the relevant crypto map to resolve a wide variety of issues that includes intermittent drops of VPN tunnel and failures of some VPN sites.
Warning: If you remove a crypto map from an interface, it removes any IPsec tunnels associated with that crypto map. Proceed with caution, refer to these steps, and consider the change control policy of your organization before moving forward.
Run these commands to remove and replace a crypto map in Cisco IOS®:
Begin with the removal of the crypto map from the interface. Run the no form of thecrypto mapcommand:
router(config-if)#no crypto map mymap
Continue to run thenoform to remove an entire crypto map:
router(config)#no crypto map mymap 10
Replace the crypto map on interface Ethernet0/0 for the peer10.0.0.1. This example shows the minimum required crypto map configuration:
router(config)#crypto map mymap 10 ipsec-isakmp router(config-crypto-map)#match address 101 router(config-crypto-map)#set transform-set mySET router(config-crypto-map)#set peer 10.0.0.1 router(config-crypto-map)#exit router(config)#interface ethernet0/0 router(config-if)#crypto map mymap
Run these commands to remove and replace a crypto map on the ASA. Begin with the removal of the crypto map from the interface. Run the no form of thecrypto mapcommand:
securityappliance(config)#no crypto map mymap interface outside
Continue to run thenoform to remove the other crypto map commands:
securityappliance(config)#no crypto map mymap 10 match address 101 securityappliance(config)#no crypto map mymap set transform-set mySET securityappliance(config)#no crypto map mymap set peer 10.0.0.1
Replace the crypto map for peer10.0.0.1. This example shows the minimum required crypto map configuration:
securityappliance(config)#crypto map mymap 10 ipsec-isakmp securityappliance(config)#crypto map mymap 10 match address 101 securityappliance(config)#crypto map mymap 10 set transform-set mySET securityappliance(config)#crypto map mymap 10 set peer 10.0.0.1 securityappliance(config)#crypto map mymap interface outside
If you remove and re-apply the crypto map, this also resolves the connectivity issue if the IP address of the headend has been changed.
The commandssysopt connection permit-ipsecandsysopt connection permit-vpnallow packets from an IPsec tunnel and their payloads to bypass interface ACLs on the security appliance. IPsec tunnels that are terminated on the security appliance are likely to fail if one of these commands is not enabled.
Cisco ASA:
securityappliance# show running-config all sysopt no sysopt connection timewait sysopt connection tcpmss 1380 sysopt connection tcpmss minimum 0 no sysopt nodnsalias inbound no sysopt nodnsalias outbound no sysopt radius ignore-secret sysopt connection permit-vpn !--- sysopt connection permit-vpn is enabled !--- This device is running 7.2(2)
Run this command to enable the correctsysoptcommand for your device:
Cisco ASA:
securityappliance(config)#sysopt connection permit-vpn
If you do not want to run thesysopt connectioncommand, explicitly permit the required traffic from the source to the destination. For example, from Remote to Local LAN of the remote device and "UDP port 500" for outside interface of the remote device to outside interface of the local device, in outside ACL.
IKE negotiation failures in IPsec VPNs often result from a peer failing to recognize the identity of its partner, this is the way. When two peers use IKE to establish IPsec security associations, each peer sends its ISAKMP identity to the remote peer. It sends either its IP address or host name dependent upon how each has its ISAKMP identity set. By default, the ISAKMP identity of the firewall unit is set to the IP address.
As a general rule, set the security appliance and the identities of its peers the same way to avoid an IKE negotiation failure. To set the Phase 2 ID to be sent to the peer, run theisakmp identitycommand in the global configuration mode:
crypto isakmp identity address !--- If the RA or L2L (site-to-site) VPN tunnels connect !--- with pre-shared key as authentication type
OR:
crypto isakmp identity auto !--- If the RA or L2L (site-to-site) VPN tunnels connect !--- with ISAKMP negotiation by connection type; IP address for !--- preshared key or cert DN for certificate authentication.
OR:
crypto isakmp identity hostname !--- Uses the fully-qualified domain name of !--- the host exchange ISAKMP identity information (default). !--- This name comprises the hostname and the domain name.
If VPN tunnel fails to start after a shift of configuration from ASA with the ASA configuration migration tool; these messages appear in the log:
[IKEv1]: Group = x.x.x.x, IP = x.x.x.x, Stale PeerTblEntry found, removing!
[IKEv1]: Group = x.x.x.x, IP = x.x.x.x, Removing peer from correlator table failed, no match!
[IKEv1]: Group = x.x.x.x, IP = x.x.x.x, construct_ipsec_delete(): No SPI to identify Phase 2 SA!
[IKEv1]: Group = x.x.x.x, IP = x.x.x.x, Removing peer from correlator table failed, no match!
If the idle timeout is set to 30 minutes (default), it drops the tunnel after 30 minutes if no traffic passes through. The VPN client is disconnected after 30 minutes regardless of the idle timeout parameter and receives the PEER_DELETE-IKE_DELETE_UNSPECIFIED error.
Configureidle timeoutandsession timeoutasnone to make the tunnel alwaysup, and so that the tunnel is never dropped even when third party devices are used.
ASA
Run thevpn-idle-timeoutcommand in group-policy configuration mode or in the username configuration mode to configure the user timeout period:
hostname(config)#group-policy DfltGrpPolicy attributes hostname(config-group-policy)#vpn-idle-timeout none
Configure a maximum amount of time for VPN connections with thevpn-session-timeoutcommand in group-policy configuration mode or in username configuration mode:
hostname(config)#group-policy DfltGrpPolicy attributes hostname(config-group-policy)#vpn-session-timeout none
When you havetunnel-allconfigured, you do not need to configureidle-timeoutbecause, even if you configure VPN-idle timeout, it does not work as all traffic processes through the tunnel (since tunnel-all is configured).
Therefore, the traffic (or even traffic generated by the PC) does not let Idle-timeout occur.
Cisco IOS® Router
Run thecrypto ipsec security-association idle-timecommand in global configuration mode or crypto map configuration mode to configure the IPsec SA idle timer. By default IPsec SA idle timers are disabled:
crypto ipsec security-association idle-time seconds
Time is measured in seconds, which the idle timer allows an inactive peer to maintain an SA. Valid values for the seconds argument range from 60 to 86400.
There are two access lists used in a typical IPsec VPN configuration. One access list is used to exempt traffic that is destined for the VPN tunnel from the NAT process. The other access list defines what traffic to encrypt; this includes a crypto ACL in a LAN-to-LAN setup or a split-tunnel ACL in a Remote Access configuration. When these ACLs are incorrectly configured or missed, traffic flows in one direction across the VPN tunnel, or is not sent across the tunnel at all.
Ensure you bind the crypto ACL with the crypto map by running the crypto map match address command in the global configuration mode. Check you have configured all the access lists to complete your IPsec VPN configurations and those access lists define the correct traffic. This list contains items to validate when you suspect an ACL is the cause of problems with your IPsec VPN.
Confirm your NAT exemption and crypto ACLs specify the correct traffic. If you have multiple VPN tunnels and multiple crypto ACLs, ensure those ACLs do not overlap. Also verify your device is configured to use the NAT Exemption ACL. On a router, this means you are running theroute-mapcommand. On the ASA, you are running thenat (0)command. A NAT exemption ACL is required for both LAN-to-LAN and Remote Access configurations.
In the next example, a Cisco IOS® router is configured to exempt traffic that is sent between192.168.100.0 /24and192.168.200.0 /24or192.168.1.0 /24from NAT. Traffic destined for anywhere else is subject to NAT overload:
access-list 110 deny ip 192.168.100.0 0.0.0.255 192.168.200.0 0.0.0.255 access-list 110 deny ip 192.168.100.0 0.0.0.255 192.168.1.0 0.0.0.255 access-list 110 permit ip 192.168.100.0 0.0.0.255 any route-map nonat permit 10 match ip address 110 ip nat inside source route-map nonat interface FastEthernet0/0 overload
NAT exemption ACLs function only with the IP address or IP networks, such as those examples mentioned (access-list noNAT), and must be identical to the crypto map ACLs. The NAT exemption ACLs do not work with port numbers (for example, 23, 25, and so on). In a VOIP environment, where voice calls between networks are communicated through the VPN, voice calls do not operate if NAT 0 ACLs are not properly configured. Prior to troubleshooting, it is recommended to check the VPN connectivity status as the problem could be due to misconfiguration of NAT exempt ACLs.
You can receive the error message as shown if there is misconfiguration in NAT exemption (nat 0) ACLs.
%ASA-3-305005: No translation group found for udp src Outside:x.x.x.x/p dst Inside:y.y.y.y/p
Incorrect Example:
access-list noNAT extended permit ip 192.168.100.0 255.255.255.0 192.168.200.0 255.255.255.0 eq 25
If NAT exemption (nat 0) does not function properly, try to remove it and run theNAT 0command. Ensure your ACLs are not backwards and they are the right type. Crypto and NAT exemption ACLs for LAN-to-LAN configurations must be written from the perspective of the device where the ACL is configured. Therefore, the ACLs mustmirroreach other. In this example, a LAN-to-LAN tunnel is set up between192.168.100.0 /24and192.168.200.0 /24.
Router A crypto ACL:
access-list 110 permit ip 192.168.100.0 0.0.0.255 192.168.200.0 0.0.0.255
Router B crypto ACL:
access-list 110 permit ip 192.168.200.0 0.0.0.255 192.168.100.0 0.0.0.255
Although not illustrated, the same concept applies to the ASA Security Appliances. In ASA, split-tunnel ACLs for Remote Access configurations must bestandardaccess lists that permit traffic to the network where VPN clients require access. Cisco IOS® routers can use extended ACL for split-tunnels. In the extended access list, to use'any'at the source in the split tunnel ACL is similar to disable split tunnel. Only use source networks in the extended ACL for split tunnel.
Correct Example:
access-list 140 permit ip 10.1.0.0 0.0.255.255 10.18.0.0 0.0.255.255
Incorrect Example:
access-list 140 permit ip any 10.18.0.0 0.0.255.255
Cisco IOS®
router(config)#access-list 10 permit ip 192.168.100.0 router(config)#crypto isakmp client configuration group MYGROUP router(config-isakmp-group)#acl 10
Cisco ASA
securityappliance(config)#access-list 10 standard permit 192.168.100.0 255.255.255.0 securityappliance(config)#group-policy MYPOLICY internal securityappliance(config)#group-policy MYPOLICY attributes securityappliance(config-group-policy)#split-tunnel-policy tunnelspecified securityappliance(config-group-policy)#split-tunnel-network-list value 10
NAT exemption configuration in ASA version 8.3 for site-to-site VPN tunnel:
A site-to-site VPN has to be established between HOASA and BOASA with both ASAs with version 8.3. The NAT exemption configuration on HOASA looks similar to this:
object network obj-local subnet 192.168.100.0 255.255.255.0 object network obj-remote subnet 192.168.200.0 255.255.255.0 nat (inside,outside) 1 source static obj-local obj-local destination static obj-remote objremote
If the IPsec tunnel is not UP, check if the ISAKMP policies match with the remote peers. This ISAKMP policy is applicable to both the Site-to-Site (L2L) and Remote Access IPsec VPN. If the Cisco VPN Clients or the Site-to-Site VPN cannot establish the tunnel with the remote-end device, checkthe two peers contain the same encryption, hash, authentication, and Diffie-Hellman parameter values. Verify when the remote peer policy specifies a lifetime less than or equal to the lifetime in the policy that the initiator sent. If the lifetimes are not identical, the security appliance uses the shorter lifetime. If no acceptable match exists, ISAKMP refuses negotiation, and the SA is not established.
"Error: Unable to remove Peer TblEntry, Removing peer from peer table failed, no match!"
This is an example of the detailed log message:
4|Mar 24 2010 10:21:50|713903: IP = X.X.X.X, Error: Unable to remove PeerTblEntry 3|Mar 24 2010 10:21:50|713902: IP = X.X.X.X, Removing peer from peer table failed, no match! 3|Mar 24 2010 10:21:50|713048: IP = X.X.X.X, Error processing payload: Payload ID: 1 4|Mar 24 2010 10:21:49|713903: IP = X.X.X.X, Information Exchange processing failed 5|Mar 24 2010 10:21:49|713904: IP = X.X.X.X, Received an un-encrypted NO_PROPOSAL_CHOSEN notify message, drop
This message usually appears due to mismatched ISAKMP policies or a missed NAT 0 statement. In addition, this message appears:
Error Message %ASA-6-713219: Queueing KEY-ACQUIRE messages to be processed when P1 SA is complete.
This message indicates Phase 2 messages are in the queue after Phase 1 completes. This error message is due to one of these reasons:
Mismatch in phase on any of the peers
ACL blocks the peers from completion of phase 1
This message usually comes after theRemoving peer from peer table failed, no match!error message. If the Cisco VPN Client cannot connect the headend device, the problem can be the mismatch of the ISAKMP Policy. The headend device must match with one of theIKE Proposals of the Cisco VPN Client. For the ISAKMP policy and IPsec Transform set used on the ASA, the Cisco VPN client cannot use a policy with a combination of DES and SHA. If you use DES, you must use MD5 for the hash algorithm, or you can use other combinations such as 3DES with SHA and 3DES with MD5.
Ensure your encryption devices such as Routers and ASA Security Appliances have the proper routing information to send traffic over your VPN tunnel. If other routers exist behind your gateway device, verify those routers can reach the tunnel and what networks are on the other side. One key component of routing in a VPN deployment is Reverse Route Injection (RRI). RRI places dynamic entries for remote networks or VPN clients in the routing table of a VPN gateway. These routes are useful to the device they are installed on, and to other devices on the network as routes installed by RRI can be redistributed through routing protocols like EIGRP or OSPF.
In a LAN-to-LAN configuration, it is important for each endpoint to have a route(s) to the networks where they must encrypt traffic. In this example, Router A must have routes to the networks behind Router B through10.89.129.2. Router B must have a similar route to192.168.100.0 /24. The first way to ensure each router knows the appropriate route(s) is to configure static routes for each destination network. For example, Router A can have these route statements configured:
ip route 0.0.0.0 0.0.0.0 172.22.1.1 ip route 192.168.200.0 255.255.255.0 10.89.129.2 ip route 192.168.210.0 255.255.255.0 10.89.129.2 ip route 192.168.220.0 255.255.255.0 10.89.129.2 ip route 192.168.230.0 255.255.255.0 10.89.129.2
If Router A was replaced with a ASA, the configuration can look like this:
route outside 0.0.0.0 0.0.0.0 172.22.1.1 route outside 192.168.200.0 255.255.255.0 10.89.129.2 route outside 192.168.200.0 255.255.255.0 10.89.129.2 route outside 192.168.200.0 255.255.255.0 10.89.129.2 route outside 192.168.200.0 255.255.255.0 10.89.129.2
If a large number of networks exist behind each endpoint, the configuration of static routes becomes difficult to maintain. Instead, it is recommended you use Reverse Route Injection. RRI places the routing table routes for all the remote networks listed in the crypto ACL. For example, the crypto ACL and crypto map of Router A can look like this:
access-list 110 permit ip 192.168.100.0 0.0.0.255 192.168.200.0 0.0.0.255 access-list 110 permit ip 192.168.100.0 0.0.0.255 192.168.210.0 0.0.0.255 access-list 110 permit ip 192.168.100.0 0.0.0.255 192.168.220.0 0.0.0.255 access-list 110 permit ip 192.168.100.0 0.0.0.255 192.168.230.0 0.0.0.255 crypto map myMAP 10 ipsec-isakmp set peer 10.89.129.2 reverse-route set transform-set mySET match address 110
If Router A was replaced by ASA, the configuration can look like this:
access-list cryptoACL extended permit ip 192.168.100.0 255.255.255.0 192.168.200.0 255.255.255.0 access-list cryptoACL extended permit ip 192.168.100.0 255.255.255.0 192.168.210.0 255.255.255.0 access-list cryptoACL extended permit ip 192.168.100.0 255.255.255.0 192.168.220.0 255.255.255.0 access-list cryptoACL extended permit ip 192.168.100.0 255.255.255.0 192.168.230.0 255.255.255.0 crypto map myMAP 10 match address cryptoACL crypto map myMAP 10 set peer 10.89.129.2 crypto map myMAP 10 set transform-set mySET crypto map mymap 10 set reverse-route
In a Remote Access configuration, routing changes are not always necessary. Yet, if other routers exist behind the VPN gateway router or Security Appliance, those routers must learn the path to the VPN clients. In this example, imagine the VPN clients are given addresses in the range of10.0.0.0 /24when they connect.
If no routing protocol is in use between the gateway and the other router(s), static routes can be used on routers such as Router 2:
ip route 10.0.0.0 255.255.255.0 192.168.100.1
If a routing protocol such as EIGRP or OSPF is in use between the gateway and other routers, it is recommended that Reverse Route Injection be used as described. RRI automatically adds routes for the VPN client to the routing table of the gateway. These routes can then be distributed to the other routers in the network.
Cisco IOS® Router:
crypto dynamic-map dynMAP 10 set transform-set mySET reverse-route crypto map myMAP 60000 ipsec-isakmp dynamic dynMAP
Cisco ASA Security Appliance:
crypto dynamic-map dynMAP 10 set transform-set mySET crypto dynamic-map dynMAP 10 set reverse-route crypto map myMAP 60000 ipsec-isakmp dynamic dynMAP
The routing issue occurs if the pool of IP addresses assigned for the VPN clients are overlaps with internal networks of the headend device. For further information, refer to theOverlapping Private Networkssection .
Ensure the IPsec encryption and hash algorithms used by the transform set on both ends are the same. Refer to theCommand Referencesection of the Cisco Security Appliance configuration guide for more information. For the ISAKMP policy and IPsec Transform set used on the ASA, the Cisco VPN client cannot use a policy with a combination of DES and SHA. If you use DES, you need to use MD5 for the hash algorithm, or you can use the other combinations, 3DES with SHA and 3DES with MD5.
If static and dynamic peers are configured on the same crypto map, the order of the crypto map entries is critical. The sequence number of the dynamic crypto map entrymust behigher than all other static crypto map entries. If the static entries are numbered higher than the dynamic entries, connections with those peers fail and the debugs as shown appears:
IKEv1]: Group = x.x.x.x, IP = x.x.x.x, QM FSM error (P2 struct &0x49ba5a0, mess id 0xcd600011)! [IKEv1]: Group = x.x.x.x, IP = x.x.x.x, Removing peer from correlator table failed, no match!
Only one Dynamic Crypto map is allowed for each interface in the Security Appliance. This is an example of a properly numbered crypto map that contains a static entry and a dynamic entry. The dynamic entry has the highest sequence number and room has been left to add additional static entries:
crypto dynamic-map cisco 20 set transform-set myset crypto map mymap 10 match address 100 crypto map mymap 10 set peer 172.16.77.10 crypto map mymap 10 set transform-set myset crypto map mymap interface outside crypto map mymap 60000 ipsec-isakmp dynamic ciscothe
Crypto map names are case-sensitive. This error message can also be seen when the dynamic crypto map sequence is incorrect which causes the peer to hit the wrong crypto map. This is also caused by a mismatched crypto access list that defines traffic:%ASA-3-713042: IKE Initiator unable to find policy:
In a scenario where multiple VPN tunnels is terminated in the same interface, create a crypto map with the same name (only one crypto map is allowed per interface), but with a different sequence number. This holds true for the router, and ASA. Refer toASA: Add a New Tunnel or Remote Access to an Existing L2L VPN - Ciscofor more information on crypto map configuration for both L2L and Remote Access VPN scenarios.
Create and manage the database of connection-specific records for IPsec. For a ASA Security Appliance LAN-to-LAN (L2L) IPsec VPN configuration, specify the<name>of the tunnel group as the Remote peer IP Address (remote tunnel end) in thetunnel-group <name> type ipsec-l2lcommand. The peer IP address must match thetunnel group nameand theCrypto map set addresscommands. When you configure the VPN with ASDM, it generates the tunnel group name automatically with the correct peer IP address. If the peer IP Address is not configured properly, the logs can contain this message, which can be resolved by proper configuration of thePeer IP Address:
[IKEv1]: Group = DefaultL2LGroup, IP = x.x.x.x, ERROR, had problems decrypting packet, probably due to mismatched pre-shared key. Aborting
When the peer IP address has not been configured properly on the ASA crypto configuration, the ASA cannot establish the VPN tunnel and hangs in theMM_WAIT_MSG4stage only. To resolve this issue, correct the peer IP address in the configuration. This is the output of theshow crypto isakmp sacommand when the VPN tunnel hangs at in the MM_WAIT_MSG4 state:
hostname#show crypto isakmp sa
1 IKE Peer: XX.XX.XX.XX
Type : L2L Role : initiator
Rekey : no State : MM_WAIT_MSG4
%ASA-3-713206: Tunnel Rejected: Conflicting protocols specified by tunnel-group and group-policy
This message appears when a tunnel is dropped because the allowed tunnel specified in the group policy is different than the allowed tunnel in the tunnel-group configuration.
group-policy hf_group_policy attributes vpn-tunnel-protocol l2tp-ipsec username hfremote attributes vpn-tunnel-protocol l2tp-ipsec Both lines read: vpn-tunnel-protocol ipsec l2tp-ipsec
Enable IPSec In the default group policy to the existing protocols in the default group policy.
group-policy DfltGrpPolicy attributes vpn-tunnel-protocol L2TP-IPSec IPSec webvpn
If a LAN-to-LAN tunnel and a Remote Access VPN tunnel are configured on the same crypto map, the LAN-to-LAN peer is prompted for XAUTH information, and the LAN-to-LAN tunnel fails with CONF_XAUTH in the output of theshow crypto isakmp sacommand. This is an example of the SA output:
Router#show crypto isakmp sa IPv4 Crypto ISAKMP SA dst src state conn-id slot status X.X.X.X Y.Y.Y.Y CONF_XAUTH 10223 0 ACTIVE X.X.X.X Z.Z.Z.Z CONF_XAUTH 10197 0 ACTIVE
This problem only applies to Cisco IOS® where ASA is not affected by this issue as it uses tunnel-groups. Run theno-xauthkeyword when you enter the ISAKMP key, so the device does not prompt the peer for XAUTH information (username and password). This keyword disables XAUTH for static IPsec peers. Run a command similar to this on the device that has both L2L and RA VPN configured on the same crypto map:
router(config)#crypto isakmp key cisco123 address 172.22.1.164 no-xauth
In the scenario where the ASA acts as the Easy VPN Server, the easy VPN client cannot connect to the headend because of an Xauth issue. Disable the user authentication in the ASA to resolve the issue:
ASA(config)#tunnel-group example-group type ipsec-ra ASA(config)#tunnel-group example-group ipsec-attributes ASA(config-tunnel-ipsec)#isakmp ikev1-user-authentication none
Refer to theMiscellaneoussection of this document to find more information on theisakmp ikev1-user-authenticationcommand.
When the range of IP addresses assigned to the VPN pool are not sufficient, you can extend the availability of IP addresses in two ways:
Remove the existing range and define the new range:
CiscoASA(config)#no ip local pool testvpnpool 10.76.41.1-10.76.41.254 CiscoASA(config)#ip local pool testvpnpool 10.76.41.1-10.76.42.254
When discontiguous subnets must be added to the VPN pool, you can define two separate VPN pools and then specify them under the "tunnel-group attributes ". This is an example:
CiscoASA(config)#ip local pool testvpnpoolAB 10.76.41.1-10.76.42.254 CiscoASA(config)#ip local pool testvpnpoolCD 10.76.45.1-10.76.45.254 CiscoASA(config)#tunnel-group test type remote-access CiscoASA(config)#tunnel-group test general-attributes CiscoASA(config-tunnel-general)#address-pool (inside) testvpnpoolAB testvpnpoolCD CiscoASA(config-tunnel-general)#exit
The order you specify the pools is important because the ASA allocates addresses from these pools in the order the pools appear in this command. The address pools settings in the group policy address pools command always overrides the local pool settings in the tunnel-group address-pool command.
When there are latency issues over a VPN connection, verify these conditions to resolve this:
Verify if the MSS of the packet can be reduced further.
If IPsec/tcp is used instead of IPsec/udp, then configurepreserve-vpn-flow.
Re-load the Cisco ASA.
Cisco VPN clients cannot authenticate when the Xauth is used with the Radius server.
At times, Xauth times out, you can increase the timeout value for the AAA server to resolve this issue. For example:
Hostname(config)#aaa-server test protocol radius hostname(config-aaa-server-group)#aaa-server test host 10.2.3.4 hostname(config-aaa-server-host)#timeout 10
Cisco VPN clients are unable to authenticate when the X-auth is used with the Radius server.
Initially, ensure the authentication operates properly. To narrow down the issue, first verify the authentication with local database on ASA.
tunnel-group tggroup general-attributes
authentication-server-group none
authentication-server-group LOCAL
exit
If this works, the problem is related to the Radius server configuration. Verify the connectivity of the Radius server from the ASA. If the ping performs without any issue, then check the Radius-related configuration on ASA and the database configuration on the Radius server. You can run thedebug radiuscommand to troubleshoot radius related issues. For sampledebug radiusoutput, refer to thisSample Output. Before you use thedebugcommand on the ASA, refer to this documentationWarning message.
Cisco VPN client users receive this error when they attempt the connection with the head end VPN device.
This issue can relate to the IP pool assignment either through ASA, Radius server, DHCP server, or through the Radius server which acts as a DHCP server. Run thedebug cryptocommand to verify the netmask and IP addresses are correct. Also, confirm the pool does not include the network address and the broadcast address. Radius servers must assign the proper IP addresses to the clients.
This problem also occurs due to the failure of extended authentication. You must check the AAA server to troubleshoot this error. Check the server authentication password on the server and client. Reloading the AAA server can resolve this issue.
Another workaround for this issue is to disable the threat detection feature. When there are multiple re-transmissions for different and incomplete Security Associations (SAs), the ASA with the threat-detection feature enabled thinks a scanning attack occurred and the VPN ports are marked as the main offender. Disable the threat-detection feature as this can cause overhead issues on the processing of ASA. Run these commands to disable the threat detection:
no threat-detection basic-threat no threat-detection scanning-threat shun no threat-detection statistics no threat-detection rate
This can be used as a workaround to verify if this resolves the issue. Ensure you disable the threat detection on the Cisco ASA as this compromises several security features such as mitigation of the Scanning Attempts, DoS with Invalid SPI, packets that fail Application Inspection , and Incomplete Sessions.
This issue also occurs when a transform set is not properly configured and a proper configuration of the transform set resolves the issue.
Try these solutions to resolve the issue:
Once the VPN client is established, the IPsec tunnel with the VPN headend device (ASA/Cisco IOS® Router), VPN client users can access the INSIDE network (10.10.10.0/24) resources, however. they cannot access the DMZ network (10.1.1.0/24).
Diagram
Verify the Split Tunnel, NO NAT configuration is added to the headend device to access the resources in the DMZ network.
ASA Configuration
This configuration shows how to configure the NAT exemption for the DMZ network to enable the VPN users to access the DMZ network:
object network obj-dmz subnet 10.1.1.0 255.255.255.0 object network obj-vpnpool subnet 192.168.1.0 255.255.255.0 nat (inside,dmz) 1 source static obj-dmz obj-dmz destination static obj-vpnpool obj-vpnpool
Once you add a new entry for the NAT configuration, clear the NAT translation.
Clear xlate Clear local
If the tunnel is established, go to theCisco VPN Clientand chooseStatus > Route Detailsto validate the secured routes are shown for both the DMZ and INSIDE networks.
Refer toASA: Add a New Tunnel or Remote Access to an Existing L2L VPN - Ciscofor the steps required to add a new VPN tunnel or a remote access VPN to a L2L VPN configuration that already exists. You can also refer toASA: Allow Split Tunneling for VPN Clients on the ASA Configuration Examplefor step-by-step instructions on how to allow VPN Clients access to the internet while tunneled into a Cisco 5500 Series Adaptive Security Appliance (ASA).
After the tunnel is established, if VPN Clients cannot resolve the DNS, the problem can relate to the DNS Server configuration in the headend device (ASA). Check the connectivity between the VPN Clients and the DNS Server. The DNS Server configurations must be configured under the group policy and applied under the the group policy in the tunnel-group general attributes:
!--- Create the group policy named vpn3000 and !--- specify the DNS server IP address(172.16.1.1) !--- and the domain name(cisco.com) in the group policy. group-policy vpn3000 internal group-policy vpn3000 attributes dns-server value 172.16.1.1 default-domain value cisco.com !--- Associate the group policy(vpn3000) to the tunnel group !--- with the default-group-policy. tunnel-group vpn3000 general-attributes default-group-policy vpn3000
The VPN client cannot ping the hosts or servers of the remote or headend internal network by name. You must enable the split-dns configuration on the ASA to resolve this issue.
Split tunnel allows remote-access IPsec clients conditionally direct packets over the IPsec tunnel in encrypted form or to a network interface in clear text decrypted form, where they are routed to their final destination.
Split-tunnel are disabled by default, which you can see runs the commandtunnelalltraffic.
split-tunnel-policy {tunnelall | tunnelspecified | excludespecified}
The option excludespecified is supported only for Cisco VPN clients, not EZVPN clients.
ciscoasa(config-group-policy)#split-tunnel-policy excludespecified
Refer to these documents for detailed configuration examples of split-tunnel:
ASA: Allow Split Tunneling for VPN Clients on the ASA Configuration Example
Router Allows VPN Clients to Connect IPsec and Internet Using Split Tunneling Configuration Example
This feature is useful for VPN traffic that enters an interface, but is then routed out of the same interface. For example, in a hub and spoke VPN network where the security appliance is the hub and remote VPN networks are spokes. Spoke-to-spoke communication traffic must go into the security appliance and then out again to the other spoke. Run thesame-security-trafficconfiguration to allow traffic to enter and exit the same interface:
securityappliance(config)#same-security-traffic permit intra-interface
Remote access users connect to the VPN and can connect to local networks only. For a more detailed configuration example, refer toASA: Allow local LAN access for VPN clients.
Problem
If you cannot access the internal network after the tunnel establishment, check the IP address assigned to the VPN client that overlaps with the internal network behind the headend device.
Solution
Verify the IP addresses in the pool assigned for the VPN clients, the internal network of the headend device, and the VPN Client internal network are in different networks. You can assign the same major network with different subnets, however, sometimes routing issues occur. For more examples, see theDiagramandExampleof theUnable to Access the Servers in DMZsection.
Only three VPN clients can connect to ASA/ and the connection for the fourth client fails. Upon failure, this error message is displayed:
Secure VPN Connection terminated locally by the client. Reason 413: User Authentication failed.
tunnel rejected; the maximum tunnel count has been reached
In most cases, this issue is related to a simultaneous login setting within the group policy and the maximum session-limit. Try these solutions to resolve the issue:
If theInheritcheckbox in ASDM is checked, only the default number of simultaneous logins is allowed for the user. The default value for simultaneous logins is 3. To resolve this issue, increase the value for simultaneous logins.
Launch ASDM and then navigate toConfiguration > VPN > Group Policy.
Choose the appropriateGroupand click theEditbutton.
Once in theGeneraltab, undo theInheritcheck box forSimultaneous LoginsunderConnection Settings. Choose an appropriate value in the field.
The minimum value for this field is 0, which disables logins and prevents user access. When you login with the same user account from a different PC, the current session (the connection established from another PC with the same user account) is terminated, and the new session is established. This is default behaviour and is independent to VPN simultaneous logins.
Complete these steps to configure the desired number of simultaneous logins. In this example, 20 was chosen as the desired value:
ciscoasa(config)#group-policy Bryan attributes ciscoasa(config-group-policy)#vpn-simultaneous-logins 20
To learn more on this command, refer toCisco Security Appliance Command Reference. Run thevpn-sessiondb max-session-limitcommand in the global configuration mode to limit VPN sessions to a lower value than the security appliance allows. Run thenoversion of this command to remove the session limit and run the command again to overwrite the current setting:
vpn-sessiondb max-session-limit {session-limit}
This example shows how to set a maximum VPN session limit of 450:
hostname#vpn-sessiondb max-session-limit 450
Error Message:
20932 10/26/2007 14:37:45.430 SEV=3 AUTH/5 RPT=1863 10.19.187.229 Authentication rejected: Reason = Simultaneous logins exceeded for user handle = 623, server = (none), user = 10.19.187.229, domain = <not specified>
Complete these steps to configure the desired number of simultaneous logins. You can also set the simultaneous logins to 5 for this SA. ChooseConfiguration > User Management > Groups > Modify 10.19.187.229 > General > Simultaneous Logins, and change the number of logins to5.
After the IPsec tunnel establishment, the application or the session does not initiate across the tunnel.
Run thepingcommand to check the network or find whether the application server is reachable from your network. It can be a problem with the maximum segment size (MSS) for transient packets that traverse a router or /ASA device, specifically TCP segments with the SYN bit set.
Run these commands to change the MSS value in the outside interface (tunnel end interface) of the router:
Router>enable Router#configure terminal Router(config)#interface ethernet0/1 Router(config-if)#ip tcp adjust-mss 1300 Router(config-if)#end
These messages display the debug output for TCP MSS:
Router#debug ip tcp transactions Sep 5 18:42:46.247: TCP0: state was LISTEN -> SYNRCVD [23 -> 10.0.1.1(38437)] Sep 5 18:42:46.247: TCP: tcb 32290C0 connection to 10.0.1.1:38437, peer MSS 1300, MSS is 1300 Sep 5 18:42:46.247: TCP: sending SYN, seq 580539401, ack 6015751 Sep 5 18:42:46.247: TCP0: Connection to 10.0.1.1:38437, advertising MSS 1300 Sep 5 18:42:46.251: TCP0: state was SYNRCVD -> ESTAB [23 -> 10.0.1.1(38437)]
The MSS is adjusted to 1300 on the router as configured. For more information, refer toASA and Cisco IOS®: VPN Fragmentation.
There is an inability to access the internet properly or slow transfer through the tunnel because it presents MTU size error message and MSS issues. Refer to this document to resolve the issue:
You cannot initiate the VPN tunnel from the ASA interface and after the tunnel establishment. The remote end/VPN Client cannot ping the inside interface of the ASA on the VPN tunnel. For example, the VPN client cannot initiate an SSH or HTTP connection to ASAs inside the interface over a VPN tunnel.
The inside interface cannot be pinged from the other end of the tunnel unless themanagement-accesscommand is configured in the global configuration mode.
ASA-02(config)#management-access inside ASA-02(config)#show management-access management-access inside
This command also assists with ssh initiation or http connection for inside interface of ASA through a VPN tunnel. The information holds true for DMZ interfaces as well. For example, if you want to ping the DMZ interface of /ASA or want to initiate a tunnel from the DMZ interface, then running themanagement-access DMZcommand is required.
ASA-02(config)#management-access DMZ
If the VPN client cannot connect, ensure the ESP and UDP ports are open. However, if those ports are not open, try to connect on TCP 10000 with the selection of this port under the VPN client connection entry. Right clickModify > Transport Tab > IPsec over TCP.
You cannot pass traffic across a VPN tunnel.
This issue can also occur when ESP packets are blocked. To resolve this issue, reconfigure the VPN tunnel. It can also occur when data is not encrypted, but only decrypted over the VPN tunnel as shown in this output:
ASA# sh crypto ipsec sa peer x.x.x.x
peer address: y.y.y.y
Crypto map tag: IPSec_map, seq num: 37, local addr: x.x.x.x
access-list test permit ip host xx.xx.xx.xx host yy.yy.yy.yy
local ident (addr/mask/prot/port): (xx.xx.xx.xx/255.255.255.255/0/0)
remote ident (addr/mask/prot/port): (yy.yy.yy.yy/255.255.255.255/0/0)
current_peer: y.y.y.y
#pkts encaps: 0, #pkts encrypt: 0, #pkts digest: 0
#pkts decaps: 393, #pkts decrypt: 393, #pkts verify: 393
#pkts compressed: 0, #pkts decompressed: 0
#pkts not compressed: 0, #pkts comp failed: 0, #pkts decomp failed: 0
#pre-frag successes: 0, #pre-frag failures: 0, #fragments created: 0
#PMTUs sent: 0, #PMTUs rcvd: 0, #decapsulated frgs needing reassembly: 0
#send errors: 0, #recv errors: 0
To resolve this issue, check for these conditions:
If the crypto access-lists match with the remote site, and the NAT 0 access-lists are correct.
If routing is correct and traffic hits outside the interface, which passes inside, the sample output shows decryption is complete, but encryption does not occur.
If thesysopt permit connection-vpn command is configured on the ASA. If not configured, configure this command as it exempts the encrypted/VPN traffic to the ASA from the interface ACL check.
You want to use multiple backup peers for a single VPN tunnel.
The configuration of multiple peers is equivalent to the provision of a fallback list. For each tunnel, the security appliance attempts to negotiate with the first peer in the list. If that peer does not respond, the security appliance works its way down the list until either a peer responds or there are no more peers in the list. The ASA has a crypto map already configured as the primary peer. The secondary peer can be added after the primary one. This example configuration shows the primary peer as X.X.X.X and backup peer as Y.Y.Y.Y:
ASA(config)#crypto map mymap 10 set peer X.X.X.X Y.Y.Y.Y
To temporarily disable the VPN tunnel and restart the service, complete the procedure described in this section.
Run thecrypto map interfacecommand in the global configuration mode to remove a previously defined crypto map set to an interface. Run thenoform of this command to remove the crypto map set from the interface.
hostname(config)#no crypto map map-name interface interface-name
This command removes a crypto map set to any active security appliance interface and changes the IPsec VPN tunnel to inactive in the interface. To restart the IPsec tunnel on an interface, you must assign a crypto map set to an interface before that interface can provide IPsec services.
hostname(config)#crypto map map-name interface interface-name
When a huge number of tunnels are configured on the VPN gateway, some tunnels do not pass traffic. The ASA does not receive encrypted packets for those tunnels.
This issue occurs because the ASA fails to pass the encrypted packets through the tunnels. Duplicate encryption rules are created in the ASP table.
The%ASA-5-713904: Group = DefaultRAGroup, IP = 192.0.2.0,... unsupported Transaction Mode v2 version.Tunnel terminatederror message appears.
The reason for the Transaction Mode v2error message is ASA supports only IKE Mode Config v6 and not the old v2 mode version. Use the IKE Mode Config v6 to resolve this error.
The%ASA-6-722036: Group < client-group > User < xxxx > IP < x.x.x.x> Transmitting large packet 1220 (threshold 1206)error message appears in the logs of ASA. What does this log means and how this can be resolved?
This log message states a large packet was sent to the client. The source of the packet was not aware of the MTU of the client. This can be due to compression of non-compressible data. You can turn off the SVC compression with thesvc compression none command, which resolves the issue.
If you enabled QoS on one end of the VPN Tunnel, you can receive this error message:
IPSEC: Received an ESP packet (SPI= 0xDB6E5A60, sequence number= 0x7F9F) from 10.18.7.11 (user= ghufhi) to 172.16.29.23 that failed anti-replay check
This message is normally caused when one end of the tunnel performs QoS. This happens when a packet is detected as out of order. You can disable QoS to stop this, however, it can be ignored as long as traffic can traverse through the tunnel.
When you run thecrypto map mymap 20 ipsec-isakmpcommand, you can receive this error: WARNING: crypto map entry incomplete
For example:
ciscoasa(config)#crypto map mymap 20 ipsec-isakmp WARNING: crypto map entry incomplete
This is a normal alert when you define a new crypto map; a reminder that parameters such as access-list (match address), transform set, and peer address must be configured before it can function properly. It is also standard to see the first line you type to define the crypto map, and it does not show in the configuration.
Unable to pass large ping packet across the vpn tunnel. When we try to pass large ping packets we get the error%ASA-4-400024: IDS:2151 Large ICMP packet from to on interface outside.
Disable the signatures 2150 and 2151 to resolve this issue. Once the signatures are disabled, ping functions properly. Run these commands to disable the signatures:
I received this error in the log messages of the ASA:
Error:- %|ASA-4-402119: IPSEC: Received a protocol packet (SPI=spi, sequence number= seq_num) from remote_IP (username) to local_IP that failed anti-replay check.
To resolve this error, run thecrypto ipsec security-association replay window-size command to vary the window size.
hostname(config)#crypto ipsec security-association replay window-size 1024
Cisco recommends you use the full 1024 window size to eliminate any anti-replay problems.
Few hosts cannot connect to the internet; this error message appears in the syslog: Error Message - %ASA-4-407001: Deny traffic for local-host interface_name:inside_address, license limit of number exceeded
This error message is received when the number of users exceed the user limit for license used. This error can be resolved by upgrading the license to a higher number of users. The user license can include 50, 100, or unlimited users as required.
The Error Message - %VPN_HW-4-PACKET_ERROR: error message indicates the ESP packet with HMAC received by the router are mismatched. This error can be caused by these issues:
Defective VPN H/W module
Corrupt ESP packet
To resolve this error message:
Ignore the error messages unless there is traffic disruption.
If there is traffic disruption, replace the module.
This error message appears when you attempt to add an allowed VLAN on the trunk port on a switch: Command rejected: delete crypto connection between VLAN XXXX and VLAN XXXX, first. The WAN edge trunk cannot be modified to allow additional VLANs. If you cannot add VLANs in the IPSEC VPN SPAtrunk. This command is rejected as it results in a crypto connected interface VLAN that belongs to the allowed VLAN list, which poses a potential IPSec security breach.
Note: This behavior applies to all trunk ports.
Instead of the no switchport trunk allowed vlan (vlanlist)command, run the switchport trunk allows vlan nonecommand or the "switchport trunk allowed vlan remove (vlanlist)" command.
This error occurs when you try to telnet from a device on the far end of a VPN tunnel or when you try to telnet from the router itself: Error Message - % FW-3-RESPONDER_WND_SCALE_INI+NO_SCALE: Dropped packet - Invalid Window Scale option for session x.x.x.x:27331 to x.x.x.x:23 pediaK[Initiator(flag 0,factor 0) Responder (flag 1, factor2)]
The user license can include 50, 100, or unlimited users as required. Window scale function was added to allow for rapid transmission of data on long fat networks (LFN). These are typically connections with high bandwidth and high latency. Networks with satellite connections are one example of an LFN, since satellite links always have high propagation delays with typically high bandwidth. To enable window scale function to support LFNs, the TCP window size must be more than 65,535. This error message can be resolved if you increase the TCP window size to be more than 65,535.
This error message appears once the VPN tunnel comes up: %ASA-5-305013: Asymetric NAT rules matches for forward and reverse. Please update this issue flows.
To resolve this issue when not on the same interface as the host with NAT, use the mapped address instead of the actual address to connect to the host. In addition, enable theinspectcommand if the application embeds the IP address.
This error message appears if the VPN tunnel fails to come up: %ASA-5-713068: Received non-routine Notify message: notify_type
This message occurs due to misconfiguration (when policies or ACLs are not configured the same on peers). Once the policies and ACLs are matched, the tunnel comes up without any issue.
One of these error messages appear when you attempt to upgrade the Cisco Adaptive Security Appliance (ASA):
These error messages are informative errors ad they do not impact the functionality of the ASA or the VPN. They appear when the VPN failover subsystem cannot update IPsec-related runtime data because the related IPsec tunnel has been deleted on the standby unit. To resolve these, run thewr standbycommand on the active unit.
The %ASA-3-713063: IKE Peer address not configured for destination 0.0.0.0 error message appears and the tunnel fails to display.
This message appears when the IKE peer address is not configured for a L2L tunnel. The error can be resolved if you change the sequence number of crypto map, then remove and reapply the crypto map.
The %ASA-3-752006: Tunnel Manager failed to dispatch a KEY_ACQUIRE message. Probable misconfiguration of the crypto map or tunnel-group. error message is logged on the Cisco ASA.
This error message can be caused by a misconfiguration of the crypto map or tunnel group. Ensure both are configured properly. For more information on this error message, refer toError 752006.
Here are some of the corrective actions:
Remove the crypto ACL associated to the dynamic map.
Remove unused IKEv2 related configuration, if any.
Verify the crypto ACL is properly matched.
Remove any duplicate access-list entries.
In a LAN-to-LAN VPN tunnel setup, this error is received on one end ASA:
The decapsulated inner packet does not match the negotiated policy in the SA.
The packet specifies its destination as 10.32.77.67, its source as 10.105.30.1, and its protocol as icmp.
The SA specifics its local proxy as 10.32.77.67/255.255.255.255/ip/0 and its remote_proxy as 10.105.42.192/255.255.255.224/ip/0.
You must verify the unique traffic access-lists defined on both ends of the VPN tunnel. Both must match as exact mirror images.
The failed to launch 64-bit VA installer to enable the virtual adapter due to error 0xffffffff log message is received when AnyConnect fails to connect.
Complete these steps to resolve this issue:
Go toSystem > Internet Communication Management > Internet Communication settingsand ensureTurn Off Automatic Root Certificates Updateis disabled.
If it is disabled, then disable the entireAdministrative Templateportion of the GPO assigned to the affected machine and test again. Refer toTurn off Automatic Root Certificates Updatefor more information.
Cisco VPN Client does not work with the data card on Windows 7.
Cisco VPN Client installed on Windows 7 does not work with 3G connections as data cards are not supported on VPN clients installed on Windows 7 machines.
During attempts to enable the ISAKMP on the outside interface of ASA, this alert message is received:
ASA(config)# crypto isakmp enable outside WARNING, system is running low on memory. Performance may start to degrade. VPN functionality may not work at all.
Access to ASA through SSH and HTTPS is stopped and other SSL clients are also affected.
This problem is due to memory requirements by different modules such as logger and crypto. Ensure you do not have thelogging queue 0command. It causes the queue size set to 8192 and the memory allocation increases. In platforms such as ASA5505 and ASA5510, this memory allocation tends to memory-starve other modules.
This error message is received:
%ASA-3-402130: CRYPTO: Received an ESP packet (SPI = 0xXXXXXXX, sequence number= 0xXXXX) from x.x.x.x (user= user) to y.y.y.y with incorrect IPsec padding
The issue occurs because the IPSec VPN negotiates without a hash algorithm. Packet hash ensures integrity check for the ESP channel. Therefore, without hash, malformed packets are accepted undetected by the Cisco ASA and it attempts to decrypt these packets. However, because these packets are malformed, the ASA finds flaws during packet decryption. This causes the padding error messages that are seen. The recommendation is to include a hash algorithm in the transform set for the VPN and to ensure the link between the peers has minimum packet malformation.
The VPN tunnel is disconnected after every 18 hours even though the lifetime is set for 24 hours.
The lifetime is the maximum time the SA can be used for a rekey. The value you enter in the configuration as the lifetime is different from the rekey time of the SA. It is necessary to negotiate a new SA (or SA pair in the case of IPsec) before the current one expires. The rekey time must be smaller than the lifetime to allow for multiple attempts in case the first rekey attempt fails.
The RFCs does not specify how to calculate the rekey time. This is left up to your discretion, therefore, the time varies with the platform. Some implementations can use a random factor to calculate the rekey timer. For example, if the ASA initiates the tunnel, it is normal it rekeys at 64800 seconds = 75% of 86400. If the router initiates, then the ASA can wait longer to provide the peer more time to initiate the rekey. So, it is normal the VPN session is disconnected every 18 hours to use another key for the VPN negotiation.
Traffic flow is not maintained after the LAN to LAN tunnel is re-negotiated.
The ASA monitors every connection that passes through and maintains an entry in its state table in accordance with the application inspection feature. Encrypted traffic details that pass through the VPN are maintained in the form of a security association (SA) database. For LAN to LAN VPN connections, it maintains two different traffic flows. One is encrypted traffic between VPN gateways. The other is the traffic flow between the network resource behind the VPN gateway and the end-user behind the other end.
When the VPN is terminated, the flow details for this particular SA are deleted. However, the state table entry maintained by the ASA for this TCP connection becomes stale because of no activity, which hampers the download. This means, the ASA still retains the TCP connection for that particular flow while the user application terminates. The TCP connections become stray and eventually timeout after the TCP idle-timer expires. This problem has been resolved with the introduction of a feature called Persistent IPSec Tunneled Flows. A new command,sysopt connection preserve-vpn-flows has been integrated into the Cisco ASA to retain the state table information at the re-negotiation of the VPN tunnel.
By default, this command is disabled. To enable this, the Cisco ASA maintains the TCP state table information when the L2L VPN recovers from the disruption and re-establishes the tunnel.
This error message is received on the 2900 Series Router:
Error: Mar 20 10:51:29: %CERM-4-TX_BW_LIMIT: Maximum Tx Bandwidth limit of 8500 Kbps reached for Crypto functionality with securityk9 technology package llicense.
This is a known issue that occurs because of the strict guidelines issued by the United States government. In accordance to the securityk9 license, it can only allow a payload encryption up to rates close to 90 Mbps and it limits the number of encrypted tunnels/TLS sessions to the device. For more information on crypto export restrictions, refer toCisco ISR G2 SEC and HSEC Licensing.
For Cisco devices, it is derived to be less than 85 Mbps unidirectional traffic in or out of the ISR G2 router with a bidirectional total of 170 Mbps. This requirement applies for Cisco 1900, 2900, and 3900 ISR G2 platforms. This command helps to view these limitations:
Router#show platform cerm-information Crypto Export Restrictions Manager(CERM) Information: CERM functionality: ENABLED ---------------------------------------------------------------- Resource Maximum Limit Available ---------------------------------------------------------------- Tx Bandwidth(in kbps) 85000 85000 Rx Bandwidth(in kbps) 85000 85000 Number of tunnels 225 225 Number of TLS sessions 1000 1000 ---Output truncated----
To avoid this problem, purchase a HSECK9 license. A "hseck9" feature license provides enhanced payload encryption functionality with increased VPN tunnel counts and secure voice sessions. For more information on Cisco ISR Router licensing, refer toSoftware Activation.
This issue has been observed on an IPsec connection after multiple rekeys, however, the trigger condition is unclear. The presence of this issue can be established if you check the output of theshow asp dropcommand and verify the Expired VPN context counter increases for each outbound packet sent.
If the tunnel is not initiated, the AG_INIT_EXCHmessage appears in the output of theshow crypto isakmp sacommand and in thedebugoutput as well. The reason can be related to a mismatch of ISAKMP policies or if udp port 500 is blocked.
This message is an informational message and has nothing to do with the disconnection of the VPN tunnel.
| Revision | Publish Date | Comments |
|---|---|---|
2.0 |
22-Jul-2026
|
Updated spelling, grammar, inserted horizontal lines to separate sections for readability, fixed CCW alerts. |
1.0 |
31-Mar-2014
|
Initial Release |