Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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

SectionOptionTypeStrongSwan configuration fileStrongSwan configuration option Description
ipsec



Global configuration 

debugintstrongswan.confsyslogwhether to enable log information

rtinstall_enabledbooleanstrongswan.confinstall_routes

ignore_routing_tablesliststrongswan.confignore_routing_tables

interfaceliststrongswan.confinterfaces_use
remote 



Define a group remote tunnels with same security configuration

tunnellist 



transport list



enabled boolean 

whether this configuration is enabled 

gateway String 

ipsec.secrets

ipsec.conf

local_gateway/remote_gateway

right 



pre_shared_key String ipsec.secrets PSK 

auth_method String ipsec.conf leftauth/rightauth 

local_identifier String 

ipsec.secrets

ipsec.conf

 

local_identifier

leftid 



remote_identifier String 

ipsec.secrets

ipsec.conf

 

remote_identifier

rightid



crypto_proposal listipsec.conf ike 

force_crypto_proposal boolean


tunnel

/transport





Define configuration for a tunnel or transport

modeString ipsec.conf auto

local_subnetString ipsec.conf leftsubnet

local_natString ipsec.conf leftsubnet

local_sourceipString ipsec.conf leftsourceip

local_updownString ipsec.conf leftupdown

local_firewallString ipsec.conf leftfirewall

remote_subnetString ipsec.conf rightsubnet

remote_sourceipString ipsec.conf rightsourceip

remote_updownString ipsec.conf rightupdown

remote_firewallString ipsec.conf rightfirewall

ikelifetime String ipsec.conf ikelifetime

lifetime String ipsec.conf lifetime

margintime  String  ipsec.conf margintime 

keyingtries String  ipsec.conf  keyingtries 

dpdaction String  ipsec.conf  dpdaction 

dpddelay String  ipsec.conf  dpddelay 

inactivity  boolean ipsec.conf  inactivity  

keyexchange  String  ipsec.conf  keyexchange  

crypto_proposal list ipsec.conf  esp
proposal  



Define configuration for a proposal 

encryption_algorithm String   ipsec.conf   ike/esp 

hash_algorithm String   ipsec.conf   ike/esp 

dh_groupString  ipsec.conf  ike/esp

IPSec CRD

IPSec CRD will be created by EWAN config Agent to configurate a remote configuration. it is defined as below, with filed map to ipsec configuration.

SDEWAN IPSec CRD
apiVersion: sdewan.akraino.org/v1alpha1 
kind: Mwan3Rule 
metadata: 
  name: example1-rule 
spec: 
  policy: balance1: - ovn-net1: weight: 2 metric: 2 - ovn-net2: weight: 3 metric: 3 rule: - name: 'https' policy: balance1 dest_ip: 0.0.0.0/0 dest_port: 443 - name: 'http' policy: balance1 dest_ip: 0.0.0.0/0 dest_port: 80
  • No labels