How To Install libstrongswan-extra-plugins on Ubuntu 18.04

In this tutorial we learn how to install libstrongswan-extra-plugins on Ubuntu 18.04. libstrongswan-extra-plugins is strongSwan utility and crypto library (extra plugins)

Introduction

In this tutorial we learn how to install libstrongswan-extra-plugins on Ubuntu 18.04.

What is libstrongswan-extra-plugins

libstrongswan-extra-plugins is:

The strongSwan VPN suite uses the native IPsec stack in the standard Linux kernel. It supports both the IKEv1 and IKEv2 protocols.

This package provides extra plugins for the strongSwan utility and cryptographic library.

Included plugins are:

  • acert (Support of X.509 attribute certificates (since 5.1.3))
  • af-alg [linux] (AF_ALG Linux crypto API interface, provides ciphers/hashers/hmac/xcbc)
  • attr-sql (provide IKE attributes read from a database to peers)
  • bliss (Bimodal Lattice Signature Scheme (BLISS) post-quantum computer signature scheme)
  • ccm (CCM cipher mode wrapper)
  • chapoly (ChaCha20/Poly1305 AEAD implementation)
  • cmac (CMAC cipher mode wrapper)
  • ctr (CTR cipher mode wrapper)
  • coupling (Permanent peer certificate coupling)
  • curl (libcurl based HTTP/FTP fetcher)
  • curve25519 (support for Diffie-Hellman group 31 using Curve25519 and support for the Ed25519 digital signature algorithm for IKEv2)
  • dnscert (authentication via CERT RRs protected by DNSSEC)
  • gcrypt (Crypto backend based on libgcrypt, provides RSA/DH/ciphers/hashers/rng)
  • ipseckey (authentication via IPSECKEY RRs protected by DNSSEC)
  • ldap (LDAP fetching plugin based on libldap)
  • load-tester (perform IKE load tests against self or gateway)
  • mysql (database backend)
  • ntru (key exchanged based on post-quantum computer NTRU)
  • nttfft (Number Theoretic Transform via the FFT algorithm)
  • padlock (VIA padlock crypto backend, provides AES128/SHA1)
  • pkcs11 (PKCS#11 smartcard backend)
  • radattr (inject and process custom RADIUS attributes as IKEv2 client)
  • sql (SQL configuration and creds engine)
  • sqlite (SQLite database backend)
  • soup (libsoup based HTTP fetcher)
  • tpmtss (TPM 1.2 and TPM 2.0 Trusted Platform Modules)
  • rdrand (High quality / high performance random source using the Intel rdrand instruction found on Ivy Bridge processors)
  • test-vectors (Set of test vectors for various algorithms)
  • unbound (DNSSEC enabled resolver using libunbound)
  • whitelist (peer verification against a whitelist)

There are three methods to install libstrongswan-extra-plugins on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libstrongswan-extra-plugins Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libstrongswan-extra-plugins using apt-get by running the following command:

sudo apt-get -y install libstrongswan-extra-plugins

Install libstrongswan-extra-plugins Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libstrongswan-extra-plugins using apt by running the following command:

sudo apt -y install libstrongswan-extra-plugins

Install libstrongswan-extra-plugins Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libstrongswan-extra-plugins using aptitude by running the following command:

sudo aptitude -y install libstrongswan-extra-plugins

How To Uninstall libstrongswan-extra-plugins on Ubuntu 18.04

To uninstall only the libstrongswan-extra-plugins package we can use the following command:

sudo apt-get remove libstrongswan-extra-plugins

Uninstall libstrongswan-extra-plugins And Its Dependencies

To uninstall libstrongswan-extra-plugins and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libstrongswan-extra-plugins

Remove libstrongswan-extra-plugins Configurations and Data

To remove libstrongswan-extra-plugins configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libstrongswan-extra-plugins

Remove libstrongswan-extra-plugins configuration, data, and all of its dependencies

We can use the following command to remove libstrongswan-extra-plugins configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libstrongswan-extra-plugins

References

Summary

In this tutorial we learn how to install libstrongswan-extra-plugins package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.