How To Install libstrongswan-extra-plugins on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libstrongswan-extra-plugins
on Ubuntu 22.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:
- af-alg [linux] (AF_ALG Linux crypto API interface, provides ciphers/hashers/hmac/xcbc)
- ccm (CCM cipher mode wrapper)
- cmac (CMAC cipher mode wrapper)
- ctr (CTR cipher mode wrapper)
- 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)
- gcrypt (Crypto backend based on libgcrypt, provides RSA/DH/ciphers/hashers/rng)
- ldap (LDAP fetching plugin based on libldap)
- ntru (key exchanged based on post-quantum computer NTRU)
- padlock (VIA padlock crypto backend, provides AES128/SHA1)
- pkcs11 (PKCS#11 smartcard backend)
- 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)
Also included is the libtpmtss library adding support for TPM plugin (https://wiki.strongswan.org/projects/strongswan/wiki/TpmPlugin)
There are three methods to install libstrongswan-extra-plugins
on Ubuntu 22.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 22.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 22.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 22.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 22.04 using different package management tools: apt
, apt-get
and aptitude
.