How To Install libcharon-extauth-plugins on Kali Linux

In this tutorial we learn how to install libcharon-extauth-plugins on Kali Linux. libcharon-extauth-plugins is strongSwan charon library (extended authentication plugins)

Introduction

In this tutorial we learn how to install libcharon-extauth-plugins on Kali Linux.

What is libcharon-extauth-plugins

libcharon-extauth-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 extended authentication plugins for the charon library:

  • eap-mschapv2 (EAP-MSCHAPv2 protocol handler using passwords/NT hashes) Used for client side to connect to some VPN concentrators configured for Windows 7+ and modern OSX/iOS using IKEv2 (identify with public key, authenticate with MSCHAPv2).
  • xauth-generic (Generic XAuth backend that provides passwords from ipsec.secrets and other credential sets) Used for the client side to connect to VPN concentrators configured for Android and older OSX/iOS using IKEv1 and XAUTH (identify with public key, authenticate with XAUTH password).

These are the “not always, but still more commonly used” plugins, for further needs even more plugins can be found in the package libcharon-extra-plugins.

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

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

Install libcharon-extauth-plugins Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcharon-extauth-plugins

Install libcharon-extauth-plugins Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install libcharon-extauth-plugins

How To Uninstall libcharon-extauth-plugins on Kali Linux

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

sudo apt-get remove libcharon-extauth-plugins

Uninstall libcharon-extauth-plugins And Its Dependencies

To uninstall libcharon-extauth-plugins and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libcharon-extauth-plugins

Remove libcharon-extauth-plugins Configurations and Data

To remove libcharon-extauth-plugins configuration and data from Kali Linux we can use the following command:

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

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

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

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

Dependencies

libcharon-extauth-plugins have the following dependencies:

References

Summary

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