IPSec Design
Introduction
ICN SDEWAN solution leverages IPSec functionality in SD-EWAN CNF to setup security tunnel to enable communication between ONAP4K8S/APPX Manager with Edge cluster or Edge cluster with Edge cluster. There are several solutions in OpenWRT to implement IPSec, include: Openswan, Racoon, and StrongSwan. ICN will use StrongSwan solution.
OpenWRT StrongSwan Basic
Service Start Flow:
StrongSwan application is run by command: "/etc/init.d/ipsec start", this command will generate StrongSwan's configuration (e.g. /etc/ipsec/*) based on openwrt configuration (e.g. /etc/config/ipsec) then start ipsec application as daemon, below diagram shows its flow
Configuration: OpenWRT's IPSec Configuration is defined in /etc/config/ipsec, the detail configuration content and map to StrongSwan configuration are described in below table
Section | Option | Type | StrongSwan configuration file | StrongSwan configuration option | Validated values | Description |
|---|---|---|---|---|---|---|
ipsec |
|
|
|
|
| Global configuration |
| debug | int | strongswan.conf | charon.syslog |
| whether to enable log information |
| rtinstall_enabled | boolean | strongswan.conf | charon.install_routes |
| Install routes into a separate routing table for established IPsec tunnels. |
| ignore_routing_tables | list | strongswan.conf | charon.ignore_routing_tables |
| A space-separated list of routing tables to be excluded from route lookup. |
| interface | list | strongswan.conf | charon.interfaces_use |
| A comma-separated list of network interfaces that should be used by charon. All other interfaces are ignored. |
remote |
|
|
|
|
| Define a group remote tunnels with same security configuration |
| tunnel | list |
|
|
|
|
| transport | list |
|
|
|
|
| enabled | boolean |
|
|
| whether this configuration is enabled |
| gateway | String | ipsec.secrets ipsec.conf | local_gateway/remote_gateway right | 192.168.0.5 | Defines the counter party ip address here |
| pre_shared_key | String | ipsec.secrets | PSK |
| Add the PSK inside the secrets file |
| authentication_method | String | ipsec.conf | leftauth/rightauth | pubkey, psk, eap, xauth | Defines the auth method that going to be used by two counter parties. |
| local_identifier | String | ipsec.secrets ipsec.conf
| local_identifier leftid | "C=CH, O=strongSwan, CN=peer" | Assigns a specific identifier for the itself (This identity will be send to the counter party inside the request) |
| remote_identifier | String | ipsec.secrets ipsec.conf
| remote_identifier rightid | "C=CH, O=strongSwan, CN=peerB" | Assigns a specific identifier for the counter party |
| crypto_proposal | list | ipsec.conf | ike | default: aes128-sha256-modp3072 | Defines list of IKE/ISAKMP SA encryption/authentication algorithms to be used |
| force_crypto_proposal | boolean |
|
|
|
|
from openwrt ipsec configuration, this option can be defined as list