This article shows how to make an IPsec tunnel on a FlexEdge™ DA50A or DA70A negotiate with IKEv2 (Internet Key Exchange version 2). Use it when the device at the other end of the tunnel, such as a corporate firewall, accepts only IKEv2.
Crimson 3.2 has no IKE version setting on the IPsec page. With the standard settings, the FlexEdge negotiates IKEv1. Its tunnel status shows STATE_MAIN and STATE_QUICK, which are IKEv1 Main Mode and Quick Mode. An IKEv2-only peer is refused with a log message such as no suitable connection found with IKEv2 policy. To use IKEv2, add one entry on the tunnel's Custom tab, as described below.
Note: This procedure was tested with firmware 3.2.1060 on a tunnel between a FlexEdge DA50A and a DA70A. The tunnel negotiated IKEv2 and passed traffic.
Preparation
-
A working IPsec configuration:
- Set up the tunnel first by following How to Set Up an IPSec Tunnel Between Two FlexEdge DA50A/DA70A Devices. This article only changes how the tunnel negotiates.
-
The peer's IKEv2 settings:
- Phase 1 (IKE) encryption, authentication, and DH group.
- Phase 2 (ESP) encryption and authentication, and whether the peer uses Perfect Forward Secrecy (PFS) with a specific DH group.
- The local and remote IDs the peer expects, and the preshared key or certificates.
-
Both ends set to IKEv2:
- If both ends of the tunnel are FlexEdge devices, apply Part 1 to both.
Part 1: Configure the Tunnel for IKEv2
Step 1: Match the Phase 1 and Phase 2 Settings
- In Crimson 3.2, navigate to System Configuration > Network > Tunnels > IPsec 1.
- Select the Advanced tab.
- Set the following:
- Phase 1 Negotiation Mode: Main.
- Phase 1 Encryption, Phase 1 Authentication, and Phase 1 DH Group: the same values as the peer, for example AES256, SHA256, and DH14 (2048-bit MODP).
- Phase 2 Encryption and Phase 2 Authentication: the same values as the peer.
Note: IKEv2 has no Aggressive Mode. Leave Phase 1 Negotiation Mode at Main, even if the peer's IKEv1 settings show Aggressive. If it is set to Aggressive, the tunnel still negotiates IKEv2, but the Status tab then shows AGGRESSIVE in its policy line, which is misleading.
Step 2: Add the IKEv2 Custom Option
- Select the Custom tab.
- Click the green pencil icon in the Custom Options table.
- In the Insert Option dialog, set the following:
- Name: ikev2.
- Value: yes.
- Override: Enabled.
- Click OK.
Note: Override must be Enabled. Crimson's help for this field says that, when it is set, any configuration lines generated by Crimson that match the Name are removed before the custom entry is added. Crimson already writes its own line for the tunnel, ikev2=permit, and that line keeps the tunnel on IKEv1. With Override Disabled, the tunnel stays on IKEv1.
Step 3: Send the Configuration
- Save the database.
- Click Link > Update to send the configuration to the FlexEdge.
- If the other end is also a FlexEdge, repeat Part 1 on that device.
Part 2: Verify the Tunnel Uses IKEv2
- Open the FlexEdge web GUI using its LAN address.
- On the Home page, select IPsec 1.
- Select the Status tab and check the IPsec Status section:
- IKEv2: the policy line starts with policy: IKEv2, and the state lines show STATE_V2_ESTABLISHED_IKE_SA and STATE_V2_ESTABLISHED_CHILD_SA.
- IKEv1, so the custom option is not active: the policy line starts with policy: IKEv1, and the state lines show STATE_MAIN and STATE_QUICK.
Note: The tunnel showing UP on the Home page doesn't prove which IKE version was negotiated. Use the Status tab.
Part 3: Frequently Asked Questions (FAQ)
Question: Is there a setting in Crimson to choose IKEv1 or IKEv2?
Answer: No. Crimson 3.2's IPsec page has no IKE version setting. The tunnel negotiates IKEv1 unless you add the ikev2 custom option described in Part 1.
Question: Will the FlexEdge switch to IKEv2 on its own if the peer only offers IKEv2?
Answer: No. With the standard settings, the FlexEdge refuses the peer's IKEv2 request and logs no suitable connection found with IKEv2 policy, followed by NO_PROPOSAL_CHOSEN. Add the custom option on the FlexEdge.
Question: The peer requires a specific DH group for Phase 2 (PFS). Where do I set it?
Answer: Crimson has no Phase 2 DH group setting. With IKEv2, the FlexEdge uses the Phase 1 DH Group for PFS when the tunnel rekeys, as long as Perfect Forward Secrecy is Enabled on the Options tab (the default). Set the peer's PFS group to the same group as Phase 1. The first Phase 2 key after the tunnel comes up never uses a separate DH exchange in IKEv2, so a PFS mismatch only shows when the tunnel rekeys, after the Phase 2 Key Lifetime (60 minutes by default).
Note: Adding a DH group to a custom esp option doesn't change this. In testing with firmware 3.2.1060, a custom option of esp = aes256-sha256-modp3072 with Override Enabled was accepted, but the rekey still used the Phase 1 group (DH14).
Question: Can one tunnel accept both IKEv1 and IKEv2 peers?
Answer: No. With the ikev2 = yes option, the tunnel uses IKEv2 only: it doesn't answer a peer that offers IKEv1, and it doesn't fall back to IKEv1 when it starts the connection. Set both ends to the same version.
Question: Do I need different firewall ports for IKEv2?
Answer: No. IKEv2 uses the same ports as IKEv1: UDP 500, and UDP 4500 when NAT traversal is in use.
Disclaimer
It is the customer's responsibility to review the advice provided herein and its applicability to the system. Red Lion makes no representation about specific knowledge of the customer's system or the specific performance of the system. Red Lion is not responsible for any damage to equipment or connected systems. The use of this document is at your own risk. Red Lion standard product warranty applies.
HMS Technical Support
If you have any questions or trouble contact HMS Technical Support by clicking here.