90.10. Ubuntu Strongswan VPN Client with IKEv2 Mode

90.10.1. Installing Ubuntu Strongswan VPN Client

You need to install network-manager-strongswan, then configure it through network manager.

sudo apt install network-manager-strongswan

90.10.2. Checklist of parameters

This table show the parameters of Ubuntu Strongswan VPN Client and their corresponding parameters in Abilis configuration.

Table 90.11. Checklist of parameters

The Ubuntu Strongswan VPN client parameterAbilis IKE TableAbilis IKE Table parameter
Server AddressHOSTLOC-IP
Server IdentityHOSTID
Client IdentityHOSTPEER-ID
Client PasswordPSKKEY

90.10.3. Configuring Ubuntu Strongswan VPN Client

Please enter the following commands to configure the VPN in Abilis. Refer to Section 83.19.1, “How to configure a RAS using IPSEC VPN server” to for the configuration of IPsec and IKE resources.

[14:51:53] ABILIS_CPX:a ike host:10 mode:ike2 locip:80.80.80.80 remip:* side:inside hash:sha256 ID-TYPE:FQDN id:abilis peer-id-type:FQDN peer-id:ubuntu name:Ubuntu_IKE2

COMMAND EXECUTED 

[14:55:35] ABILIS_CPX:a ike cli:10 host:10 net-loc:0.0.0.0/0 net-rem:10.0.2.10/32 pfs:no name:Ubuntu_IKE2_Cli

COMMAND EXECUTED 

[14:55:44] ABILIS_CPX:a ike psk:10 key:24ubuntu20ike2pskey$ peer-id-type:fqdn peer-id:ubuntu

COMMAND EXECUTED 
[Caution]Caution

To activate the changes made, execute the initialization command init res:ike.

To view the configuration made above, use the following commands.

[14:57:49] ABILIS_CPX:d ike host:10 -cli

-------------------------------------------------------------------------------
HOST: NAME:                              LIFETIME:  HASH:     DPD:    DPD-ACTION:
      LOCIP:          NATT:   MODE:      MODE-CFG:  DH:               DPD-DELAY:
      REMIP:          SIDE:   AUTH:      AUTH2:     CIPHER:   SA-TRY: DPD-TOUT:
      AUTH2-USER:                        AUTH2-PWD:
      -- ID -------------------------------------------------------------------
      ID-TYPE:        IP:/ID:
      PEER-ID-TYPE:   PEER-IP:/PEER-ID:
      -- RSA Cert -------------------------------------------------------------
      CERT-SEND:      ASN1-DN:
      CERT-PEER:      PEER-ASN1-DN:
      CERT-VERIFY:
-------------------------------------------------------------------------------
10    Ubuntu_IKE2                        3600       SHA256    YES     STOP
      080.080.080.080 YES     IKE2                  MODP2048          30
      *               INSIDE  PSK        NO         AES256    3       120
      -- ID -------------------------------------------------------------------
      FQDN            abilis
      FQDN            ubuntu
-------------------------------------------------------------------------------

IKE Clients: 

-------------------------------------------------------------------------------
CLI:  NAME:                                LIFETIME: ESP:        AH:
HOST: NET-LOC:           RULE:  PASSIVE:   PFS:      ESP-AUTH:   AH-AUTH:
      NET-REM:                  PERMANENT: TUNNEL:   ESP-CIPHER: MODE-CFG-DNS:
-------------------------------------------------------------------------------
10    Ubuntu_IKE2_Cli                      28800     YES         NO
10    000.000.000.000/00 IPSEC  YES        NO        SHA1        SHA1
      010.000.002.010/32        YES        YES       AES256      SYS
-------------------------------------------------------------------------------

[14:57:52] ABILIS_CPX:d ike psk:10      

-------------------------------------------------------------------------------
PSK: KEY:     PEER-ID-TYPE:  PEER-IP:/PEER-ID:
-------------------------------------------------------------------------------
10   ******** FQDN           ubuntu

To configure an Ubuntu Strongswan VPN connection with Abilis, follow these settings:

  1. Now you need to left click on your network manager applet (Located in your notification area) And choose "Settings":

  2. In the Ubuntu settings, go to Networks.

  3. In the VPN section, press the + button and choose VPN connection type as "IPsec/IKEv2(strongswan)":

  4. Enter Abilis details and click "Save".

  5. To connect, tap the indicators in the upper right corner and select "VPN Off" » Connect (if you have multiple VPN connections set up, you'll need to select the appropriate one).