User Tools

Site Tools


Sidebar

Kerlink Wiki Home Page

Home

Setups

General information

Wirnet™ iBTS information

Wirnet™ iFemtoCell information

Wirnet™ iFemtoCell-evolution information

Wirnet™ iStation information

System management

Network management

LoRa Features

KerOS customization

Support and resources



www.kerlink.com

wiki:network_mana:secure_network:ipsec_openvpn

IPsec / OpenVPN

This section does not concern WMC server. The Kerlink WMC already provides OpenVPN.

The KerOS firmware comes with strongSwan and OpenVPN clients pre-installed. The credentials, however, need to be stored in a very specific way, described in this page.

Please ensure the server's version matches the client's version.

For example, if the embedded client's version is OpenVPN 2.3.14, please ensure the server uses a compatible version (if possible, the same).

You can check the version with:

openvpn --version

Or:

ipsec --version

KerOs 4.x

Overview

The steps to make the VPN work are the following:

  1. Setup a PKI (Public Key Infrastructure) to be able to produce secrets.
  2. Generate secrets for the gateways to connect, in the PKCS#12 format.
  3. Write the main VPN configuration file (must match the server configuration).
  4. Write the ProvenCore specific configuration file.
  5. Cipher the ProvenCore specific configuration file.
  6. Cipher the P12 file.
  7. Initialize the TrustZone.
  8. Upload the ProvenCore specific ciphered configuration file to the TrustZone.
  9. Upload the ciphered P12 file to the TrustZone.
  10. Start the VPN client using the main VPN configuration file.

All the pnr_uploader commands return with a status. If the status is different from 0, this is a failure. Stop and ensure you followed all the steps before you continue.

General information

Wirnet™ i-series gateways embed the TrustZone security feature provided by ARM microprocessors. TrustZone technology is used to run a trusted boot and a trusted OS to create a Trusted Execution Environment.

The trusted OS is ProvenCore, from Prove&Run.

The firmware comes with two VPN clients: strongSwan (IPSec) and OpenVPN. These clients are modified to be able to read the secrets (passwords, keys, certificates, etc.) from that hardware-backed secure storage. This means that the sensitive data is encrypted and stored in a memory that cannot be read from the userland or even the kernel. The only way the data can be extracted is through the use of the embedded VPN clients, which are compiled using a dedicated library provided by ProvenCore.

The entire secret management on KerOS firmware is handled by ProvenCore for OpenVPN/strongSwan.

The TrustZone in the Wirnet iBTS is composed of five blocks, each having its dedicated purpose:

  • Block 0: ipsec.secrets config file
  • Block 2: OpenVPN config file
  • Block 10: Client certificate (OpenVPN)
  • Block 20: Client certificate (IPsec)

Step by step guide

Here are some examples that can be used to setup a whole VPN infrastructure:

  1. VPN - PKI management: VPN server setup
  2. VPN server configuration: VPN server configuration
  3. Setting up the VPN client: VPN client configuration
  4. Running the application: VPN client startup

KerOs 5.x

IPsec

IPSec is not yet supported

OpenVPN

On keros 5.x, unlike keros 4.x, OpenVPN is independant from ProvenCore and can be used like as on any linux system. There is no need to encrypt and store passwords, keys and certificates in the TrustZone.

There may be some limitations at the level of the Cipher depending on the version used. Use the command below to know the supported cipher :

openvpn --show-ciphers

Step by step guide : openvpn

wiki/network_mana/secure_network/ipsec_openvpn.txt · Last modified: 2023/03/28 15:46 by gja