Description:

This document describes how to set up a certificate-based IKEv2 (site-to-site) connection between a LANCOM router and a LANCOM R&S®Unified firewall.


Requirements:

The following browsers are supported:


Scenario:

1) The Unified Firewall is connected directly to the Internet and has a public IPv4 address:


2) The Unified Firewall is connected to the Internet via an upstream router:


Procedure:
The setup for scenarios 1 and 2 are basically the same. Scenario 2 additionally requires port and protocol forwarding to be set up on the upstream router (see section 5).
 
1) Creating the CA and VPN certificates on the Unified Firewall:

1.1) Click on the "+" icon to create a new routing entry.

1.2) The first step is to create a Certification Authority (CA) for VPN connections.

1.3) Then click the Create button.

1.4) Click on the "+" icon to create a certificate for the LANCOM router at the branch office:

1.5) Then click the Create button.



1.6) Click on the "+" icon to create a VPN certificate for the United Firewall at the headquarter:

1.7) Then click the Create button.



2) Creating the VPN connection on the Unified Firewall:
2.1) Connect to the configuration interface of the Unified Firewall and navigate to VPN -> IPsec settings.

2.2) Activate IPsec.

2.3) Switch to VPN -> IPsec Connections and click on the "+" icon to create a new IPsec connection.

2.4) Save the following parameters:

If you have created your own template or security profile, you can use these here.

2,5) Open the Tunnels tab:


2.6) Change to the Authentication tab and enter the following parameters:

2.8) Click the icon to create a new VPN host.

2.9) Save the following parameters:

2.10) In the VPN host click on the "connection" icon and, to open the firewall objects, click on the network object that the object (the site-to-site connection) should access. Repeat this step for every network that the branch should be able to access.

2.11) Use the "+" sign to assign the required protocols to the VPN host.

Info: A Unified Firewall uses a deny-all strategy. You therefore have to explicitly allow communication.

Info: Firewall objects can also be accessed via Desktop -> Desktop connections and clicking on the "edit" icon.

2.12) Finally, implement the configuration changes by clicking Activate in the firewall.

2.13) This concludes the configuration steps on the Unified Firewall.
 
3) Export the VPN certificate for the LANCOM router at the branch office:

3.1) Change to the menu Certificate Management → Certificates and, for the VPN certificate for the LANCOM router, click the Export button.

3.2) Select the PKCS#12 format and enter the private Key password you configured in step 1.4 and a transport password.

3.3) Click Export and save the certificate file on your PC.


4) Configuration steps on the LANCOM router:

4.1) Upload the router certificate to the LANCOM router:

4.1.1) Right-click on the LANCOM router in LANconfig and select the option Configuration management→ Upload certificate or file.

4.1.2) In the following dialog select the VPN certificate file exported in step 3.3) intended for the LANCOM router.

4.1.3) In the certificate type field, select a VPN container. This example uses the container "VPN1".

4.1.4) In the Cert. password box enter the transport password for the certificate file (see step 3.2).

4.1.5) Click on Open to start the upload.
 
4.2) Configure the certificate-based VPN connection on the LANCOM router:

4.2.1) Start the Setup Wizard in LANconfig and select the option Connect two local area networks (VPN).

4.2.2) Select the option IKEv2.

4.2.3) In this example, we do not use IPsec-over-HTTPS.

4.2.4) Enter a name for the new VPN connection.

4.2.5) Enter any values into this dialog, as they will later be manually replaced in the configuration of the LANCOM router by the certificate authentication parameters (see step 4.2.11).

4.2.6) Activate the option Use this information for the remote identity as well.

4.2.7) The LANCOM router at the branch office should establish the VPN connection.

4.2.8) Enter the public IP address or the public DNS address of the LANCOM router at the headquarters and specify the relevant local IP address range at the remote site.

4.2.9) Click Finish to write the configuration back to the LANCOM router.

4.2.10) Open the configuration of the LANCOM router in LANconfig and navigate to VPN→ IKEv2/IPsec → Authentication.

4.2.11) Select the available entry for the certificate-based VPN connection (in this case: HEADQUARTERS).

4.2.12) Write the configuration back to the LANCOM router.

The certificate-based VPN connection to the Unified Firewall at the headquarters will now be established.


5) Setting up port and protocol forwarding on a LANCOM router (scenario 2 only):

IPSec requires the use of the UDP ports 500 and 4500 as well as the protocol ESP. These must be forwarded to the Unified Firewall.

Forwarding the UDP ports 500 and 4500 automatically causes the ESP protocol to be forwarded.

Info:
If you are using a router from another manufacturer, ask them about appropriate procedure.

Important:
If the UDP ports 500 and 4500 and the ESP protocol are forwarded to the Unified Firewall, an IPSec connection to the LANCOM router can only be used if it is encapsulated in HTTPS (IPSec-over-HTTPS). Otherwise, no IPSec connection will be established.

5.1) Open the configuration for the router in LANconfig and switch to the menu item IP-Router -> Masq . -> Port forwarding table .

5.2) Save the following parameters:

5.3) Create a further entry and specify the UDP port 4500.

5.4) Write the configuration back to the router.