> Source: [sk173828](https://support.checkpoint.com/results/sk/sk173828)

# sk173828 - VPN to DAIP gateways randomly fails key exchange

| Property | Value |
|----------|-------|
| Solution ID | sk173828 |
| Date Created | 2021-06-02 |
| Last Modified | 2023-04-20 |
| Technical Level | General |
| Products | Security Gateway |
| Versions | R81 (EOS) |

## Symptoms

- * VPN to DAIP gateways randomly fails IKEv1 key exchange.
* `$FWDIR/log/vpnd.elg` shows;  
  WriteSA: ioctl VPN_WRITE_IKE_SA failed - kernel lost track of IKE SA  
  RespMMPacketError: error in FWIKE_EXCH_MAIN_MODE - FWIKE_MM_PACKET_6  
* kernel debug shows;  
  write_ikev1_sa: cookieI:76941438 214b575b cookieR:1efaa954 9d4a17e8 newsa:1 timeout=86400;  
  write_ikev1_sa: Already have 20 IKE SAs with \&LTiterated DAIP ip,\>

## Cause

The new IKE SA is not stored in the kernel due to maximum number of negotiations already stored.

<br />

## Solution

This problem was fixed. The fix is included in:

* [Jumbo Hotfix Accumulator for R81](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk170114) starting from Take 60
* [Jumbo Hotfix Accumulator for R80.40](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk165456) starting from Take 158

If you choose not to upgrade, Check Point can supply a **Hotfix** . [Contact Check Point Support](https://www.checkpoint.com/support-services/contact-support/) to get a Hotfix for this issue.  
A Support Engineer will make sure the Hotfix is compatible with your environment before providing the Hotfix.  
For faster resolution and verification, please collect [CPinfo files](http://supportcontent.checkpoint.com/solutions?id=sk92739) from the Security Management Server and Security Gateways involved in the case.

**Hotfix installation instructions:**   
Refer to [sk168597 - How to install a Hotfix](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk168597).

<br />

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
