# IPSec Tunnel Endpoint iApp

**URL:** <https://community.f5.com/t/ipsec-tunnel-endpoint-iapp/66635>\
**Category:** Community CodeShare\
**Tags:** vpn, ipsec, aws, cloud, application-delivery, azure\
**Created:** [August 3, 2016, 9:02pm UTC](https://community.f5.com/t/ipsec-tunnel-endpoint-iapp/66635 "2016-08-03T21:02:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg\_Coward](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/greg_coward/32/5566_2.png) [@Greg\_Coward](https://community.f5.com/u/Greg_Coward)\
**Post date:** [August 3, 2016, 9:02pm UTC](https://community.f5.com/t/ipsec-tunnel-endpoint-iapp/66635/1 "2016-08-03T21:02:03Z")

</div>

**Problem this snippet solves:**

This iAPP template creates a complete configuration for establishing an IPSec tunnel between a Windows Azure virtual network and your F5 protected corporate network. Additionally, this iApp may be utilized for establishing site-2-site VPN between any compatible IPSec device.

The BIG-IP supports both policy and route-based VPNs.

Contributed by: Gregory Coward, Solution Architect

**Code :**

```auto
75380

```

**Tested this on version:**

12.0

---

<div class="post-metadata">

**Author:** ![Dante\_T\_178424](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@Dante\_T\_178424](https://community.f5.com/u/Dante_T_178424)\
**Post date:** [May 1, 2017, 4:18am UTC](https://community.f5.com/t/ipsec-tunnel-endpoint-iapp/66635/2 "2017-05-01T04:18:17Z")

</div>

Hello,

When I try to delete the application I am getting the following error:

01070265:3: The Tunnel (/Common/AzureS2S.app/AzureS2S\_Tunnel) cannot be deleted because it is in use by a IPsec map (/Common/AzureS2S.app/AzureS2S\_Tunnel 1).

Any suggestions on how to delete the application?

---

<div class="post-metadata">

**Author:** ![Greg\_Coward](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/greg_coward/32/5566_2.png) [@Greg\_Coward](https://community.f5.com/u/Greg_Coward)\
**Post date:** [May 1, 2017, 3:17pm UTC](https://community.f5.com/t/ipsec-tunnel-endpoint-iapp/66635/3 "2017-05-01T15:17:15Z")

</div>

Hi there Dante,

Sorry, iApps seem to have a little “process ordering” issue when it comes to removing tunnels. To delete the iApp instance, you need to manually delete in order:

1. Disable ‘strict updates’ for the iApp instance - (a. click on deploy application service, b. select ‘properties’, c. ‘advanced’, d. uncheck ‘Strict Update’, e. select ‘update’)

2. Route created directing traffic to the IPsec tunnel (Network - Routes)

3. Tunnel Self-IP (Network - Self IPs)

4. Tunnel (Network - Tunnels)

5. Delete the iApp instance to remove remaining objects.

---

<div class="post-metadata">

**Author:** ![Sebastian\_Agui1](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Sebastian\_Agui1](https://community.f5.com/u/Sebastian_Agui1)\
**Post date:** [November 14, 2017, 7:08pm UTC](https://community.f5.com/t/ipsec-tunnel-endpoint-iapp/66635/4 "2017-11-14T19:08:58Z")

</div>

Hi, wich provisioning do i need to use this iApp?

---

<div class="post-metadata">

**Author:** ![Squeak](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Squeak](https://community.f5.com/u/Squeak)\
**Post date:** [April 17, 2018, 9:57am UTC](https://community.f5.com/t/ipsec-tunnel-endpoint-iapp/66635/5 "2018-04-17T09:57:23Z")

</div>

@Sebastian Aguirre G

You´ll need to provision LTM and APM.
