Anypoint VPN has now introduced the new Initiator mode functionality. This feature allows the Anypoint VPN side to become the initiator.
By default, your CGW (customer gateway device) must bring up the tunnels for your Site-to-Site VPN connection by generating traffic and initiating the Internet Key Exchange (IKE) negotiation process. With this new feature, you can configure your VPN tunnels to specify that Anypoint VPN must initiate or restart the IKE negotiation process instead.
Initiator mode with different DPD options:
Important: This Knowledge Article aims to provide basic guidelines for configuring Anypoint VPN as initiator. The contents of the article are to be used at your own risk and are provided as-is. For further information on configuring your own VPN devices, please reach out to the device vendor.
The following IKE initiation options are available. You can implement either or both options for your VPN tunnels.
Startup action: The action to take when establishing the VPN tunnel for a new or modified VPN connection. By default, your customer gateway device initiates the IKE negotiation process to bring the tunnel up. Now you can specify that Anypoint VPN must initiate the IKE negotiation process instead.
* Don't change this value to Start on any VPN that is connected to a software based firewall running on AWS, the tunnels won't come UP, it's suggested by AWS to keep it on Add.
DPD timeout action: The action to take after dead peer detection (DPD) timeout occurs. By default, the IKE session is stopped, the tunnel goes down, and the routes are removed. You can specify that Anypoint VPN must restart the IKE session when DPD timeout occurs, or you can specify that no action is taken when DPD timeout occurs.
You can configure the IKE initiation options for one or both of the VPN tunnels in your Anypoint VPN connection.
The following limitations apply:
Important note: From the MuleSoft Side it is currently not possible to make any changes from the backend (on AWS ) to have the options to modify and select the proposals based on the customer gateway device, it would be suggested to vote for an idea through our Ideas portal:
If you do not configure IKE initiation from the Anypoint side for your VPN tunnel and the VPN connection experiences a period of idle time (usually 10 seconds, depending on your configuration), the tunnel might go down. To prevent this, you can use a network monitoring tool to generate keepalive pings.
There are two ways to enable the initiator mode, either via Runtime Manager UI or using an API call.
To enable via the Runtime Manager UI, go to VPNs section, click on your VPN and then tick the Startup Action for Initiator Mode
dPDTimeoutAction can take values : clear, none, restartStartupAction can take values: start, add
Please follow these steps:
4. Send a PUT request substituting the placeholders <org-id>, <vpc-id>, <vpn-id>, <token> with your own values from previous steps. In the below we will make this VPN the initiator so we change the "startupAction" to start.
Notes:
1) The "REMOTE_IP" , "TUNNEL_0_IP" and "TUNNEL_1_IP" values are placeholders, please replace them with the actual IPs.
2) If using Dynamic routing, you can omit the "remoteNetworks" stanza.
curl --request PUT 'https://anypoint.mulesoft.com/cloudhub/api/organizations/<org-id>/vpcs/<vpc-id>/ipsec/<vpn-id>' \
--header 'Authorization: bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"remoteIpAddress": "REMOTE_IP",
"remoteNetworks": [
"10.0.1.0/24",
"10.0.2.0/24"
],
"tunnelConfigs": [
{
"localExternalIpAddress": "TUNNEL_0_IP",
"dPDTimeoutAction": "clear",
"startupAction": "start"
},
{
"localExternalIpAddress": "TUNNEL_1_IP",
"dPDTimeoutAction": "clear",
"startupAction": "start"
}
]
}'
curl 'https://anypoint.mulesoft.com/cloudhub/api/organizations/4936c81d-1a42-41b6-8227-c25fd978d9fba/vpcs/vpc-0c6a0dd51df5c3481b/ipsec' --header 'Authorization: Bearer 8b24b2b4-21f3-4c44-98ac-7ddd76d92e6a' -s | jq -rNote: If your account is using the EU control plane, please use the endpoint https://eu1.anypoint.mulesoft.com
001122402

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.