How To Install libcharon-extra-plugins on Ubuntu 18.04

In this tutorial we learn how to install libcharon-extra-plugins on Ubuntu 18.04. libcharon-extra-plugins is strongSwan charon library (extra plugins)

Introduction

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

What is libcharon-extra-plugins

libcharon-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 charon library:

  • addrblock (Narrow traffic selectors to RFC 3779 address blocks in X.509 certificates)
  • dhcp (Forwarding of DHCP requests for virtual IPs to DHCP server)
  • certexpire (Export expiration dates of used certificates)
  • eap-aka (Generic EAP-AKA protocol handler using different backends)
  • eap-gtc (EAP-GTC protocol handler authenticating with XAuth backends)
  • eap-identity (EAP-Identity identity exchange algorithm, to use with other EAP protocols)
  • eap-md5 (EAP-MD5 protocol handler using passwords)
  • eap-radius (EAP server proxy plugin forwarding EAP conversations to a RADIUS server)
  • eap-tls (EAP-TLS protocol handler, to authenticate with certificates in EAP)
  • eap-tnc (EAP-TNC protocol handler, Trusted Network Connect in a TLS tunnel)
  • eap-ttls (EAP-TTLS protocol handler, wraps other EAP methods securely)
  • error-notify (Notification about errors via UNIX socket)
  • farp (fake ARP responses for requests to virtual IP address)
  • ha (High-Availability clustering)
  • kernel-libipsec (Userspace IPsec Backend with TUN devices)
  • led (Let Linux LED subsystem LEDs blink on IKE activity)
  • lookip (Virtual IP lookup facility using a UNIX socket)
  • tnc (Trusted Network Connect)
  • unity (Cisco Unity extensions for IKEv1)
  • xauth-eap (XAuth backend that uses EAP methods to verify passwords)
  • xauth-pam (XAuth backend that uses PAM modules to verify passwords)
  • eap-aka-3gpp2 (EAP-AKA backend implementing standard 3GPP2 algorithm in software)
  • eap-dynamic (EAP proxy plugin that dynamically selects an EAP method requested/supported by the client (since 5.0.1))
  • eap-peap (EAP-PEAP protocol handler, wraps other EAP methods securely)
  • eap-sim (Generic EAP-SIM protocol handler using different backends)
  • eap-sim-file (EAP-SIM backend reading triplets from a file)
  • eap-sim-pcsc (EAP-SIM backend based on a PC/SC smartcard reader)
  • eap-simaka-pseudonym (EAP-SIM/AKA in-memory pseudonym identity database)
  • eap-simaka-reauth (EAP-SIM/AKA in-memory reauthentication identity database)
  • eap-simaka-sql (EAP-SIM/AKA backend reading triplets/quintuplets from a SQL database)
  • xauth-noauth (XAuth backend that does not do any authentication (since 5.0.3))

There are three methods to install libcharon-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 libcharon-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 libcharon-extra-plugins using apt-get by running the following command:

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

Install libcharon-extra-plugins Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcharon-extra-plugins

Install libcharon-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 libcharon-extra-plugins using aptitude by running the following command:

sudo aptitude -y install libcharon-extra-plugins

How To Uninstall libcharon-extra-plugins on Ubuntu 18.04

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

sudo apt-get remove libcharon-extra-plugins

Uninstall libcharon-extra-plugins And Its Dependencies

To uninstall libcharon-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 libcharon-extra-plugins

Remove libcharon-extra-plugins Configurations and Data

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

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

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

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

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

References

Summary

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